1 | import { AnyObject, Class } from '../common-types';
|
2 | import { Type } from './type';
|
3 | /**
|
4 | * Object type
|
5 | */
|
6 | export declare class ObjectType<T extends AnyObject> implements Type<T> {
|
7 | type: Class<T>;
|
8 | name: string;
|
9 | constructor(type: Class<T>);
|
10 | isInstance(value: any): boolean;
|
11 | isCoercible(value: any): boolean;
|
12 | defaultValue(): T;
|
13 | coerce(value: any): any;
|
14 | serialize(value: T | null | undefined): any;
|
15 | }
|