Commit 10a98630 authored by nanahira's avatar nanahira

fix type def

parent 5be618fd
import { Model } from 'koishi';
import { Field } from 'cosmotype';
export type ModelFieldDef<T = any> =
| Model.Field<T>
| Model.Field.Shorthand<Model.Field.Type<T>>;
type Shorthand<S extends string> = S | `${S}(${any})`;
export type ModelFieldDef<T = any> = Field<T> | Shorthand<Field.Type<T>>;
export type ModelClassType<T = any> = { new (...args: any[]): T };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment