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.

15 lines (14 loc) 482 B
import { UAttribute } from "./attribute"; export declare class UField { private _name; private _type; private _attributes; constructor(name: string, type: string); $name(): string; $type(): string; $attribute<Type>(attribute: UAttribute<Type> | string): UAttribute<any> | null; $attributes(): UAttribute<any>[]; $clone(name: string): UField; attributes(attributes: UAttribute<any>[]): this; remove(attributes: UAttribute<any>[]): this; }