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
/
array
/
guard.d.ts
10 lines
(9 loc)
•
278 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
type
ArrayGuardOptions
= {
variableName
:
string
;
guardedCodeSnippet
:
string
; };
/** * Returns JS fragment to wrap code inside an array conditional */
export
declare
function
defineArrayGuard
(
{ variableName, guardedCodeSnippet }:
ArrayGuardOptions
):
string
;
export
{};