@@ -59,21 +59,12 @@ class Model extends EmberObject {
59
59
serialize ( ) : Record < string , unknown > ;
60
60
61
61
static modelName : string ;
62
- static fields : Map < keyof this & string , 'attribute' | 'belongsTo' | 'hasMany' > ;
63
- static attributes : Map < keyof this & string , AttributeSchema > ;
64
- static relationshipsByName : Map < keyof this & string , RelationshipSchema > ;
65
- static eachAttribute < K extends keyof this & string > (
66
- callback : ( this : ModelSchema < this> , key : K , attribute : AttributeSchema ) => void ,
67
- binding ?: T
68
- ) : void ;
69
- static eachRelationship < K extends keyof this & string > (
70
- callback : ( this : ModelSchema < this> , key : K , relationship : RelationshipSchema ) => void ,
71
- binding ?: T
72
- ) : void ;
73
- static eachTransformedAttribute < K extends keyof this & string > (
74
- callback : ( this : ModelSchema < this> , key : K , type : string ) => void ,
75
- binding ?: T
76
- ) : void ;
62
+ static fields : Map < string , 'attribute' | 'belongsTo' | 'hasMany' > ;
63
+ static attributes : Map < string , AttributeSchema > ;
64
+ static relationshipsByName : Map < string , RelationshipSchema > ;
65
+ static eachAttribute ( callback : ( key : string , attribute : AttributeSchema ) => void , binding ?: unknown ) : void ;
66
+ static eachRelationship ( callback : ( key : string , relationship : RelationshipSchema ) => void , binding ?: unknown ) : void ;
67
+ static eachTransformedAttribute ( callback : ( key : string , type : string ) => void , binding ?: unknown ) : void ;
77
68
static determineRelationshipType (
78
69
knownSide : RelationshipSchema ,
79
70
store : Store
0 commit comments