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.

13 lines (12 loc) 1.19 kB
import { UAttribute } from "../entities/attribute"; import { UModel } from "../entities/model"; export declare const throwMissingFieldParameterError: (field: string, fieldType: string, parameter: string) => never; export declare const uString: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uNumber: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uInteger: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uFloat: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uBoolean: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uDate: (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uEnum: <Type>(name: string, enumName: string, enumDefinition?: Record<string, Type>) => import("..").UField; export declare const uReference: (name: string, nested: UModel, attributes?: UAttribute<any>[]) => import("..").UField; export declare const uNested: (name: string, nested: UModel, attributes?: UAttribute<any>[]) => import("..").UField;