import {Type} from "./Types/Type"; /** * Options of a definition. */ export interface DefinitionOptions { //TODO implement some options, like `mandatory`. } /** * A Sharkitek model property definition. */ export class Definition { /** * Initialize a property definition with the given type and options. * @param type - The model property type. * @param options - Property definition options. */ constructor( public type: Type, public options: DefinitionOptions = {}, ) {} } /** * Initialize a property definition with the given type and options. * @param type - The model property type. * @param options - Property definition options. */ export function SDefine(type: Type, options: DefinitionOptions = {}) { return new Definition(type, options); }