mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
Remove DefaultFunc type.
This commit is contained in:
Vendored
+1
-3
@@ -25,14 +25,12 @@ interface Validator {
|
||||
param: any;
|
||||
}
|
||||
|
||||
type DefaultFunc<T> = () => T;
|
||||
|
||||
interface ModelFullField<Field, Doc> {
|
||||
type: TypeOptions;
|
||||
optional?: boolean;
|
||||
transient?: boolean;
|
||||
immutable?: boolean;
|
||||
default?: Field | DefaultFunc<Field>;
|
||||
default?: () => Field | Field;
|
||||
index?: string | number;
|
||||
validators?: Validator[];
|
||||
resolve?: (doc: Doc) => Field;
|
||||
|
||||
Reference in New Issue
Block a user