@@ -70,7 +70,7 @@ export type Denormalize<S> = S extends EntityInterface<infer U>
70
70
? AbstractInstanceType < S >
71
71
: S extends { denormalizeOnly : ( ...args : any ) => any }
72
72
? ReturnType < S [ 'denormalizeOnly' ] >
73
- : S extends SchemaClass
73
+ : S extends { denormalize : ( ... args : any ) => any }
74
74
? DenormalizeReturnType < S [ 'denormalize' ] >
75
75
: S extends Serializable < infer T >
76
76
? T
@@ -84,7 +84,7 @@ export type DenormalizeNullable<S> = S extends EntityInterface<any>
84
84
? DenormalizeNullableNestedSchema < S > | undefined
85
85
: S extends RecordClass
86
86
? DenormalizeNullableNestedSchema < S >
87
- : S extends SchemaClass
87
+ : S extends { _denormalizeNullable : ( ... args : any ) => any }
88
88
? DenormalizeReturnType < S [ '_denormalizeNullable' ] >
89
89
: S extends Serializable < infer T >
90
90
? T
@@ -98,7 +98,7 @@ export type Normalize<S> = S extends EntityInterface
98
98
? string
99
99
: S extends RecordClass
100
100
? NormalizeObject < S [ 'schema' ] >
101
- : S extends SchemaClass
101
+ : S extends { normalize : ( ... args : any ) => any }
102
102
? NormalizeReturnType < S [ 'normalize' ] >
103
103
: S extends Serializable < infer T >
104
104
? T
@@ -112,7 +112,7 @@ export type NormalizeNullable<S> = S extends EntityInterface
112
112
? string | undefined
113
113
: S extends RecordClass
114
114
? NormalizedNullableObject < S [ 'schema' ] >
115
- : S extends SchemaClass
115
+ : S extends { _normalizeNullable : ( ... args : any ) => any }
116
116
? NormalizeReturnType < S [ '_normalizeNullable' ] >
117
117
: S extends Serializable < infer T >
118
118
? T
0 commit comments