Type alias MakeSchemaFrom<S>
MakeSchemaFrom<S>: ((schema_obj: {
[key: string]: any;
} & {
type: S["type"];
}) => S)
Type declaration
-
- (schema_obj: {
[key: string]: any;
} & {
type: S["type"];
}): S
-
Parameters
-
schema_obj: {
[key: string]: any;
} & {
type: S["type"];
}
Returns S
create a schema class instance based off of a simple javascript object