UNPKG

@martinmilo/verve

Version:

TypeScript domain modeling library with field-level authorization, business rule validation, and context-aware access control

15 lines 799 B
import { WithFieldBuilder } from "../types"; export type WithDefaultFunc<T, V> = { (value: V): T; }; export declare function WithDefault<T extends WithFieldBuilder>(Base: T): { new (...args: any[]): { readonly default: WithDefaultFunc</*elided*/ any, any>; Field: import("../../core/types").FieldClass<any>; options: import("../../core/types").FieldOptions; getOption<K extends keyof import("../../core/types").FieldOptions>(option: K): import("../../core/types").FieldOptions[K]; setOption<K extends keyof import("../../core/types").FieldOptions>(option: K, value: import("../../core/types").FieldOptions[K]): void; toField(model?: import("../../..").Model): import("../..").Field<any>; }; } & T; //# sourceMappingURL=WithDefault.d.ts.map