Type Alias TypeChecker<T, D>
TypeChecker<T, D>: { argv: any[]; check: ((obj: any) => boolean); coerce?: ((v: any) => any); createDefaultValue?: CreateDefaultValueType<T>; default: ((createDefaultValue: CreateDefaultValueType<T>) => TypeChecker<T, D & { createDefaultValue: CreateDefaultValueType<T>; hasDefault: true; }>); defaultValue: any; hasDefault: D["hasDefault"] extends true ? true : false; is: ((obj: any) => boolean); isRequired: TypeChecker<T, D & { required: true; }>; parse: typeof JSON.parse; required: D["required"] extends true ? true : false; stringify: typeof JSON.stringify; valueType: T; [
k:
string]
: any; (v: any): any; } Type Parameters
- T
- D extends TypeDefinition