UNPKG

@udraft/core

Version:

uDraft is a language and stack agnostic code-generation tool that simplifies full-stack development by converting a single YAML file into code for rapid development.

47 lines (46 loc) 3.16 kB
import { UModel } from "../entities/model"; import { UModule } from "../entities/module"; export declare const _required: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _min: (value?: number | undefined) => import("..").UAttribute<number>; export declare const _max: (value?: number | undefined) => import("..").UAttribute<number>; export declare const _minLength: (value?: number | undefined) => import("..").UAttribute<number>; export declare const _maxLength: (value?: number | undefined) => import("..").UAttribute<number>; export declare const _size: (value?: number | undefined) => import("..").UAttribute<number>; export declare const _notEmpty: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _notIn: (value?: any[] | undefined) => import("..").UAttribute<any[]>; export declare const _in: (value?: any[] | undefined) => import("..").UAttribute<any[]>; export declare const _regex: (value?: RegExp | undefined) => import("..").UAttribute<RegExp>; export declare const _trim: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _lowercase: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _uppercase: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _capitalize: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _schema: (value?: string | undefined) => import("..").UAttribute<string>; export declare const _primary: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _index: (value?: number | boolean | undefined) => import("..").UAttribute<number | boolean>; export declare const _textIndex: (value?: boolean | string[] | undefined) => import("..").UAttribute<boolean | string[]>; export declare const _unique: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _virtual: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _noId: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _http: (value?: { method?: string; url?: string; contentType?: string; noBody?: boolean; params?: { [paramName: string]: string; }; } | undefined) => import("..").UAttribute<{ method?: string; url?: string; contentType?: string; noBody?: boolean; params?: { [paramName: string]: string; }; }>; export declare const _rootModule: (value?: UModule | undefined) => import("..").UAttribute<UModule>; export declare const _array: (value?: boolean | undefined) => import("..").UAttribute<boolean>; export declare const _enum: <Type>(enumDefinition?: Record<string, Type>) => import("..").UAttribute<Record<string, Type>>; export declare const _ref: (value?: UModel | undefined) => import("..").UAttribute<UModel>; export declare const _defaultValue: <Type>(valueFn?: () => Type) => import("..").UAttribute<string>; export declare const _computedValue: <Type>(valueFn: (model: UModel) => Type) => import("..").UAttribute<string>;