fix(types): should unwrap array -> object -> ref
This commit is contained in:
@@ -165,10 +165,11 @@ type UnwrapRefSimple<T> = T extends
|
||||
| CollectionTypes
|
||||
| BaseTypes
|
||||
| Ref
|
||||
| Array<any>
|
||||
| RefUnwrapBailTypes[keyof RefUnwrapBailTypes]
|
||||
? T
|
||||
: T extends object ? UnwrappedObject<T> : T
|
||||
: T extends Array<any>
|
||||
? { [K in keyof T]: T[K] extends Ref ? T[K] : UnwrapRefSimple<T[K]> }
|
||||
: T extends object ? UnwrappedObject<T> : T
|
||||
|
||||
// Extract all known symbols from an object
|
||||
// when unwrapping Object the symbols are not `in keyof`, this should cover all the
|
||||
|
||||
Reference in New Issue
Block a user