Ember Data: fix Snapshot.belongsTo.

This commit is contained in:
Chris Krycho
2018-02-12 20:03:38 -07:00
parent fc74694166
commit 32035394c2

View File

@@ -954,10 +954,10 @@ declare module 'ember-data' {
/**
* Returns the current value of a belongsTo relationship.
*/
belongsTo<L extends keyof ModelRegistry[K]>(
belongsTo<L extends keyof ModelRegistry & keyof ModelRegistry[K]>(
keyName: L,
options?: {}
): Snapshot<K> | string | null | undefined;
): Snapshot<L> | string | null | undefined;
/**
* Returns the current value of a hasMany relationship.
*/