Which package(s) does this problem pertain to?
Reproduction Case
const result = await store.query('products');
Now about that bug. What did you expect to see?
result.meta // => a `Record` with metadata
What happened instead?
TypeScript says that property meta does not exist.
Comment
meta exists exists in type ManyArray and, by inherence, PromiseManyArray.
But Store.query is typed to return PromiseArray that does not contain meta.
CC @chriskrycho @dfreeman @jamescdavis @mike-north @dwickern @catz
Issue migrated from DefinitelyTyped/DefinitelyTyped#55562
Which package(s) does this problem pertain to?
Reproduction Case
Now about that bug. What did you expect to see?
What happened instead?
TypeScript says that property
metadoes not exist.Comment
metaexists exists in typeManyArrayand, by inherence,PromiseManyArray.But
Store.queryis typed to returnPromiseArraythat does not containmeta.CC @chriskrycho @dfreeman @jamescdavis @mike-north @dwickern @catz
Issue migrated from DefinitelyTyped/DefinitelyTyped#55562