UNPKG

@vinejs/compiler

Version:

Low level compiler for VineJS validator

11 lines (10 loc) 300 B
type ObjectGuardOptions = { variableName: string; bail: boolean; guardedCodeSnippet: string; }; /** * Returns JS fragment to wrap code inside a valid guard */ export declare function defineIsValidGuard({ variableName, bail, guardedCodeSnippet }: ObjectGuardOptions): string; export {};