- formatClassType<Data, Class>(data, type): InstanceType<Class>
-
Type Parameters
-
Data
-
Class extends (new (arg) => InstanceType<Class>)
Parameters
-
data: Data | InstanceType<Class>
-
type: Class
Returns InstanceType<Class>
- formatClassType<Data, Class>(data, type): InstanceType<Class> | undefined
-
Type Parameters
-
Data
-
Class extends (new (arg) => InstanceType<Class>)
Parameters
-
data: undefined | Data | InstanceType<Class>
-
type: Class
Returns InstanceType<Class> | undefined