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.

5 lines (4 loc) 506 B
import { UAttribute } from "../entities/attribute"; export declare const fieldBuilder: (type: string, builtInAttributes?: UAttribute<any>[]) => (name: string, attributes?: UAttribute<any>[]) => import("..").UField; export declare const attrBuilder: <Type>(name: string, defaultWhenPresent?: Type, defaultWhenNotPresent?: Type) => (value?: Type) => UAttribute<Type>; export declare const attrBuilderWithRequiredValue: <Type>(name: string, defaultWhenNotPresent?: Type) => (value: Type) => UAttribute<Type>;