egon-orm-workspace / egon-orm / AppTypeOf
Type Alias: AppTypeOf<T> ​
ts
type AppTypeOf<T> = T extends FieldType<infer TApp, infer _TDb> ? TApp : never;Defined in: core/src/contracts/type.ts:170
The application type of a FieldType.
Type Parameters ​
T ​
T
Example ​
ts
declare const dateType: FieldType<Date, string>;
type App = AppTypeOf<typeof dateType>; // Date
