Remove DefaultFunc type.

This commit is contained in:
Deadly0
2018-11-05 10:04:19 +03:00
parent 41c8953a8b
commit 7038ee09e5
+1 -3
View File
@@ -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;