AsyncHasMany
resolves to ArrayProxy
, can't access reload
/createRecord
methods on resolved promise
#1525
Labels
types:core:data
Something is wrong with the Ember Data type definitions
types:core
Something is wrong with the Ember type definitions
Which package(s) does this problem pertain to?
Using latest types
What are instructions we can follow to reproduce the issue?
With the recent changes to
store.query
andArrayProxy
the following snippet seems to be completely type safe and valid:My issue arises when I try to do a similar operation with an
AsyncHasMany
relationship using these updated types:Expectation:
reload
/createRecord
access on resolved relationshipReality:
reload
/createRecord
do not exist on resolvedAsyncHasMany
relationship typeArrayProxy
My question is: am I errantly accessing
reload
/createRecord
on this resolved relationship, or is this a typing issue?If the latter, what does
PromiseManyArray
need to resolve to to retain these methods? This is the current type:The text was updated successfully, but these errors were encountered: