-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
types:coreSomething is wrong with the Ember type definitionsSomething is wrong with the Ember type definitionstypes:core:dataSomething is wrong with the Ember Data type definitionsSomething is wrong with the Ember Data type definitions
Description
Which package(s) does this problem pertain to?
- @types/ember-data
Reproduction Case
const result = await store.query('products');Now about that bug. What did you expect to see?
result.meta // => a `Record` with metadataWhat 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
rreckonerr
Metadata
Metadata
Assignees
Labels
types:coreSomething is wrong with the Ember type definitionsSomething is wrong with the Ember type definitionstypes:core:dataSomething is wrong with the Ember Data type definitionsSomething is wrong with the Ember Data type definitions