UNPKG
@vinejs/compiler
Version:
latest (4.1.0)
5.0.0
4.1.0
4.0.0
3.0.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.1
1.0.0
Low level compiler for VineJS validator
github.com/vinejs/compiler
vinejs/compiler
@vinejs/compiler
/
build
/
src
/
scripts
/
field
/
is_valid_guard.d.ts
11 lines
(10 loc)
•
300 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
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
{};