@fxjs/orm
Advanced tools
Comparing version 1.15.0 to 1.15.1
{ | ||
"name": "@fxjs/orm", | ||
"version": "1.15.0", | ||
"version": "1.15.1", | ||
"description": "", | ||
@@ -77,3 +77,3 @@ "main": "lib", | ||
}, | ||
"gitHead": "8a313131435d2975c365762a040af403ebac47e6" | ||
"gitHead": "656daf8b96329de5b409c9e3415208ae0adfc85e" | ||
} |
@@ -231,3 +231,3 @@ /// <reference types="@fibjs/types" /> | ||
}; | ||
export type GetPropertiesTypeFromDefinition<T extends ComplexModelPropertyDefinition> = T extends keyof GlobalModelType ? GlobalModelType[T] : T extends [...infer S] ? S[number] : T extends ModelPropertyDefinition ? T['type'] extends 'enum' ? Exclude<T['values'], void>[number] : (T['type'] extends keyof GlobalModelType ? GlobalModelType[T['type']] : unknown) : T extends PrimitiveConstructor ? GetPrimitiveFromConstructor<T> : unknown; | ||
export type GetPropertiesTypeFromDefinition<T extends ComplexModelPropertyDefinition> = T extends keyof GlobalModelType ? GlobalModelType[T] : T extends [...infer S] ? S : T extends ModelPropertyDefinition ? T['type'] extends 'enum' ? Exclude<T['values'], void> : (T['type'] extends keyof GlobalModelType ? GlobalModelType[T['type']] : unknown) : T extends PrimitiveConstructor ? GetPrimitiveFromConstructor<T> : unknown; | ||
export type GetPropertiesType<T extends Record<string, ComplexModelPropertyDefinition>> = { | ||
@@ -234,0 +234,0 @@ [K in keyof T]: FxOrmModel.GetPropertiesTypeFromDefinition<T[K]>; |
406456