import {Type} from "./Types/Type"; /** * Property definition class. */ export class Definition { readonly _sharkitek: ModelType; readonly _serialized: SerializedType; /** * Create a property definer instance. * @param type Property type. */ constructor(public readonly type: Type) {} } /** * New definition of a property of the given type. * @param type Type of the property to define. */ export function define(type: Type): Definition { return new Definition(type); }