mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-06 20:46:50 +08:00
Ember Data: fix Snapshot.belongsTo.
This commit is contained in:
4
types/ember-data/index.d.ts
vendored
4
types/ember-data/index.d.ts
vendored
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user