UNPKG

373 BTypeScriptView Raw
1import { Class } from '../common-types';
2import { Model } from '../model';
3import { ObjectType } from './object';
4/**
5 * Model type
6 */
7export declare class ModelType<T extends Model> extends ObjectType<T> {
8 modelClass: Class<T>;
9 readonly name: string;
10 constructor(modelClass: Class<T>);
11 serialize(value: T | null | undefined): Object | null | undefined;
12}