Skip to content

Commit 9207eeb

Browse files
mfeckieandrewbranch
authored andcommitted
Add more permissive interface for RelationshipMeta options (DefinitelyTyped#39114)
1 parent 854c503 commit 9207eeb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

types/ember-data/index.d.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,18 @@ interface AttributeMeta<Model extends DS.Model> {
3535
parentType: Model;
3636
isAttribute: true;
3737
}
38+
39+
interface RelationshipMetaOptions {
40+
async?: boolean;
41+
inverse?: string;
42+
polymorphic?: boolean;
43+
[k: string]: any;
44+
}
3845
interface RelationshipMeta<Model extends DS.Model> {
3946
key: RelationshipsFor<Model>;
4047
kind: 'belongsTo' | 'hasMany';
4148
type: keyof ModelRegistry;
42-
options: object;
49+
options: RelationshipMetaOptions;
4350
name: string;
4451
parentType: Model;
4552
isRelationship: true;

0 commit comments

Comments
 (0)