eslint-plugin-templ 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templ-ast-to-eslint-ast.d.ts.map +1 -1
- package/dist/templ-ast-to-eslint-ast.js +145 -26
- package/dist/templ-ast-to-eslint-ast.js.map +1 -1
- package/dist/templ-ast.d.ts +525 -1117
- package/dist/templ-ast.d.ts.map +1 -1
- package/dist/templ-ast.js +65 -38
- package/dist/templ-ast.js.map +1 -1
- package/package.json +7 -7
package/dist/templ-ast.d.ts
CHANGED
|
@@ -284,7 +284,7 @@ declare const TemplExpressionAttributeNodeSchema: z.ZodObject<{
|
|
|
284
284
|
}, z.core.$strip>;
|
|
285
285
|
}, z.core.$strip>;
|
|
286
286
|
SingleQuote: z.ZodOptional<z.ZodBoolean>;
|
|
287
|
-
|
|
287
|
+
AttributeStartRange: z.ZodObject<{
|
|
288
288
|
From: z.ZodObject<{
|
|
289
289
|
Index: z.ZodNumber;
|
|
290
290
|
Line: z.ZodNumber;
|
|
@@ -309,8 +309,41 @@ declare const TemplExpressionAttributeNodeSchema: z.ZodObject<{
|
|
|
309
309
|
}, z.core.$strip>;
|
|
310
310
|
}, z.core.$strip>;
|
|
311
311
|
}, z.core.$strip>;
|
|
312
|
-
declare const
|
|
313
|
-
type: z.ZodLiteral<"
|
|
312
|
+
declare const TemplBooleanExpressionAttributeSchema: z.ZodObject<{
|
|
313
|
+
type: z.ZodLiteral<"BoolExpressionAttribute">;
|
|
314
|
+
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
+
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
316
|
+
Name: z.ZodString;
|
|
317
|
+
NameRange: z.ZodObject<{
|
|
318
|
+
From: z.ZodObject<{
|
|
319
|
+
Index: z.ZodNumber;
|
|
320
|
+
Line: z.ZodNumber;
|
|
321
|
+
Col: z.ZodNumber;
|
|
322
|
+
}, z.core.$strip>;
|
|
323
|
+
To: z.ZodObject<{
|
|
324
|
+
Index: z.ZodNumber;
|
|
325
|
+
Line: z.ZodNumber;
|
|
326
|
+
Col: z.ZodNumber;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
330
|
+
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
331
|
+
Expression: z.ZodObject<{
|
|
332
|
+
Value: z.ZodString;
|
|
333
|
+
Range: z.ZodObject<{
|
|
334
|
+
From: z.ZodObject<{
|
|
335
|
+
Index: z.ZodNumber;
|
|
336
|
+
Line: z.ZodNumber;
|
|
337
|
+
Col: z.ZodNumber;
|
|
338
|
+
}, z.core.$strip>;
|
|
339
|
+
To: z.ZodObject<{
|
|
340
|
+
Index: z.ZodNumber;
|
|
341
|
+
Line: z.ZodNumber;
|
|
342
|
+
Col: z.ZodNumber;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
}, z.core.$strip>;
|
|
346
|
+
}, z.core.$strip>], "type">;
|
|
314
347
|
Expression: z.ZodObject<{
|
|
315
348
|
Value: z.ZodString;
|
|
316
349
|
Range: z.ZodObject<{
|
|
@@ -339,12 +372,8 @@ declare const TemplSpreadAttributesSchema: z.ZodObject<{
|
|
|
339
372
|
}, z.core.$strip>;
|
|
340
373
|
}, z.core.$strip>;
|
|
341
374
|
}, z.core.$strip>;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
export type TemplExpressionAttributeNode = z.infer<typeof TemplExpressionAttributeNodeSchema>;
|
|
345
|
-
export type TemplSpreadAttribute = z.infer<typeof TemplSpreadAttributesSchema>;
|
|
346
|
-
export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
347
|
-
type: z.ZodLiteral<"ConditionalAttribute">;
|
|
375
|
+
declare const TemplSpreadAttributesSchema: z.ZodObject<{
|
|
376
|
+
type: z.ZodLiteral<"SpreadAttributes">;
|
|
348
377
|
Expression: z.ZodObject<{
|
|
349
378
|
Value: z.ZodString;
|
|
350
379
|
Range: z.ZodObject<{
|
|
@@ -360,91 +389,36 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
360
389
|
}, z.core.$strip>;
|
|
361
390
|
}, z.core.$strip>;
|
|
362
391
|
}, z.core.$strip>;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
NameRange: z.ZodObject<{
|
|
369
|
-
From: z.ZodObject<{
|
|
370
|
-
Index: z.ZodNumber;
|
|
371
|
-
Line: z.ZodNumber;
|
|
372
|
-
Col: z.ZodNumber;
|
|
373
|
-
}, z.core.$strip>;
|
|
374
|
-
To: z.ZodObject<{
|
|
375
|
-
Index: z.ZodNumber;
|
|
376
|
-
Line: z.ZodNumber;
|
|
377
|
-
Col: z.ZodNumber;
|
|
378
|
-
}, z.core.$strip>;
|
|
379
|
-
}, z.core.$strip>;
|
|
380
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
381
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
382
|
-
Expression: z.ZodObject<{
|
|
383
|
-
Value: z.ZodString;
|
|
384
|
-
Range: z.ZodObject<{
|
|
385
|
-
From: z.ZodObject<{
|
|
386
|
-
Index: z.ZodNumber;
|
|
387
|
-
Line: z.ZodNumber;
|
|
388
|
-
Col: z.ZodNumber;
|
|
389
|
-
}, z.core.$strip>;
|
|
390
|
-
To: z.ZodObject<{
|
|
391
|
-
Index: z.ZodNumber;
|
|
392
|
-
Line: z.ZodNumber;
|
|
393
|
-
Col: z.ZodNumber;
|
|
394
|
-
}, z.core.$strip>;
|
|
395
|
-
}, z.core.$strip>;
|
|
396
|
-
}, z.core.$strip>;
|
|
397
|
-
}, z.core.$strip>], "type">;
|
|
398
|
-
Range: z.ZodObject<{
|
|
399
|
-
From: z.ZodObject<{
|
|
400
|
-
Index: z.ZodNumber;
|
|
401
|
-
Line: z.ZodNumber;
|
|
402
|
-
Col: z.ZodNumber;
|
|
403
|
-
}, z.core.$strip>;
|
|
404
|
-
To: z.ZodObject<{
|
|
405
|
-
Index: z.ZodNumber;
|
|
406
|
-
Line: z.ZodNumber;
|
|
407
|
-
Col: z.ZodNumber;
|
|
408
|
-
}, z.core.$strip>;
|
|
392
|
+
Range: z.ZodObject<{
|
|
393
|
+
From: z.ZodObject<{
|
|
394
|
+
Index: z.ZodNumber;
|
|
395
|
+
Line: z.ZodNumber;
|
|
396
|
+
Col: z.ZodNumber;
|
|
409
397
|
}, z.core.$strip>;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
From: z.ZodObject<{
|
|
433
|
-
Index: z.ZodNumber;
|
|
434
|
-
Line: z.ZodNumber;
|
|
435
|
-
Col: z.ZodNumber;
|
|
436
|
-
}, z.core.$strip>;
|
|
437
|
-
To: z.ZodObject<{
|
|
438
|
-
Index: z.ZodNumber;
|
|
439
|
-
Line: z.ZodNumber;
|
|
440
|
-
Col: z.ZodNumber;
|
|
441
|
-
}, z.core.$strip>;
|
|
442
|
-
}, z.core.$strip>;
|
|
443
|
-
}, z.core.$strip>;
|
|
444
|
-
}, z.core.$strip>], "type">;
|
|
398
|
+
To: z.ZodObject<{
|
|
399
|
+
Index: z.ZodNumber;
|
|
400
|
+
Line: z.ZodNumber;
|
|
401
|
+
Col: z.ZodNumber;
|
|
402
|
+
}, z.core.$strip>;
|
|
403
|
+
}, z.core.$strip>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
export type TemplBooleanAttribute = z.infer<typeof TemplBooleanAttributeSchema>;
|
|
406
|
+
export type TemplValueAttribute = z.infer<typeof TemplValueAttributeSchema>;
|
|
407
|
+
export type TemplExpressionAttributeNode = z.infer<typeof TemplExpressionAttributeNodeSchema>;
|
|
408
|
+
export type TemplBooleanExpressionAttribute = z.infer<typeof TemplBooleanExpressionAttributeSchema>;
|
|
409
|
+
export type TemplSpreadAttribute = z.infer<typeof TemplSpreadAttributesSchema>;
|
|
410
|
+
export interface TemplConditionalAttribute {
|
|
411
|
+
type: "ConditionalAttribute";
|
|
412
|
+
Expression: TemplExpression;
|
|
413
|
+
Then: TemplAttribute[];
|
|
414
|
+
Else: TemplAttribute[] | null;
|
|
415
|
+
Range: TemplRange;
|
|
416
|
+
}
|
|
417
|
+
export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
418
|
+
type: z.ZodLiteral<"ConditionalAttribute">;
|
|
419
|
+
Expression: z.ZodObject<{
|
|
445
420
|
Value: z.ZodString;
|
|
446
|
-
|
|
447
|
-
ValueRange: z.ZodObject<{
|
|
421
|
+
Range: z.ZodObject<{
|
|
448
422
|
From: z.ZodObject<{
|
|
449
423
|
Index: z.ZodNumber;
|
|
450
424
|
Line: z.ZodNumber;
|
|
@@ -456,6 +430,27 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
456
430
|
Col: z.ZodNumber;
|
|
457
431
|
}, z.core.$strip>;
|
|
458
432
|
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>;
|
|
434
|
+
Then: z.ZodArray<z.ZodType<TemplAttribute, unknown, z.core.$ZodTypeInternals<TemplAttribute, unknown>>>;
|
|
435
|
+
Else: z.ZodNullable<z.ZodArray<z.ZodType<TemplAttribute, unknown, z.core.$ZodTypeInternals<TemplAttribute, unknown>>>>;
|
|
436
|
+
Range: z.ZodObject<{
|
|
437
|
+
From: z.ZodObject<{
|
|
438
|
+
Index: z.ZodNumber;
|
|
439
|
+
Line: z.ZodNumber;
|
|
440
|
+
Col: z.ZodNumber;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
To: z.ZodObject<{
|
|
443
|
+
Index: z.ZodNumber;
|
|
444
|
+
Line: z.ZodNumber;
|
|
445
|
+
Col: z.ZodNumber;
|
|
446
|
+
}, z.core.$strip>;
|
|
447
|
+
}, z.core.$strip>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
export type TemplAttribute = TemplBooleanAttribute | TemplValueAttribute | TemplExpressionAttributeNode | TemplBooleanExpressionAttribute | TemplSpreadAttribute | TemplConditionalAttribute;
|
|
450
|
+
export declare const TemplAttributeSchema: z.ZodType<TemplAttribute>;
|
|
451
|
+
export declare const TemplStringExpressionSchema: z.ZodObject<{
|
|
452
|
+
Expression: z.ZodObject<{
|
|
453
|
+
Value: z.ZodString;
|
|
459
454
|
Range: z.ZodObject<{
|
|
460
455
|
From: z.ZodObject<{
|
|
461
456
|
Index: z.ZodNumber;
|
|
@@ -468,58 +463,47 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
468
463
|
Col: z.ZodNumber;
|
|
469
464
|
}, z.core.$strip>;
|
|
470
465
|
}, z.core.$strip>;
|
|
471
|
-
}, z.core.$strip
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
}, z.core.$strip>;
|
|
504
|
-
}, z.core.$strip>;
|
|
505
|
-
}, z.core.$strip>], "type">;
|
|
506
|
-
Expression: z.ZodObject<{
|
|
507
|
-
Value: z.ZodString;
|
|
508
|
-
Range: z.ZodObject<{
|
|
509
|
-
From: z.ZodObject<{
|
|
510
|
-
Index: z.ZodNumber;
|
|
511
|
-
Line: z.ZodNumber;
|
|
512
|
-
Col: z.ZodNumber;
|
|
513
|
-
}, z.core.$strip>;
|
|
514
|
-
To: z.ZodObject<{
|
|
515
|
-
Index: z.ZodNumber;
|
|
516
|
-
Line: z.ZodNumber;
|
|
517
|
-
Col: z.ZodNumber;
|
|
518
|
-
}, z.core.$strip>;
|
|
519
|
-
}, z.core.$strip>;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
TrailingSpace: z.ZodString;
|
|
468
|
+
type: z.ZodLiteral<"StringExpression">;
|
|
469
|
+
}, z.core.$strip>;
|
|
470
|
+
export declare const TemplWhitespaceSchema: z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"Whitespace">;
|
|
472
|
+
Range: z.ZodObject<{
|
|
473
|
+
From: z.ZodObject<{
|
|
474
|
+
Index: z.ZodNumber;
|
|
475
|
+
Line: z.ZodNumber;
|
|
476
|
+
Col: z.ZodNumber;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
To: z.ZodObject<{
|
|
479
|
+
Index: z.ZodNumber;
|
|
480
|
+
Line: z.ZodNumber;
|
|
481
|
+
Col: z.ZodNumber;
|
|
482
|
+
}, z.core.$strip>;
|
|
483
|
+
}, z.core.$strip>;
|
|
484
|
+
Value: z.ZodString;
|
|
485
|
+
}, z.core.$strip>;
|
|
486
|
+
export declare const TemplTextSchema: z.ZodObject<{
|
|
487
|
+
type: z.ZodLiteral<"Text">;
|
|
488
|
+
Range: z.ZodObject<{
|
|
489
|
+
From: z.ZodObject<{
|
|
490
|
+
Index: z.ZodNumber;
|
|
491
|
+
Line: z.ZodNumber;
|
|
492
|
+
Col: z.ZodNumber;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
To: z.ZodObject<{
|
|
495
|
+
Index: z.ZodNumber;
|
|
496
|
+
Line: z.ZodNumber;
|
|
497
|
+
Col: z.ZodNumber;
|
|
520
498
|
}, z.core.$strip>;
|
|
521
|
-
|
|
522
|
-
|
|
499
|
+
}, z.core.$strip>;
|
|
500
|
+
Value: z.ZodString;
|
|
501
|
+
TrailingSpace: z.ZodString;
|
|
502
|
+
}, z.core.$strip>;
|
|
503
|
+
export declare const TemplGoCodeSchema: z.ZodObject<{
|
|
504
|
+
Expression: z.ZodObject<{
|
|
505
|
+
Value: z.ZodString;
|
|
506
|
+
Range: z.ZodObject<{
|
|
523
507
|
From: z.ZodObject<{
|
|
524
508
|
Index: z.ZodNumber;
|
|
525
509
|
Line: z.ZodNumber;
|
|
@@ -531,6 +515,15 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
531
515
|
Col: z.ZodNumber;
|
|
532
516
|
}, z.core.$strip>;
|
|
533
517
|
}, z.core.$strip>;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
TrailingSpace: z.ZodString;
|
|
520
|
+
Multiline: z.ZodBoolean;
|
|
521
|
+
type: z.ZodLiteral<"GoCode">;
|
|
522
|
+
}, z.core.$strip>;
|
|
523
|
+
export declare const TemplCallExpressionSchema: z.ZodObject<{
|
|
524
|
+
type: z.ZodLiteral<"CallTemplateExpression">;
|
|
525
|
+
Expression: z.ZodObject<{
|
|
526
|
+
Value: z.ZodString;
|
|
534
527
|
Range: z.ZodObject<{
|
|
535
528
|
From: z.ZodObject<{
|
|
536
529
|
Index: z.ZodNumber;
|
|
@@ -543,249 +536,22 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
543
536
|
Col: z.ZodNumber;
|
|
544
537
|
}, z.core.$strip>;
|
|
545
538
|
}, z.core.$strip>;
|
|
546
|
-
}, z.core.$strip
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
Index: z.ZodNumber;
|
|
553
|
-
Line: z.ZodNumber;
|
|
554
|
-
Col: z.ZodNumber;
|
|
555
|
-
}, z.core.$strip>;
|
|
556
|
-
To: z.ZodObject<{
|
|
557
|
-
Index: z.ZodNumber;
|
|
558
|
-
Line: z.ZodNumber;
|
|
559
|
-
Col: z.ZodNumber;
|
|
560
|
-
}, z.core.$strip>;
|
|
561
|
-
}, z.core.$strip>;
|
|
562
|
-
}, z.core.$strip>;
|
|
563
|
-
Range: z.ZodObject<{
|
|
564
|
-
From: z.ZodObject<{
|
|
565
|
-
Index: z.ZodNumber;
|
|
566
|
-
Line: z.ZodNumber;
|
|
567
|
-
Col: z.ZodNumber;
|
|
568
|
-
}, z.core.$strip>;
|
|
569
|
-
To: z.ZodObject<{
|
|
570
|
-
Index: z.ZodNumber;
|
|
571
|
-
Line: z.ZodNumber;
|
|
572
|
-
Col: z.ZodNumber;
|
|
573
|
-
}, z.core.$strip>;
|
|
574
|
-
}, z.core.$strip>;
|
|
575
|
-
}, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>;
|
|
576
|
-
Else: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
577
|
-
type: z.ZodLiteral<"BoolConstantAttribute">;
|
|
578
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
579
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
580
|
-
Name: z.ZodString;
|
|
581
|
-
NameRange: z.ZodObject<{
|
|
582
|
-
From: z.ZodObject<{
|
|
583
|
-
Index: z.ZodNumber;
|
|
584
|
-
Line: z.ZodNumber;
|
|
585
|
-
Col: z.ZodNumber;
|
|
586
|
-
}, z.core.$strip>;
|
|
587
|
-
To: z.ZodObject<{
|
|
588
|
-
Index: z.ZodNumber;
|
|
589
|
-
Line: z.ZodNumber;
|
|
590
|
-
Col: z.ZodNumber;
|
|
591
|
-
}, z.core.$strip>;
|
|
592
|
-
}, z.core.$strip>;
|
|
593
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
595
|
-
Expression: z.ZodObject<{
|
|
596
|
-
Value: z.ZodString;
|
|
597
|
-
Range: z.ZodObject<{
|
|
598
|
-
From: z.ZodObject<{
|
|
599
|
-
Index: z.ZodNumber;
|
|
600
|
-
Line: z.ZodNumber;
|
|
601
|
-
Col: z.ZodNumber;
|
|
602
|
-
}, z.core.$strip>;
|
|
603
|
-
To: z.ZodObject<{
|
|
604
|
-
Index: z.ZodNumber;
|
|
605
|
-
Line: z.ZodNumber;
|
|
606
|
-
Col: z.ZodNumber;
|
|
607
|
-
}, z.core.$strip>;
|
|
608
|
-
}, z.core.$strip>;
|
|
609
|
-
}, z.core.$strip>;
|
|
610
|
-
}, z.core.$strip>], "type">;
|
|
611
|
-
Range: z.ZodObject<{
|
|
612
|
-
From: z.ZodObject<{
|
|
613
|
-
Index: z.ZodNumber;
|
|
614
|
-
Line: z.ZodNumber;
|
|
615
|
-
Col: z.ZodNumber;
|
|
616
|
-
}, z.core.$strip>;
|
|
617
|
-
To: z.ZodObject<{
|
|
618
|
-
Index: z.ZodNumber;
|
|
619
|
-
Line: z.ZodNumber;
|
|
620
|
-
Col: z.ZodNumber;
|
|
621
|
-
}, z.core.$strip>;
|
|
622
|
-
}, z.core.$strip>;
|
|
623
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
624
|
-
type: z.ZodLiteral<"ConstantAttribute">;
|
|
625
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
626
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
627
|
-
Name: z.ZodString;
|
|
628
|
-
NameRange: z.ZodObject<{
|
|
629
|
-
From: z.ZodObject<{
|
|
630
|
-
Index: z.ZodNumber;
|
|
631
|
-
Line: z.ZodNumber;
|
|
632
|
-
Col: z.ZodNumber;
|
|
633
|
-
}, z.core.$strip>;
|
|
634
|
-
To: z.ZodObject<{
|
|
635
|
-
Index: z.ZodNumber;
|
|
636
|
-
Line: z.ZodNumber;
|
|
637
|
-
Col: z.ZodNumber;
|
|
638
|
-
}, z.core.$strip>;
|
|
639
|
-
}, z.core.$strip>;
|
|
640
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
641
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
642
|
-
Expression: z.ZodObject<{
|
|
643
|
-
Value: z.ZodString;
|
|
644
|
-
Range: z.ZodObject<{
|
|
645
|
-
From: z.ZodObject<{
|
|
646
|
-
Index: z.ZodNumber;
|
|
647
|
-
Line: z.ZodNumber;
|
|
648
|
-
Col: z.ZodNumber;
|
|
649
|
-
}, z.core.$strip>;
|
|
650
|
-
To: z.ZodObject<{
|
|
651
|
-
Index: z.ZodNumber;
|
|
652
|
-
Line: z.ZodNumber;
|
|
653
|
-
Col: z.ZodNumber;
|
|
654
|
-
}, z.core.$strip>;
|
|
655
|
-
}, z.core.$strip>;
|
|
656
|
-
}, z.core.$strip>;
|
|
657
|
-
}, z.core.$strip>], "type">;
|
|
658
|
-
Value: z.ZodString;
|
|
659
|
-
SingleQuote: z.ZodBoolean;
|
|
660
|
-
ValueRange: z.ZodObject<{
|
|
661
|
-
From: z.ZodObject<{
|
|
662
|
-
Index: z.ZodNumber;
|
|
663
|
-
Line: z.ZodNumber;
|
|
664
|
-
Col: z.ZodNumber;
|
|
665
|
-
}, z.core.$strip>;
|
|
666
|
-
To: z.ZodObject<{
|
|
667
|
-
Index: z.ZodNumber;
|
|
668
|
-
Line: z.ZodNumber;
|
|
669
|
-
Col: z.ZodNumber;
|
|
670
|
-
}, z.core.$strip>;
|
|
671
|
-
}, z.core.$strip>;
|
|
672
|
-
Range: z.ZodObject<{
|
|
673
|
-
From: z.ZodObject<{
|
|
674
|
-
Index: z.ZodNumber;
|
|
675
|
-
Line: z.ZodNumber;
|
|
676
|
-
Col: z.ZodNumber;
|
|
677
|
-
}, z.core.$strip>;
|
|
678
|
-
To: z.ZodObject<{
|
|
679
|
-
Index: z.ZodNumber;
|
|
680
|
-
Line: z.ZodNumber;
|
|
681
|
-
Col: z.ZodNumber;
|
|
682
|
-
}, z.core.$strip>;
|
|
683
|
-
}, z.core.$strip>;
|
|
684
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
685
|
-
type: z.ZodLiteral<"ExpressionAttribute">;
|
|
686
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
687
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
688
|
-
Name: z.ZodString;
|
|
689
|
-
NameRange: z.ZodObject<{
|
|
690
|
-
From: z.ZodObject<{
|
|
691
|
-
Index: z.ZodNumber;
|
|
692
|
-
Line: z.ZodNumber;
|
|
693
|
-
Col: z.ZodNumber;
|
|
694
|
-
}, z.core.$strip>;
|
|
695
|
-
To: z.ZodObject<{
|
|
696
|
-
Index: z.ZodNumber;
|
|
697
|
-
Line: z.ZodNumber;
|
|
698
|
-
Col: z.ZodNumber;
|
|
699
|
-
}, z.core.$strip>;
|
|
700
|
-
}, z.core.$strip>;
|
|
701
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
702
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
703
|
-
Expression: z.ZodObject<{
|
|
704
|
-
Value: z.ZodString;
|
|
705
|
-
Range: z.ZodObject<{
|
|
706
|
-
From: z.ZodObject<{
|
|
707
|
-
Index: z.ZodNumber;
|
|
708
|
-
Line: z.ZodNumber;
|
|
709
|
-
Col: z.ZodNumber;
|
|
710
|
-
}, z.core.$strip>;
|
|
711
|
-
To: z.ZodObject<{
|
|
712
|
-
Index: z.ZodNumber;
|
|
713
|
-
Line: z.ZodNumber;
|
|
714
|
-
Col: z.ZodNumber;
|
|
715
|
-
}, z.core.$strip>;
|
|
716
|
-
}, z.core.$strip>;
|
|
717
|
-
}, z.core.$strip>;
|
|
718
|
-
}, z.core.$strip>], "type">;
|
|
719
|
-
Expression: z.ZodObject<{
|
|
720
|
-
Value: z.ZodString;
|
|
721
|
-
Range: z.ZodObject<{
|
|
722
|
-
From: z.ZodObject<{
|
|
723
|
-
Index: z.ZodNumber;
|
|
724
|
-
Line: z.ZodNumber;
|
|
725
|
-
Col: z.ZodNumber;
|
|
726
|
-
}, z.core.$strip>;
|
|
727
|
-
To: z.ZodObject<{
|
|
728
|
-
Index: z.ZodNumber;
|
|
729
|
-
Line: z.ZodNumber;
|
|
730
|
-
Col: z.ZodNumber;
|
|
731
|
-
}, z.core.$strip>;
|
|
732
|
-
}, z.core.$strip>;
|
|
733
|
-
}, z.core.$strip>;
|
|
734
|
-
SingleQuote: z.ZodOptional<z.ZodBoolean>;
|
|
735
|
-
InitializerRange: z.ZodObject<{
|
|
736
|
-
From: z.ZodObject<{
|
|
737
|
-
Index: z.ZodNumber;
|
|
738
|
-
Line: z.ZodNumber;
|
|
739
|
-
Col: z.ZodNumber;
|
|
740
|
-
}, z.core.$strip>;
|
|
741
|
-
To: z.ZodObject<{
|
|
742
|
-
Index: z.ZodNumber;
|
|
743
|
-
Line: z.ZodNumber;
|
|
744
|
-
Col: z.ZodNumber;
|
|
745
|
-
}, z.core.$strip>;
|
|
746
|
-
}, z.core.$strip>;
|
|
747
|
-
Range: z.ZodObject<{
|
|
748
|
-
From: z.ZodObject<{
|
|
749
|
-
Index: z.ZodNumber;
|
|
750
|
-
Line: z.ZodNumber;
|
|
751
|
-
Col: z.ZodNumber;
|
|
752
|
-
}, z.core.$strip>;
|
|
753
|
-
To: z.ZodObject<{
|
|
754
|
-
Index: z.ZodNumber;
|
|
755
|
-
Line: z.ZodNumber;
|
|
756
|
-
Col: z.ZodNumber;
|
|
757
|
-
}, z.core.$strip>;
|
|
758
|
-
}, z.core.$strip>;
|
|
759
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
760
|
-
type: z.ZodLiteral<"SpreadAttributes">;
|
|
761
|
-
Expression: z.ZodObject<{
|
|
762
|
-
Value: z.ZodString;
|
|
763
|
-
Range: z.ZodObject<{
|
|
764
|
-
From: z.ZodObject<{
|
|
765
|
-
Index: z.ZodNumber;
|
|
766
|
-
Line: z.ZodNumber;
|
|
767
|
-
Col: z.ZodNumber;
|
|
768
|
-
}, z.core.$strip>;
|
|
769
|
-
To: z.ZodObject<{
|
|
770
|
-
Index: z.ZodNumber;
|
|
771
|
-
Line: z.ZodNumber;
|
|
772
|
-
Col: z.ZodNumber;
|
|
773
|
-
}, z.core.$strip>;
|
|
774
|
-
}, z.core.$strip>;
|
|
539
|
+
}, z.core.$strip>;
|
|
540
|
+
Range: z.ZodObject<{
|
|
541
|
+
From: z.ZodObject<{
|
|
542
|
+
Index: z.ZodNumber;
|
|
543
|
+
Line: z.ZodNumber;
|
|
544
|
+
Col: z.ZodNumber;
|
|
775
545
|
}, z.core.$strip>;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
Col: z.ZodNumber;
|
|
781
|
-
}, z.core.$strip>;
|
|
782
|
-
To: z.ZodObject<{
|
|
783
|
-
Index: z.ZodNumber;
|
|
784
|
-
Line: z.ZodNumber;
|
|
785
|
-
Col: z.ZodNumber;
|
|
786
|
-
}, z.core.$strip>;
|
|
546
|
+
To: z.ZodObject<{
|
|
547
|
+
Index: z.ZodNumber;
|
|
548
|
+
Line: z.ZodNumber;
|
|
549
|
+
Col: z.ZodNumber;
|
|
787
550
|
}, z.core.$strip>;
|
|
788
|
-
}, z.core.$strip
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
}, z.core.$strip>;
|
|
553
|
+
export declare const TemplDocTypeSchema: z.ZodObject<{
|
|
554
|
+
type: z.ZodLiteral<"DocType">;
|
|
789
555
|
Range: z.ZodObject<{
|
|
790
556
|
From: z.ZodObject<{
|
|
791
557
|
Index: z.ZodNumber;
|
|
@@ -798,43 +564,20 @@ export declare const TemplConditionalAttributeSchema: z.ZodObject<{
|
|
|
798
564
|
Col: z.ZodNumber;
|
|
799
565
|
}, z.core.$strip>;
|
|
800
566
|
}, z.core.$strip>;
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
NameRange: z.ZodObject<{
|
|
808
|
-
From: z.ZodObject<{
|
|
809
|
-
Index: z.ZodNumber;
|
|
810
|
-
Line: z.ZodNumber;
|
|
811
|
-
Col: z.ZodNumber;
|
|
812
|
-
}, z.core.$strip>;
|
|
813
|
-
To: z.ZodObject<{
|
|
814
|
-
Index: z.ZodNumber;
|
|
815
|
-
Line: z.ZodNumber;
|
|
816
|
-
Col: z.ZodNumber;
|
|
817
|
-
}, z.core.$strip>;
|
|
567
|
+
Value: z.ZodString;
|
|
568
|
+
OpenRange: z.ZodObject<{
|
|
569
|
+
From: z.ZodObject<{
|
|
570
|
+
Index: z.ZodNumber;
|
|
571
|
+
Line: z.ZodNumber;
|
|
572
|
+
Col: z.ZodNumber;
|
|
818
573
|
}, z.core.$strip>;
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
Range: z.ZodObject<{
|
|
824
|
-
From: z.ZodObject<{
|
|
825
|
-
Index: z.ZodNumber;
|
|
826
|
-
Line: z.ZodNumber;
|
|
827
|
-
Col: z.ZodNumber;
|
|
828
|
-
}, z.core.$strip>;
|
|
829
|
-
To: z.ZodObject<{
|
|
830
|
-
Index: z.ZodNumber;
|
|
831
|
-
Line: z.ZodNumber;
|
|
832
|
-
Col: z.ZodNumber;
|
|
833
|
-
}, z.core.$strip>;
|
|
834
|
-
}, z.core.$strip>;
|
|
574
|
+
To: z.ZodObject<{
|
|
575
|
+
Index: z.ZodNumber;
|
|
576
|
+
Line: z.ZodNumber;
|
|
577
|
+
Col: z.ZodNumber;
|
|
835
578
|
}, z.core.$strip>;
|
|
836
|
-
}, z.core.$strip
|
|
837
|
-
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
ValueRange: z.ZodObject<{
|
|
838
581
|
From: z.ZodObject<{
|
|
839
582
|
Index: z.ZodNumber;
|
|
840
583
|
Line: z.ZodNumber;
|
|
@@ -846,44 +589,7 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
846
589
|
Col: z.ZodNumber;
|
|
847
590
|
}, z.core.$strip>;
|
|
848
591
|
}, z.core.$strip>;
|
|
849
|
-
|
|
850
|
-
type: z.ZodLiteral<"ConstantAttribute">;
|
|
851
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
852
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
853
|
-
Name: z.ZodString;
|
|
854
|
-
NameRange: z.ZodObject<{
|
|
855
|
-
From: z.ZodObject<{
|
|
856
|
-
Index: z.ZodNumber;
|
|
857
|
-
Line: z.ZodNumber;
|
|
858
|
-
Col: z.ZodNumber;
|
|
859
|
-
}, z.core.$strip>;
|
|
860
|
-
To: z.ZodObject<{
|
|
861
|
-
Index: z.ZodNumber;
|
|
862
|
-
Line: z.ZodNumber;
|
|
863
|
-
Col: z.ZodNumber;
|
|
864
|
-
}, z.core.$strip>;
|
|
865
|
-
}, z.core.$strip>;
|
|
866
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
867
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
868
|
-
Expression: z.ZodObject<{
|
|
869
|
-
Value: z.ZodString;
|
|
870
|
-
Range: z.ZodObject<{
|
|
871
|
-
From: z.ZodObject<{
|
|
872
|
-
Index: z.ZodNumber;
|
|
873
|
-
Line: z.ZodNumber;
|
|
874
|
-
Col: z.ZodNumber;
|
|
875
|
-
}, z.core.$strip>;
|
|
876
|
-
To: z.ZodObject<{
|
|
877
|
-
Index: z.ZodNumber;
|
|
878
|
-
Line: z.ZodNumber;
|
|
879
|
-
Col: z.ZodNumber;
|
|
880
|
-
}, z.core.$strip>;
|
|
881
|
-
}, z.core.$strip>;
|
|
882
|
-
}, z.core.$strip>;
|
|
883
|
-
}, z.core.$strip>], "type">;
|
|
884
|
-
Value: z.ZodString;
|
|
885
|
-
SingleQuote: z.ZodBoolean;
|
|
886
|
-
ValueRange: z.ZodObject<{
|
|
592
|
+
CloseRange: z.ZodObject<{
|
|
887
593
|
From: z.ZodObject<{
|
|
888
594
|
Index: z.ZodNumber;
|
|
889
595
|
Line: z.ZodNumber;
|
|
@@ -895,6 +601,10 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
895
601
|
Col: z.ZodNumber;
|
|
896
602
|
}, z.core.$strip>;
|
|
897
603
|
}, z.core.$strip>;
|
|
604
|
+
}, z.core.$strip>;
|
|
605
|
+
export declare const TemplHTMLCommentSchema: z.ZodObject<{
|
|
606
|
+
type: z.ZodLiteral<"HTMLComment">;
|
|
607
|
+
Contents: z.ZodString;
|
|
898
608
|
Range: z.ZodObject<{
|
|
899
609
|
From: z.ZodObject<{
|
|
900
610
|
Index: z.ZodNumber;
|
|
@@ -907,58 +617,12 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
907
617
|
Col: z.ZodNumber;
|
|
908
618
|
}, z.core.$strip>;
|
|
909
619
|
}, z.core.$strip>;
|
|
910
|
-
}, z.core.$strip
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
From: z.ZodObject<{
|
|
917
|
-
Index: z.ZodNumber;
|
|
918
|
-
Line: z.ZodNumber;
|
|
919
|
-
Col: z.ZodNumber;
|
|
920
|
-
}, z.core.$strip>;
|
|
921
|
-
To: z.ZodObject<{
|
|
922
|
-
Index: z.ZodNumber;
|
|
923
|
-
Line: z.ZodNumber;
|
|
924
|
-
Col: z.ZodNumber;
|
|
925
|
-
}, z.core.$strip>;
|
|
926
|
-
}, z.core.$strip>;
|
|
927
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
928
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
929
|
-
Expression: z.ZodObject<{
|
|
930
|
-
Value: z.ZodString;
|
|
931
|
-
Range: z.ZodObject<{
|
|
932
|
-
From: z.ZodObject<{
|
|
933
|
-
Index: z.ZodNumber;
|
|
934
|
-
Line: z.ZodNumber;
|
|
935
|
-
Col: z.ZodNumber;
|
|
936
|
-
}, z.core.$strip>;
|
|
937
|
-
To: z.ZodObject<{
|
|
938
|
-
Index: z.ZodNumber;
|
|
939
|
-
Line: z.ZodNumber;
|
|
940
|
-
Col: z.ZodNumber;
|
|
941
|
-
}, z.core.$strip>;
|
|
942
|
-
}, z.core.$strip>;
|
|
943
|
-
}, z.core.$strip>;
|
|
944
|
-
}, z.core.$strip>], "type">;
|
|
945
|
-
Expression: z.ZodObject<{
|
|
946
|
-
Value: z.ZodString;
|
|
947
|
-
Range: z.ZodObject<{
|
|
948
|
-
From: z.ZodObject<{
|
|
949
|
-
Index: z.ZodNumber;
|
|
950
|
-
Line: z.ZodNumber;
|
|
951
|
-
Col: z.ZodNumber;
|
|
952
|
-
}, z.core.$strip>;
|
|
953
|
-
To: z.ZodObject<{
|
|
954
|
-
Index: z.ZodNumber;
|
|
955
|
-
Line: z.ZodNumber;
|
|
956
|
-
Col: z.ZodNumber;
|
|
957
|
-
}, z.core.$strip>;
|
|
958
|
-
}, z.core.$strip>;
|
|
959
|
-
}, z.core.$strip>;
|
|
960
|
-
SingleQuote: z.ZodOptional<z.ZodBoolean>;
|
|
961
|
-
InitializerRange: z.ZodObject<{
|
|
620
|
+
}, z.core.$strip>;
|
|
621
|
+
export declare const TemplGoCommentSchema: z.ZodObject<{
|
|
622
|
+
type: z.ZodLiteral<"GoComment">;
|
|
623
|
+
Contents: z.ZodString;
|
|
624
|
+
Multiline: z.ZodBoolean;
|
|
625
|
+
Range: z.ZodObject<{
|
|
962
626
|
From: z.ZodObject<{
|
|
963
627
|
Index: z.ZodNumber;
|
|
964
628
|
Line: z.ZodNumber;
|
|
@@ -970,6 +634,9 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
970
634
|
Col: z.ZodNumber;
|
|
971
635
|
}, z.core.$strip>;
|
|
972
636
|
}, z.core.$strip>;
|
|
637
|
+
}, z.core.$strip>;
|
|
638
|
+
export declare const TemplChildrenExpressionSchema: z.ZodObject<{
|
|
639
|
+
type: z.ZodLiteral<"ChildrenExpression">;
|
|
973
640
|
Range: z.ZodObject<{
|
|
974
641
|
From: z.ZodObject<{
|
|
975
642
|
Index: z.ZodNumber;
|
|
@@ -982,23 +649,9 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
982
649
|
Col: z.ZodNumber;
|
|
983
650
|
}, z.core.$strip>;
|
|
984
651
|
}, z.core.$strip>;
|
|
985
|
-
}, z.core.$strip
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
Value: z.ZodString;
|
|
989
|
-
Range: z.ZodObject<{
|
|
990
|
-
From: z.ZodObject<{
|
|
991
|
-
Index: z.ZodNumber;
|
|
992
|
-
Line: z.ZodNumber;
|
|
993
|
-
Col: z.ZodNumber;
|
|
994
|
-
}, z.core.$strip>;
|
|
995
|
-
To: z.ZodObject<{
|
|
996
|
-
Index: z.ZodNumber;
|
|
997
|
-
Line: z.ZodNumber;
|
|
998
|
-
Col: z.ZodNumber;
|
|
999
|
-
}, z.core.$strip>;
|
|
1000
|
-
}, z.core.$strip>;
|
|
1001
|
-
}, z.core.$strip>;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
export declare const TemplFallthroughSchema: z.ZodObject<{
|
|
654
|
+
type: z.ZodLiteral<"Fallthrough">;
|
|
1002
655
|
Range: z.ZodObject<{
|
|
1003
656
|
From: z.ZodObject<{
|
|
1004
657
|
Index: z.ZodNumber;
|
|
@@ -1011,350 +664,32 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1011
664
|
Col: z.ZodNumber;
|
|
1012
665
|
}, z.core.$strip>;
|
|
1013
666
|
}, z.core.$strip>;
|
|
1014
|
-
}, z.core.$strip
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
Col: z.ZodNumber;
|
|
1041
|
-
}, z.core.$strip>;
|
|
1042
|
-
To: z.ZodObject<{
|
|
1043
|
-
Index: z.ZodNumber;
|
|
1044
|
-
Line: z.ZodNumber;
|
|
1045
|
-
Col: z.ZodNumber;
|
|
1046
|
-
}, z.core.$strip>;
|
|
1047
|
-
}, z.core.$strip>;
|
|
1048
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1049
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
1050
|
-
Expression: z.ZodObject<{
|
|
1051
|
-
Value: z.ZodString;
|
|
1052
|
-
Range: z.ZodObject<{
|
|
1053
|
-
From: z.ZodObject<{
|
|
1054
|
-
Index: z.ZodNumber;
|
|
1055
|
-
Line: z.ZodNumber;
|
|
1056
|
-
Col: z.ZodNumber;
|
|
1057
|
-
}, z.core.$strip>;
|
|
1058
|
-
To: z.ZodObject<{
|
|
1059
|
-
Index: z.ZodNumber;
|
|
1060
|
-
Line: z.ZodNumber;
|
|
1061
|
-
Col: z.ZodNumber;
|
|
1062
|
-
}, z.core.$strip>;
|
|
1063
|
-
}, z.core.$strip>;
|
|
1064
|
-
}, z.core.$strip>;
|
|
1065
|
-
}, z.core.$strip>], "type">;
|
|
1066
|
-
Range: z.ZodObject<{
|
|
1067
|
-
From: z.ZodObject<{
|
|
1068
|
-
Index: z.ZodNumber;
|
|
1069
|
-
Line: z.ZodNumber;
|
|
1070
|
-
Col: z.ZodNumber;
|
|
1071
|
-
}, z.core.$strip>;
|
|
1072
|
-
To: z.ZodObject<{
|
|
1073
|
-
Index: z.ZodNumber;
|
|
1074
|
-
Line: z.ZodNumber;
|
|
1075
|
-
Col: z.ZodNumber;
|
|
1076
|
-
}, z.core.$strip>;
|
|
1077
|
-
}, z.core.$strip>;
|
|
1078
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1079
|
-
type: z.ZodLiteral<"ConstantAttribute">;
|
|
1080
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1081
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
1082
|
-
Name: z.ZodString;
|
|
1083
|
-
NameRange: z.ZodObject<{
|
|
1084
|
-
From: z.ZodObject<{
|
|
1085
|
-
Index: z.ZodNumber;
|
|
1086
|
-
Line: z.ZodNumber;
|
|
1087
|
-
Col: z.ZodNumber;
|
|
1088
|
-
}, z.core.$strip>;
|
|
1089
|
-
To: z.ZodObject<{
|
|
1090
|
-
Index: z.ZodNumber;
|
|
1091
|
-
Line: z.ZodNumber;
|
|
1092
|
-
Col: z.ZodNumber;
|
|
1093
|
-
}, z.core.$strip>;
|
|
1094
|
-
}, z.core.$strip>;
|
|
1095
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1096
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
1097
|
-
Expression: z.ZodObject<{
|
|
1098
|
-
Value: z.ZodString;
|
|
1099
|
-
Range: z.ZodObject<{
|
|
1100
|
-
From: z.ZodObject<{
|
|
1101
|
-
Index: z.ZodNumber;
|
|
1102
|
-
Line: z.ZodNumber;
|
|
1103
|
-
Col: z.ZodNumber;
|
|
1104
|
-
}, z.core.$strip>;
|
|
1105
|
-
To: z.ZodObject<{
|
|
1106
|
-
Index: z.ZodNumber;
|
|
1107
|
-
Line: z.ZodNumber;
|
|
1108
|
-
Col: z.ZodNumber;
|
|
1109
|
-
}, z.core.$strip>;
|
|
1110
|
-
}, z.core.$strip>;
|
|
1111
|
-
}, z.core.$strip>;
|
|
1112
|
-
}, z.core.$strip>], "type">;
|
|
1113
|
-
Value: z.ZodString;
|
|
1114
|
-
SingleQuote: z.ZodBoolean;
|
|
1115
|
-
ValueRange: z.ZodObject<{
|
|
1116
|
-
From: z.ZodObject<{
|
|
1117
|
-
Index: z.ZodNumber;
|
|
1118
|
-
Line: z.ZodNumber;
|
|
1119
|
-
Col: z.ZodNumber;
|
|
1120
|
-
}, z.core.$strip>;
|
|
1121
|
-
To: z.ZodObject<{
|
|
1122
|
-
Index: z.ZodNumber;
|
|
1123
|
-
Line: z.ZodNumber;
|
|
1124
|
-
Col: z.ZodNumber;
|
|
1125
|
-
}, z.core.$strip>;
|
|
1126
|
-
}, z.core.$strip>;
|
|
1127
|
-
Range: z.ZodObject<{
|
|
1128
|
-
From: z.ZodObject<{
|
|
1129
|
-
Index: z.ZodNumber;
|
|
1130
|
-
Line: z.ZodNumber;
|
|
1131
|
-
Col: z.ZodNumber;
|
|
1132
|
-
}, z.core.$strip>;
|
|
1133
|
-
To: z.ZodObject<{
|
|
1134
|
-
Index: z.ZodNumber;
|
|
1135
|
-
Line: z.ZodNumber;
|
|
1136
|
-
Col: z.ZodNumber;
|
|
1137
|
-
}, z.core.$strip>;
|
|
1138
|
-
}, z.core.$strip>;
|
|
1139
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1140
|
-
type: z.ZodLiteral<"ExpressionAttribute">;
|
|
1141
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1142
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
1143
|
-
Name: z.ZodString;
|
|
1144
|
-
NameRange: z.ZodObject<{
|
|
1145
|
-
From: z.ZodObject<{
|
|
1146
|
-
Index: z.ZodNumber;
|
|
1147
|
-
Line: z.ZodNumber;
|
|
1148
|
-
Col: z.ZodNumber;
|
|
1149
|
-
}, z.core.$strip>;
|
|
1150
|
-
To: z.ZodObject<{
|
|
1151
|
-
Index: z.ZodNumber;
|
|
1152
|
-
Line: z.ZodNumber;
|
|
1153
|
-
Col: z.ZodNumber;
|
|
1154
|
-
}, z.core.$strip>;
|
|
1155
|
-
}, z.core.$strip>;
|
|
1156
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1157
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
1158
|
-
Expression: z.ZodObject<{
|
|
1159
|
-
Value: z.ZodString;
|
|
1160
|
-
Range: z.ZodObject<{
|
|
1161
|
-
From: z.ZodObject<{
|
|
1162
|
-
Index: z.ZodNumber;
|
|
1163
|
-
Line: z.ZodNumber;
|
|
1164
|
-
Col: z.ZodNumber;
|
|
1165
|
-
}, z.core.$strip>;
|
|
1166
|
-
To: z.ZodObject<{
|
|
1167
|
-
Index: z.ZodNumber;
|
|
1168
|
-
Line: z.ZodNumber;
|
|
1169
|
-
Col: z.ZodNumber;
|
|
1170
|
-
}, z.core.$strip>;
|
|
1171
|
-
}, z.core.$strip>;
|
|
1172
|
-
}, z.core.$strip>;
|
|
1173
|
-
}, z.core.$strip>], "type">;
|
|
1174
|
-
Expression: z.ZodObject<{
|
|
1175
|
-
Value: z.ZodString;
|
|
1176
|
-
Range: z.ZodObject<{
|
|
1177
|
-
From: z.ZodObject<{
|
|
1178
|
-
Index: z.ZodNumber;
|
|
1179
|
-
Line: z.ZodNumber;
|
|
1180
|
-
Col: z.ZodNumber;
|
|
1181
|
-
}, z.core.$strip>;
|
|
1182
|
-
To: z.ZodObject<{
|
|
1183
|
-
Index: z.ZodNumber;
|
|
1184
|
-
Line: z.ZodNumber;
|
|
1185
|
-
Col: z.ZodNumber;
|
|
1186
|
-
}, z.core.$strip>;
|
|
1187
|
-
}, z.core.$strip>;
|
|
1188
|
-
}, z.core.$strip>;
|
|
1189
|
-
SingleQuote: z.ZodOptional<z.ZodBoolean>;
|
|
1190
|
-
InitializerRange: z.ZodObject<{
|
|
1191
|
-
From: z.ZodObject<{
|
|
1192
|
-
Index: z.ZodNumber;
|
|
1193
|
-
Line: z.ZodNumber;
|
|
1194
|
-
Col: z.ZodNumber;
|
|
1195
|
-
}, z.core.$strip>;
|
|
1196
|
-
To: z.ZodObject<{
|
|
1197
|
-
Index: z.ZodNumber;
|
|
1198
|
-
Line: z.ZodNumber;
|
|
1199
|
-
Col: z.ZodNumber;
|
|
1200
|
-
}, z.core.$strip>;
|
|
1201
|
-
}, z.core.$strip>;
|
|
1202
|
-
Range: z.ZodObject<{
|
|
1203
|
-
From: z.ZodObject<{
|
|
1204
|
-
Index: z.ZodNumber;
|
|
1205
|
-
Line: z.ZodNumber;
|
|
1206
|
-
Col: z.ZodNumber;
|
|
1207
|
-
}, z.core.$strip>;
|
|
1208
|
-
To: z.ZodObject<{
|
|
1209
|
-
Index: z.ZodNumber;
|
|
1210
|
-
Line: z.ZodNumber;
|
|
1211
|
-
Col: z.ZodNumber;
|
|
1212
|
-
}, z.core.$strip>;
|
|
1213
|
-
}, z.core.$strip>;
|
|
1214
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1215
|
-
type: z.ZodLiteral<"SpreadAttributes">;
|
|
1216
|
-
Expression: z.ZodObject<{
|
|
1217
|
-
Value: z.ZodString;
|
|
1218
|
-
Range: z.ZodObject<{
|
|
1219
|
-
From: z.ZodObject<{
|
|
1220
|
-
Index: z.ZodNumber;
|
|
1221
|
-
Line: z.ZodNumber;
|
|
1222
|
-
Col: z.ZodNumber;
|
|
1223
|
-
}, z.core.$strip>;
|
|
1224
|
-
To: z.ZodObject<{
|
|
1225
|
-
Index: z.ZodNumber;
|
|
1226
|
-
Line: z.ZodNumber;
|
|
1227
|
-
Col: z.ZodNumber;
|
|
1228
|
-
}, z.core.$strip>;
|
|
1229
|
-
}, z.core.$strip>;
|
|
1230
|
-
}, z.core.$strip>;
|
|
1231
|
-
Range: z.ZodObject<{
|
|
1232
|
-
From: z.ZodObject<{
|
|
1233
|
-
Index: z.ZodNumber;
|
|
1234
|
-
Line: z.ZodNumber;
|
|
1235
|
-
Col: z.ZodNumber;
|
|
1236
|
-
}, z.core.$strip>;
|
|
1237
|
-
To: z.ZodObject<{
|
|
1238
|
-
Index: z.ZodNumber;
|
|
1239
|
-
Line: z.ZodNumber;
|
|
1240
|
-
Col: z.ZodNumber;
|
|
1241
|
-
}, z.core.$strip>;
|
|
1242
|
-
}, z.core.$strip>;
|
|
1243
|
-
}, z.core.$strip>, z.ZodObject</*elided*/ any, z.core.$strip>]>>;
|
|
1244
|
-
Else: z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1245
|
-
type: z.ZodLiteral<"BoolConstantAttribute">;
|
|
1246
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1247
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
1248
|
-
Name: z.ZodString;
|
|
1249
|
-
NameRange: z.ZodObject<{
|
|
1250
|
-
From: z.ZodObject<{
|
|
1251
|
-
Index: z.ZodNumber;
|
|
1252
|
-
Line: z.ZodNumber;
|
|
1253
|
-
Col: z.ZodNumber;
|
|
1254
|
-
}, z.core.$strip>;
|
|
1255
|
-
To: z.ZodObject<{
|
|
1256
|
-
Index: z.ZodNumber;
|
|
1257
|
-
Line: z.ZodNumber;
|
|
1258
|
-
Col: z.ZodNumber;
|
|
1259
|
-
}, z.core.$strip>;
|
|
1260
|
-
}, z.core.$strip>;
|
|
1261
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1262
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
1263
|
-
Expression: z.ZodObject<{
|
|
1264
|
-
Value: z.ZodString;
|
|
1265
|
-
Range: z.ZodObject<{
|
|
1266
|
-
From: z.ZodObject<{
|
|
1267
|
-
Index: z.ZodNumber;
|
|
1268
|
-
Line: z.ZodNumber;
|
|
1269
|
-
Col: z.ZodNumber;
|
|
1270
|
-
}, z.core.$strip>;
|
|
1271
|
-
To: z.ZodObject<{
|
|
1272
|
-
Index: z.ZodNumber;
|
|
1273
|
-
Line: z.ZodNumber;
|
|
1274
|
-
Col: z.ZodNumber;
|
|
1275
|
-
}, z.core.$strip>;
|
|
1276
|
-
}, z.core.$strip>;
|
|
1277
|
-
}, z.core.$strip>;
|
|
1278
|
-
}, z.core.$strip>], "type">;
|
|
1279
|
-
Range: z.ZodObject<{
|
|
1280
|
-
From: z.ZodObject<{
|
|
1281
|
-
Index: z.ZodNumber;
|
|
1282
|
-
Line: z.ZodNumber;
|
|
1283
|
-
Col: z.ZodNumber;
|
|
1284
|
-
}, z.core.$strip>;
|
|
1285
|
-
To: z.ZodObject<{
|
|
1286
|
-
Index: z.ZodNumber;
|
|
1287
|
-
Line: z.ZodNumber;
|
|
1288
|
-
Col: z.ZodNumber;
|
|
1289
|
-
}, z.core.$strip>;
|
|
1290
|
-
}, z.core.$strip>;
|
|
1291
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1292
|
-
type: z.ZodLiteral<"ConstantAttribute">;
|
|
1293
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1294
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
1295
|
-
Name: z.ZodString;
|
|
1296
|
-
NameRange: z.ZodObject<{
|
|
1297
|
-
From: z.ZodObject<{
|
|
1298
|
-
Index: z.ZodNumber;
|
|
1299
|
-
Line: z.ZodNumber;
|
|
1300
|
-
Col: z.ZodNumber;
|
|
1301
|
-
}, z.core.$strip>;
|
|
1302
|
-
To: z.ZodObject<{
|
|
1303
|
-
Index: z.ZodNumber;
|
|
1304
|
-
Line: z.ZodNumber;
|
|
1305
|
-
Col: z.ZodNumber;
|
|
1306
|
-
}, z.core.$strip>;
|
|
1307
|
-
}, z.core.$strip>;
|
|
1308
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1309
|
-
type: z.ZodLiteral<"ExpressionAttributeKey">;
|
|
1310
|
-
Expression: z.ZodObject<{
|
|
1311
|
-
Value: z.ZodString;
|
|
1312
|
-
Range: z.ZodObject<{
|
|
1313
|
-
From: z.ZodObject<{
|
|
1314
|
-
Index: z.ZodNumber;
|
|
1315
|
-
Line: z.ZodNumber;
|
|
1316
|
-
Col: z.ZodNumber;
|
|
1317
|
-
}, z.core.$strip>;
|
|
1318
|
-
To: z.ZodObject<{
|
|
1319
|
-
Index: z.ZodNumber;
|
|
1320
|
-
Line: z.ZodNumber;
|
|
1321
|
-
Col: z.ZodNumber;
|
|
1322
|
-
}, z.core.$strip>;
|
|
1323
|
-
}, z.core.$strip>;
|
|
1324
|
-
}, z.core.$strip>;
|
|
1325
|
-
}, z.core.$strip>], "type">;
|
|
1326
|
-
Value: z.ZodString;
|
|
1327
|
-
SingleQuote: z.ZodBoolean;
|
|
1328
|
-
ValueRange: z.ZodObject<{
|
|
1329
|
-
From: z.ZodObject<{
|
|
1330
|
-
Index: z.ZodNumber;
|
|
1331
|
-
Line: z.ZodNumber;
|
|
1332
|
-
Col: z.ZodNumber;
|
|
1333
|
-
}, z.core.$strip>;
|
|
1334
|
-
To: z.ZodObject<{
|
|
1335
|
-
Index: z.ZodNumber;
|
|
1336
|
-
Line: z.ZodNumber;
|
|
1337
|
-
Col: z.ZodNumber;
|
|
1338
|
-
}, z.core.$strip>;
|
|
1339
|
-
}, z.core.$strip>;
|
|
1340
|
-
Range: z.ZodObject<{
|
|
1341
|
-
From: z.ZodObject<{
|
|
1342
|
-
Index: z.ZodNumber;
|
|
1343
|
-
Line: z.ZodNumber;
|
|
1344
|
-
Col: z.ZodNumber;
|
|
1345
|
-
}, z.core.$strip>;
|
|
1346
|
-
To: z.ZodObject<{
|
|
1347
|
-
Index: z.ZodNumber;
|
|
1348
|
-
Line: z.ZodNumber;
|
|
1349
|
-
Col: z.ZodNumber;
|
|
1350
|
-
}, z.core.$strip>;
|
|
1351
|
-
}, z.core.$strip>;
|
|
1352
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1353
|
-
type: z.ZodLiteral<"ExpressionAttribute">;
|
|
1354
|
-
Key: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1355
|
-
type: z.ZodLiteral<"ConstantAttributeKey">;
|
|
1356
|
-
Name: z.ZodString;
|
|
1357
|
-
NameRange: z.ZodObject<{
|
|
667
|
+
}, z.core.$strip>;
|
|
668
|
+
/**
|
|
669
|
+
* Inferred TypeScript types from Zod schemas
|
|
670
|
+
*/
|
|
671
|
+
export type TemplStringExpression = z.infer<typeof TemplStringExpressionSchema>;
|
|
672
|
+
export type TemplWhitespace = z.infer<typeof TemplWhitespaceSchema>;
|
|
673
|
+
export type TemplText = z.infer<typeof TemplTextSchema>;
|
|
674
|
+
export type TemplGoCode = z.infer<typeof TemplGoCodeSchema>;
|
|
675
|
+
export type TemplCallExpression = z.infer<typeof TemplCallExpressionSchema>;
|
|
676
|
+
export type TemplDocType = z.infer<typeof TemplDocTypeSchema>;
|
|
677
|
+
export type TemplHTMLComment = z.infer<typeof TemplHTMLCommentSchema>;
|
|
678
|
+
export type TemplGoComment = z.infer<typeof TemplGoCommentSchema>;
|
|
679
|
+
export type TemplChildrenExpression = z.infer<typeof TemplChildrenExpressionSchema>;
|
|
680
|
+
export type TemplFallthrough = z.infer<typeof TemplFallthroughSchema>;
|
|
681
|
+
export declare const TemplConstantCSSPropertySchema: z.ZodObject<{
|
|
682
|
+
type: z.ZodLiteral<"ConstantCSSProperty">;
|
|
683
|
+
Name: z.ZodString;
|
|
684
|
+
Value: z.ZodString;
|
|
685
|
+
}, z.core.$strip>;
|
|
686
|
+
export declare const TemplExpressionCSSPropertySchema: z.ZodObject<{
|
|
687
|
+
type: z.ZodLiteral<"ExpressionCSSProperty">;
|
|
688
|
+
Name: z.ZodString;
|
|
689
|
+
Value: z.ZodObject<{
|
|
690
|
+
Expression: z.ZodObject<{
|
|
691
|
+
Value: z.ZodString;
|
|
692
|
+
Range: z.ZodObject<{
|
|
1358
693
|
From: z.ZodObject<{
|
|
1359
694
|
Index: z.ZodNumber;
|
|
1360
695
|
Line: z.ZodNumber;
|
|
@@ -1366,24 +701,18 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1366
701
|
Col: z.ZodNumber;
|
|
1367
702
|
}, z.core.$strip>;
|
|
1368
703
|
}, z.core.$strip>;
|
|
1369
|
-
}, z.core.$strip
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
Line: z.ZodNumber;
|
|
1382
|
-
Col: z.ZodNumber;
|
|
1383
|
-
}, z.core.$strip>;
|
|
1384
|
-
}, z.core.$strip>;
|
|
1385
|
-
}, z.core.$strip>;
|
|
1386
|
-
}, z.core.$strip>], "type">;
|
|
704
|
+
}, z.core.$strip>;
|
|
705
|
+
TrailingSpace: z.ZodString;
|
|
706
|
+
}, z.core.$strip>;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
export declare const TemplCSSPropertySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
709
|
+
type: z.ZodLiteral<"ConstantCSSProperty">;
|
|
710
|
+
Name: z.ZodString;
|
|
711
|
+
Value: z.ZodString;
|
|
712
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
713
|
+
type: z.ZodLiteral<"ExpressionCSSProperty">;
|
|
714
|
+
Name: z.ZodString;
|
|
715
|
+
Value: z.ZodObject<{
|
|
1387
716
|
Expression: z.ZodObject<{
|
|
1388
717
|
Value: z.ZodString;
|
|
1389
718
|
Range: z.ZodObject<{
|
|
@@ -1399,8 +728,142 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1399
728
|
}, z.core.$strip>;
|
|
1400
729
|
}, z.core.$strip>;
|
|
1401
730
|
}, z.core.$strip>;
|
|
1402
|
-
|
|
1403
|
-
|
|
731
|
+
TrailingSpace: z.ZodString;
|
|
732
|
+
}, z.core.$strip>;
|
|
733
|
+
}, z.core.$strip>], "type">;
|
|
734
|
+
export type TemplConstantCSSProperty = z.infer<typeof TemplConstantCSSPropertySchema>;
|
|
735
|
+
export type TemplExpressionCSSProperty = z.infer<typeof TemplExpressionCSSPropertySchema>;
|
|
736
|
+
export type TemplCSSProperty = z.infer<typeof TemplCSSPropertySchema>;
|
|
737
|
+
export interface TemplElementNode {
|
|
738
|
+
type: "Element";
|
|
739
|
+
Name: string;
|
|
740
|
+
Attributes: TemplAttribute[] | null;
|
|
741
|
+
IndentAttrs: boolean;
|
|
742
|
+
Children: TemplChild[] | null;
|
|
743
|
+
IndentChildren: boolean;
|
|
744
|
+
TrailingSpace: string;
|
|
745
|
+
NameRange: TemplRange;
|
|
746
|
+
OpenTagRange: TemplRange;
|
|
747
|
+
Range: TemplRange;
|
|
748
|
+
CloseTagRange: TemplRange | null;
|
|
749
|
+
SelfClosing: boolean;
|
|
750
|
+
}
|
|
751
|
+
export interface TemplElseIfExpression {
|
|
752
|
+
Expression: TemplExpression;
|
|
753
|
+
Then: TemplChild[];
|
|
754
|
+
Range: TemplRange;
|
|
755
|
+
}
|
|
756
|
+
export interface TemplIfExpression {
|
|
757
|
+
type: "IfExpression";
|
|
758
|
+
Expression: TemplExpression;
|
|
759
|
+
Then: TemplChild[];
|
|
760
|
+
ElseIfs: TemplElseIfExpression[] | null;
|
|
761
|
+
Else: TemplChild[] | null;
|
|
762
|
+
Range: TemplRange;
|
|
763
|
+
}
|
|
764
|
+
export interface TemplCaseExpression {
|
|
765
|
+
Expression: TemplExpression;
|
|
766
|
+
Children: TemplChild[];
|
|
767
|
+
}
|
|
768
|
+
export interface TemplSwitchExpression {
|
|
769
|
+
type: "SwitchExpression";
|
|
770
|
+
Expression: TemplExpression;
|
|
771
|
+
Cases: TemplCaseExpression[];
|
|
772
|
+
Range: TemplRange;
|
|
773
|
+
}
|
|
774
|
+
export interface TemplForExpression {
|
|
775
|
+
type: "ForExpression";
|
|
776
|
+
Expression: TemplExpression;
|
|
777
|
+
Children: TemplChild[];
|
|
778
|
+
Range: TemplRange;
|
|
779
|
+
}
|
|
780
|
+
export interface TemplElementExpression {
|
|
781
|
+
type: "TemplElementExpression";
|
|
782
|
+
Expression: TemplExpression;
|
|
783
|
+
Children: TemplChild[] | null;
|
|
784
|
+
Range: TemplRange;
|
|
785
|
+
}
|
|
786
|
+
export interface TemplScriptElement {
|
|
787
|
+
type: "ScriptElement";
|
|
788
|
+
Attributes: TemplAttribute[] | null;
|
|
789
|
+
Contents: TemplScriptContents[] | null;
|
|
790
|
+
OpenTagRange: TemplRange;
|
|
791
|
+
CloseTagRange: TemplRange;
|
|
792
|
+
Range: TemplRange;
|
|
793
|
+
}
|
|
794
|
+
export interface TemplRawElement {
|
|
795
|
+
type: "RawElement";
|
|
796
|
+
Name: string;
|
|
797
|
+
Attributes: TemplAttribute[] | null;
|
|
798
|
+
Contents: string;
|
|
799
|
+
NameRange: TemplRange;
|
|
800
|
+
OpenTagRange: TemplRange;
|
|
801
|
+
CloseTagRange: TemplRange;
|
|
802
|
+
Range: TemplRange;
|
|
803
|
+
}
|
|
804
|
+
export type TemplChild = TemplStringExpression | TemplGoCode | TemplCallExpression | TemplElementExpression | TemplElementNode | TemplWhitespace | TemplText | TemplDocType | TemplHTMLComment | TemplGoComment | TemplIfExpression | TemplForExpression | TemplSwitchExpression | TemplFallthrough | TemplChildrenExpression | TemplScriptElement | TemplRawElement;
|
|
805
|
+
export declare const TemplElementNodeSchema: z.ZodObject<{
|
|
806
|
+
type: z.ZodLiteral<"Element">;
|
|
807
|
+
Name: z.ZodString;
|
|
808
|
+
Attributes: z.ZodNullable<z.ZodArray<z.ZodType<TemplAttribute, unknown, z.core.$ZodTypeInternals<TemplAttribute, unknown>>>>;
|
|
809
|
+
IndentAttrs: z.ZodBoolean;
|
|
810
|
+
Children: z.ZodNullable<z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>>;
|
|
811
|
+
IndentChildren: z.ZodBoolean;
|
|
812
|
+
TrailingSpace: z.ZodString;
|
|
813
|
+
NameRange: z.ZodObject<{
|
|
814
|
+
From: z.ZodObject<{
|
|
815
|
+
Index: z.ZodNumber;
|
|
816
|
+
Line: z.ZodNumber;
|
|
817
|
+
Col: z.ZodNumber;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
To: z.ZodObject<{
|
|
820
|
+
Index: z.ZodNumber;
|
|
821
|
+
Line: z.ZodNumber;
|
|
822
|
+
Col: z.ZodNumber;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
}, z.core.$strip>;
|
|
825
|
+
OpenTagRange: z.ZodObject<{
|
|
826
|
+
From: z.ZodObject<{
|
|
827
|
+
Index: z.ZodNumber;
|
|
828
|
+
Line: z.ZodNumber;
|
|
829
|
+
Col: z.ZodNumber;
|
|
830
|
+
}, z.core.$strip>;
|
|
831
|
+
To: z.ZodObject<{
|
|
832
|
+
Index: z.ZodNumber;
|
|
833
|
+
Line: z.ZodNumber;
|
|
834
|
+
Col: z.ZodNumber;
|
|
835
|
+
}, z.core.$strip>;
|
|
836
|
+
}, z.core.$strip>;
|
|
837
|
+
Range: z.ZodObject<{
|
|
838
|
+
From: z.ZodObject<{
|
|
839
|
+
Index: z.ZodNumber;
|
|
840
|
+
Line: z.ZodNumber;
|
|
841
|
+
Col: z.ZodNumber;
|
|
842
|
+
}, z.core.$strip>;
|
|
843
|
+
To: z.ZodObject<{
|
|
844
|
+
Index: z.ZodNumber;
|
|
845
|
+
Line: z.ZodNumber;
|
|
846
|
+
Col: z.ZodNumber;
|
|
847
|
+
}, z.core.$strip>;
|
|
848
|
+
}, z.core.$strip>;
|
|
849
|
+
CloseTagRange: z.ZodNullable<z.ZodObject<{
|
|
850
|
+
From: z.ZodObject<{
|
|
851
|
+
Index: z.ZodNumber;
|
|
852
|
+
Line: z.ZodNumber;
|
|
853
|
+
Col: z.ZodNumber;
|
|
854
|
+
}, z.core.$strip>;
|
|
855
|
+
To: z.ZodObject<{
|
|
856
|
+
Index: z.ZodNumber;
|
|
857
|
+
Line: z.ZodNumber;
|
|
858
|
+
Col: z.ZodNumber;
|
|
859
|
+
}, z.core.$strip>;
|
|
860
|
+
}, z.core.$strip>>;
|
|
861
|
+
SelfClosing: z.ZodBoolean;
|
|
862
|
+
}, z.core.$strip>;
|
|
863
|
+
export declare const TemplElseIfExpressionSchema: z.ZodObject<{
|
|
864
|
+
Expression: z.ZodObject<{
|
|
865
|
+
Value: z.ZodString;
|
|
866
|
+
Range: z.ZodObject<{
|
|
1404
867
|
From: z.ZodObject<{
|
|
1405
868
|
Index: z.ZodNumber;
|
|
1406
869
|
Line: z.ZodNumber;
|
|
@@ -1412,6 +875,25 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1412
875
|
Col: z.ZodNumber;
|
|
1413
876
|
}, z.core.$strip>;
|
|
1414
877
|
}, z.core.$strip>;
|
|
878
|
+
}, z.core.$strip>;
|
|
879
|
+
Then: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
880
|
+
Range: z.ZodObject<{
|
|
881
|
+
From: z.ZodObject<{
|
|
882
|
+
Index: z.ZodNumber;
|
|
883
|
+
Line: z.ZodNumber;
|
|
884
|
+
Col: z.ZodNumber;
|
|
885
|
+
}, z.core.$strip>;
|
|
886
|
+
To: z.ZodObject<{
|
|
887
|
+
Index: z.ZodNumber;
|
|
888
|
+
Line: z.ZodNumber;
|
|
889
|
+
Col: z.ZodNumber;
|
|
890
|
+
}, z.core.$strip>;
|
|
891
|
+
}, z.core.$strip>;
|
|
892
|
+
}, z.core.$strip>;
|
|
893
|
+
export declare const TemplIfExpressionSchema: z.ZodObject<{
|
|
894
|
+
type: z.ZodLiteral<"IfExpression">;
|
|
895
|
+
Expression: z.ZodObject<{
|
|
896
|
+
Value: z.ZodString;
|
|
1415
897
|
Range: z.ZodObject<{
|
|
1416
898
|
From: z.ZodObject<{
|
|
1417
899
|
Index: z.ZodNumber;
|
|
@@ -1424,8 +906,9 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1424
906
|
Col: z.ZodNumber;
|
|
1425
907
|
}, z.core.$strip>;
|
|
1426
908
|
}, z.core.$strip>;
|
|
1427
|
-
}, z.core.$strip
|
|
1428
|
-
|
|
909
|
+
}, z.core.$strip>;
|
|
910
|
+
Then: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
911
|
+
ElseIfs: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1429
912
|
Expression: z.ZodObject<{
|
|
1430
913
|
Value: z.ZodString;
|
|
1431
914
|
Range: z.ZodObject<{
|
|
@@ -1441,6 +924,7 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1441
924
|
}, z.core.$strip>;
|
|
1442
925
|
}, z.core.$strip>;
|
|
1443
926
|
}, z.core.$strip>;
|
|
927
|
+
Then: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
1444
928
|
Range: z.ZodObject<{
|
|
1445
929
|
From: z.ZodObject<{
|
|
1446
930
|
Index: z.ZodNumber;
|
|
@@ -1453,7 +937,8 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1453
937
|
Col: z.ZodNumber;
|
|
1454
938
|
}, z.core.$strip>;
|
|
1455
939
|
}, z.core.$strip>;
|
|
1456
|
-
}, z.core.$strip
|
|
940
|
+
}, z.core.$strip>>>;
|
|
941
|
+
Else: z.ZodNullable<z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>>;
|
|
1457
942
|
Range: z.ZodObject<{
|
|
1458
943
|
From: z.ZodObject<{
|
|
1459
944
|
Index: z.ZodNumber;
|
|
@@ -1466,10 +951,8 @@ export declare const TemplAttributeSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1466
951
|
Col: z.ZodNumber;
|
|
1467
952
|
}, z.core.$strip>;
|
|
1468
953
|
}, z.core.$strip>;
|
|
1469
|
-
}, z.core.$strip
|
|
1470
|
-
export
|
|
1471
|
-
export type TemplAttribute = z.infer<typeof TemplAttributeSchema>;
|
|
1472
|
-
export declare const TemplStringExpressionSchema: z.ZodObject<{
|
|
954
|
+
}, z.core.$strip>;
|
|
955
|
+
export declare const TemplCaseExpressionSchema: z.ZodObject<{
|
|
1473
956
|
Expression: z.ZodObject<{
|
|
1474
957
|
Value: z.ZodString;
|
|
1475
958
|
Range: z.ZodObject<{
|
|
@@ -1485,27 +968,43 @@ export declare const TemplStringExpressionSchema: z.ZodObject<{
|
|
|
1485
968
|
}, z.core.$strip>;
|
|
1486
969
|
}, z.core.$strip>;
|
|
1487
970
|
}, z.core.$strip>;
|
|
1488
|
-
|
|
1489
|
-
type: z.ZodLiteral<"StringExpression">;
|
|
971
|
+
Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
1490
972
|
}, z.core.$strip>;
|
|
1491
|
-
export declare const
|
|
1492
|
-
type: z.ZodLiteral<"
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
973
|
+
export declare const TemplSwitchExpressionSchema: z.ZodObject<{
|
|
974
|
+
type: z.ZodLiteral<"SwitchExpression">;
|
|
975
|
+
Expression: z.ZodObject<{
|
|
976
|
+
Value: z.ZodString;
|
|
977
|
+
Range: z.ZodObject<{
|
|
978
|
+
From: z.ZodObject<{
|
|
979
|
+
Index: z.ZodNumber;
|
|
980
|
+
Line: z.ZodNumber;
|
|
981
|
+
Col: z.ZodNumber;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
To: z.ZodObject<{
|
|
984
|
+
Index: z.ZodNumber;
|
|
985
|
+
Line: z.ZodNumber;
|
|
986
|
+
Col: z.ZodNumber;
|
|
987
|
+
}, z.core.$strip>;
|
|
1503
988
|
}, z.core.$strip>;
|
|
1504
989
|
}, z.core.$strip>;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
990
|
+
Cases: z.ZodArray<z.ZodObject<{
|
|
991
|
+
Expression: z.ZodObject<{
|
|
992
|
+
Value: z.ZodString;
|
|
993
|
+
Range: z.ZodObject<{
|
|
994
|
+
From: z.ZodObject<{
|
|
995
|
+
Index: z.ZodNumber;
|
|
996
|
+
Line: z.ZodNumber;
|
|
997
|
+
Col: z.ZodNumber;
|
|
998
|
+
}, z.core.$strip>;
|
|
999
|
+
To: z.ZodObject<{
|
|
1000
|
+
Index: z.ZodNumber;
|
|
1001
|
+
Line: z.ZodNumber;
|
|
1002
|
+
Col: z.ZodNumber;
|
|
1003
|
+
}, z.core.$strip>;
|
|
1004
|
+
}, z.core.$strip>;
|
|
1005
|
+
}, z.core.$strip>;
|
|
1006
|
+
Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
1007
|
+
}, z.core.$strip>>;
|
|
1509
1008
|
Range: z.ZodObject<{
|
|
1510
1009
|
From: z.ZodObject<{
|
|
1511
1010
|
Index: z.ZodNumber;
|
|
@@ -1518,10 +1017,9 @@ export declare const TemplTextSchema: z.ZodObject<{
|
|
|
1518
1017
|
Col: z.ZodNumber;
|
|
1519
1018
|
}, z.core.$strip>;
|
|
1520
1019
|
}, z.core.$strip>;
|
|
1521
|
-
Value: z.ZodString;
|
|
1522
|
-
TrailingSpace: z.ZodString;
|
|
1523
1020
|
}, z.core.$strip>;
|
|
1524
|
-
export declare const
|
|
1021
|
+
export declare const TemplForExpressionSchema: z.ZodObject<{
|
|
1022
|
+
type: z.ZodLiteral<"ForExpression">;
|
|
1525
1023
|
Expression: z.ZodObject<{
|
|
1526
1024
|
Value: z.ZodString;
|
|
1527
1025
|
Range: z.ZodObject<{
|
|
@@ -1537,12 +1035,22 @@ export declare const TemplGoCodeSchema: z.ZodObject<{
|
|
|
1537
1035
|
}, z.core.$strip>;
|
|
1538
1036
|
}, z.core.$strip>;
|
|
1539
1037
|
}, z.core.$strip>;
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1038
|
+
Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
1039
|
+
Range: z.ZodObject<{
|
|
1040
|
+
From: z.ZodObject<{
|
|
1041
|
+
Index: z.ZodNumber;
|
|
1042
|
+
Line: z.ZodNumber;
|
|
1043
|
+
Col: z.ZodNumber;
|
|
1044
|
+
}, z.core.$strip>;
|
|
1045
|
+
To: z.ZodObject<{
|
|
1046
|
+
Index: z.ZodNumber;
|
|
1047
|
+
Line: z.ZodNumber;
|
|
1048
|
+
Col: z.ZodNumber;
|
|
1049
|
+
}, z.core.$strip>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1543
1051
|
}, z.core.$strip>;
|
|
1544
|
-
export declare const
|
|
1545
|
-
type: z.ZodLiteral<"
|
|
1052
|
+
export declare const TemplElementExpressionSchema: z.ZodObject<{
|
|
1053
|
+
type: z.ZodLiteral<"TemplElementExpression">;
|
|
1546
1054
|
Expression: z.ZodObject<{
|
|
1547
1055
|
Value: z.ZodString;
|
|
1548
1056
|
Range: z.ZodObject<{
|
|
@@ -1558,6 +1066,7 @@ export declare const TemplCallExpressionSchema: z.ZodObject<{
|
|
|
1558
1066
|
}, z.core.$strip>;
|
|
1559
1067
|
}, z.core.$strip>;
|
|
1560
1068
|
}, z.core.$strip>;
|
|
1069
|
+
Children: z.ZodNullable<z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>>;
|
|
1561
1070
|
Range: z.ZodObject<{
|
|
1562
1071
|
From: z.ZodObject<{
|
|
1563
1072
|
Index: z.ZodNumber;
|
|
@@ -1571,9 +1080,57 @@ export declare const TemplCallExpressionSchema: z.ZodObject<{
|
|
|
1571
1080
|
}, z.core.$strip>;
|
|
1572
1081
|
}, z.core.$strip>;
|
|
1573
1082
|
}, z.core.$strip>;
|
|
1574
|
-
export declare const
|
|
1575
|
-
|
|
1576
|
-
|
|
1083
|
+
export declare const TemplScriptContentsSchema: z.ZodObject<{
|
|
1084
|
+
Value: z.ZodNullable<z.ZodString>;
|
|
1085
|
+
GoCode: z.ZodNullable<z.ZodObject<{
|
|
1086
|
+
Expression: z.ZodObject<{
|
|
1087
|
+
Value: z.ZodString;
|
|
1088
|
+
Range: z.ZodObject<{
|
|
1089
|
+
From: z.ZodObject<{
|
|
1090
|
+
Index: z.ZodNumber;
|
|
1091
|
+
Line: z.ZodNumber;
|
|
1092
|
+
Col: z.ZodNumber;
|
|
1093
|
+
}, z.core.$strip>;
|
|
1094
|
+
To: z.ZodObject<{
|
|
1095
|
+
Index: z.ZodNumber;
|
|
1096
|
+
Line: z.ZodNumber;
|
|
1097
|
+
Col: z.ZodNumber;
|
|
1098
|
+
}, z.core.$strip>;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1100
|
+
}, z.core.$strip>;
|
|
1101
|
+
TrailingSpace: z.ZodString;
|
|
1102
|
+
Multiline: z.ZodBoolean;
|
|
1103
|
+
}, z.core.$strip>>;
|
|
1104
|
+
InsideStringLiteral: z.ZodBoolean;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
export type TemplScriptContents = z.infer<typeof TemplScriptContentsSchema>;
|
|
1107
|
+
export declare const TemplScriptElementSchema: z.ZodObject<{
|
|
1108
|
+
type: z.ZodLiteral<"ScriptElement">;
|
|
1109
|
+
Attributes: z.ZodNullable<z.ZodArray<z.ZodType<TemplAttribute, unknown, z.core.$ZodTypeInternals<TemplAttribute, unknown>>>>;
|
|
1110
|
+
Contents: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
1111
|
+
Value: z.ZodNullable<z.ZodString>;
|
|
1112
|
+
GoCode: z.ZodNullable<z.ZodObject<{
|
|
1113
|
+
Expression: z.ZodObject<{
|
|
1114
|
+
Value: z.ZodString;
|
|
1115
|
+
Range: z.ZodObject<{
|
|
1116
|
+
From: z.ZodObject<{
|
|
1117
|
+
Index: z.ZodNumber;
|
|
1118
|
+
Line: z.ZodNumber;
|
|
1119
|
+
Col: z.ZodNumber;
|
|
1120
|
+
}, z.core.$strip>;
|
|
1121
|
+
To: z.ZodObject<{
|
|
1122
|
+
Index: z.ZodNumber;
|
|
1123
|
+
Line: z.ZodNumber;
|
|
1124
|
+
Col: z.ZodNumber;
|
|
1125
|
+
}, z.core.$strip>;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1127
|
+
}, z.core.$strip>;
|
|
1128
|
+
TrailingSpace: z.ZodString;
|
|
1129
|
+
Multiline: z.ZodBoolean;
|
|
1130
|
+
}, z.core.$strip>>;
|
|
1131
|
+
InsideStringLiteral: z.ZodBoolean;
|
|
1132
|
+
}, z.core.$strip>>>;
|
|
1133
|
+
OpenTagRange: z.ZodObject<{
|
|
1577
1134
|
From: z.ZodObject<{
|
|
1578
1135
|
Index: z.ZodNumber;
|
|
1579
1136
|
Line: z.ZodNumber;
|
|
@@ -1585,8 +1142,7 @@ export declare const TemplDocTypeSchema: z.ZodObject<{
|
|
|
1585
1142
|
Col: z.ZodNumber;
|
|
1586
1143
|
}, z.core.$strip>;
|
|
1587
1144
|
}, z.core.$strip>;
|
|
1588
|
-
|
|
1589
|
-
OpenRange: z.ZodObject<{
|
|
1145
|
+
CloseTagRange: z.ZodObject<{
|
|
1590
1146
|
From: z.ZodObject<{
|
|
1591
1147
|
Index: z.ZodNumber;
|
|
1592
1148
|
Line: z.ZodNumber;
|
|
@@ -1598,7 +1154,7 @@ export declare const TemplDocTypeSchema: z.ZodObject<{
|
|
|
1598
1154
|
Col: z.ZodNumber;
|
|
1599
1155
|
}, z.core.$strip>;
|
|
1600
1156
|
}, z.core.$strip>;
|
|
1601
|
-
|
|
1157
|
+
Range: z.ZodObject<{
|
|
1602
1158
|
From: z.ZodObject<{
|
|
1603
1159
|
Index: z.ZodNumber;
|
|
1604
1160
|
Line: z.ZodNumber;
|
|
@@ -1610,7 +1166,13 @@ export declare const TemplDocTypeSchema: z.ZodObject<{
|
|
|
1610
1166
|
Col: z.ZodNumber;
|
|
1611
1167
|
}, z.core.$strip>;
|
|
1612
1168
|
}, z.core.$strip>;
|
|
1613
|
-
|
|
1169
|
+
}, z.core.$strip>;
|
|
1170
|
+
export declare const TemplRawElementSchema: z.ZodObject<{
|
|
1171
|
+
type: z.ZodLiteral<"RawElement">;
|
|
1172
|
+
Name: z.ZodString;
|
|
1173
|
+
Attributes: z.ZodNullable<z.ZodArray<z.ZodType<TemplAttribute, unknown, z.core.$ZodTypeInternals<TemplAttribute, unknown>>>>;
|
|
1174
|
+
Contents: z.ZodString;
|
|
1175
|
+
NameRange: z.ZodObject<{
|
|
1614
1176
|
From: z.ZodObject<{
|
|
1615
1177
|
Index: z.ZodNumber;
|
|
1616
1178
|
Line: z.ZodNumber;
|
|
@@ -1622,11 +1184,7 @@ export declare const TemplDocTypeSchema: z.ZodObject<{
|
|
|
1622
1184
|
Col: z.ZodNumber;
|
|
1623
1185
|
}, z.core.$strip>;
|
|
1624
1186
|
}, z.core.$strip>;
|
|
1625
|
-
|
|
1626
|
-
export declare const TemplHTMLCommentSchema: z.ZodObject<{
|
|
1627
|
-
type: z.ZodLiteral<"HTMLComment">;
|
|
1628
|
-
Contents: z.ZodString;
|
|
1629
|
-
Range: z.ZodObject<{
|
|
1187
|
+
OpenTagRange: z.ZodObject<{
|
|
1630
1188
|
From: z.ZodObject<{
|
|
1631
1189
|
Index: z.ZodNumber;
|
|
1632
1190
|
Line: z.ZodNumber;
|
|
@@ -1638,12 +1196,7 @@ export declare const TemplHTMLCommentSchema: z.ZodObject<{
|
|
|
1638
1196
|
Col: z.ZodNumber;
|
|
1639
1197
|
}, z.core.$strip>;
|
|
1640
1198
|
}, z.core.$strip>;
|
|
1641
|
-
|
|
1642
|
-
export declare const TemplGoCommentSchema: z.ZodObject<{
|
|
1643
|
-
type: z.ZodLiteral<"GoComment">;
|
|
1644
|
-
Contents: z.ZodString;
|
|
1645
|
-
Multiline: z.ZodBoolean;
|
|
1646
|
-
Range: z.ZodObject<{
|
|
1199
|
+
CloseTagRange: z.ZodObject<{
|
|
1647
1200
|
From: z.ZodObject<{
|
|
1648
1201
|
Index: z.ZodNumber;
|
|
1649
1202
|
Line: z.ZodNumber;
|
|
@@ -1655,9 +1208,6 @@ export declare const TemplGoCommentSchema: z.ZodObject<{
|
|
|
1655
1208
|
Col: z.ZodNumber;
|
|
1656
1209
|
}, z.core.$strip>;
|
|
1657
1210
|
}, z.core.$strip>;
|
|
1658
|
-
}, z.core.$strip>;
|
|
1659
|
-
export declare const TemplChildrenExpressionSchema: z.ZodObject<{
|
|
1660
|
-
type: z.ZodLiteral<"ChildrenExpression">;
|
|
1661
1211
|
Range: z.ZodObject<{
|
|
1662
1212
|
From: z.ZodObject<{
|
|
1663
1213
|
Index: z.ZodNumber;
|
|
@@ -1671,178 +1221,6 @@ export declare const TemplChildrenExpressionSchema: z.ZodObject<{
|
|
|
1671
1221
|
}, z.core.$strip>;
|
|
1672
1222
|
}, z.core.$strip>;
|
|
1673
1223
|
}, z.core.$strip>;
|
|
1674
|
-
/**
|
|
1675
|
-
* Inferred TypeScript types from Zod schemas
|
|
1676
|
-
*/
|
|
1677
|
-
export type TemplStringExpression = z.infer<typeof TemplStringExpressionSchema>;
|
|
1678
|
-
export type TemplWhitespace = z.infer<typeof TemplWhitespaceSchema>;
|
|
1679
|
-
export type TemplText = z.infer<typeof TemplTextSchema>;
|
|
1680
|
-
export type TemplGoCode = z.infer<typeof TemplGoCodeSchema>;
|
|
1681
|
-
export type TemplCallExpression = z.infer<typeof TemplCallExpressionSchema>;
|
|
1682
|
-
export type TemplDocType = z.infer<typeof TemplDocTypeSchema>;
|
|
1683
|
-
export type TemplHTMLComment = z.infer<typeof TemplHTMLCommentSchema>;
|
|
1684
|
-
export type TemplGoComment = z.infer<typeof TemplGoCommentSchema>;
|
|
1685
|
-
export type TemplChildrenExpression = z.infer<typeof TemplChildrenExpressionSchema>;
|
|
1686
|
-
export declare const TemplConstantCSSPropertySchema: z.ZodObject<{
|
|
1687
|
-
type: z.ZodLiteral<"ConstantCSSProperty">;
|
|
1688
|
-
Name: z.ZodString;
|
|
1689
|
-
Value: z.ZodString;
|
|
1690
|
-
}, z.core.$strip>;
|
|
1691
|
-
export declare const TemplExpressionCSSPropertySchema: z.ZodObject<{
|
|
1692
|
-
type: z.ZodLiteral<"ExpressionCSSProperty">;
|
|
1693
|
-
Name: z.ZodString;
|
|
1694
|
-
Value: z.ZodObject<{
|
|
1695
|
-
Expression: z.ZodObject<{
|
|
1696
|
-
Value: z.ZodString;
|
|
1697
|
-
Range: z.ZodObject<{
|
|
1698
|
-
From: z.ZodObject<{
|
|
1699
|
-
Index: z.ZodNumber;
|
|
1700
|
-
Line: z.ZodNumber;
|
|
1701
|
-
Col: z.ZodNumber;
|
|
1702
|
-
}, z.core.$strip>;
|
|
1703
|
-
To: z.ZodObject<{
|
|
1704
|
-
Index: z.ZodNumber;
|
|
1705
|
-
Line: z.ZodNumber;
|
|
1706
|
-
Col: z.ZodNumber;
|
|
1707
|
-
}, z.core.$strip>;
|
|
1708
|
-
}, z.core.$strip>;
|
|
1709
|
-
}, z.core.$strip>;
|
|
1710
|
-
TrailingSpace: z.ZodString;
|
|
1711
|
-
}, z.core.$strip>;
|
|
1712
|
-
}, z.core.$strip>;
|
|
1713
|
-
export declare const TemplCSSPropertySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1714
|
-
type: z.ZodLiteral<"ConstantCSSProperty">;
|
|
1715
|
-
Name: z.ZodString;
|
|
1716
|
-
Value: z.ZodString;
|
|
1717
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1718
|
-
type: z.ZodLiteral<"ExpressionCSSProperty">;
|
|
1719
|
-
Name: z.ZodString;
|
|
1720
|
-
Value: z.ZodObject<{
|
|
1721
|
-
Expression: z.ZodObject<{
|
|
1722
|
-
Value: z.ZodString;
|
|
1723
|
-
Range: z.ZodObject<{
|
|
1724
|
-
From: z.ZodObject<{
|
|
1725
|
-
Index: z.ZodNumber;
|
|
1726
|
-
Line: z.ZodNumber;
|
|
1727
|
-
Col: z.ZodNumber;
|
|
1728
|
-
}, z.core.$strip>;
|
|
1729
|
-
To: z.ZodObject<{
|
|
1730
|
-
Index: z.ZodNumber;
|
|
1731
|
-
Line: z.ZodNumber;
|
|
1732
|
-
Col: z.ZodNumber;
|
|
1733
|
-
}, z.core.$strip>;
|
|
1734
|
-
}, z.core.$strip>;
|
|
1735
|
-
}, z.core.$strip>;
|
|
1736
|
-
TrailingSpace: z.ZodString;
|
|
1737
|
-
}, z.core.$strip>;
|
|
1738
|
-
}, z.core.$strip>], "type">;
|
|
1739
|
-
export type TemplConstantCSSProperty = z.infer<typeof TemplConstantCSSPropertySchema>;
|
|
1740
|
-
export type TemplExpressionCSSProperty = z.infer<typeof TemplExpressionCSSPropertySchema>;
|
|
1741
|
-
export type TemplCSSProperty = z.infer<typeof TemplCSSPropertySchema>;
|
|
1742
|
-
export interface TemplElementNode {
|
|
1743
|
-
type: "Element";
|
|
1744
|
-
Name: string;
|
|
1745
|
-
Attributes: TemplAttribute[] | null;
|
|
1746
|
-
IndentAttrs: boolean;
|
|
1747
|
-
Children: TemplChild[] | null;
|
|
1748
|
-
IndentChildren: boolean;
|
|
1749
|
-
TrailingSpace: string;
|
|
1750
|
-
NameRange: TemplRange;
|
|
1751
|
-
OpenTagRange: TemplRange;
|
|
1752
|
-
OpenTagEndRange: TemplRange;
|
|
1753
|
-
Range: TemplRange;
|
|
1754
|
-
CloseTagRange: TemplRange | null;
|
|
1755
|
-
SelfClosing: boolean;
|
|
1756
|
-
}
|
|
1757
|
-
export interface TemplElseIfExpression {
|
|
1758
|
-
Expression: TemplExpression;
|
|
1759
|
-
Then: TemplChild[];
|
|
1760
|
-
Range: TemplRange;
|
|
1761
|
-
}
|
|
1762
|
-
export interface TemplIfExpression {
|
|
1763
|
-
type: "IfExpression";
|
|
1764
|
-
Expression: TemplExpression;
|
|
1765
|
-
Then: TemplChild[];
|
|
1766
|
-
ElseIfs: TemplElseIfExpression[] | null;
|
|
1767
|
-
Else: TemplChild[] | null;
|
|
1768
|
-
Range: TemplRange;
|
|
1769
|
-
}
|
|
1770
|
-
export interface TemplCaseExpression {
|
|
1771
|
-
Expression: TemplExpression;
|
|
1772
|
-
Children: TemplChild[];
|
|
1773
|
-
}
|
|
1774
|
-
export interface TemplSwitchExpression {
|
|
1775
|
-
type: "SwitchExpression";
|
|
1776
|
-
Expression: TemplExpression;
|
|
1777
|
-
Cases: TemplCaseExpression[];
|
|
1778
|
-
Range: TemplRange;
|
|
1779
|
-
}
|
|
1780
|
-
export interface TemplForExpression {
|
|
1781
|
-
type: "ForExpression";
|
|
1782
|
-
Expression: TemplExpression;
|
|
1783
|
-
Children: TemplChild[];
|
|
1784
|
-
Range: TemplRange;
|
|
1785
|
-
}
|
|
1786
|
-
export interface TemplElementExpression {
|
|
1787
|
-
type: "TemplElementExpression";
|
|
1788
|
-
Expression: TemplExpression;
|
|
1789
|
-
Children: TemplChild[] | null;
|
|
1790
|
-
Range: TemplRange;
|
|
1791
|
-
}
|
|
1792
|
-
export interface TemplScriptElement {
|
|
1793
|
-
type: "ScriptElement";
|
|
1794
|
-
Attributes: TemplAttribute[] | null;
|
|
1795
|
-
Contents: TemplScriptContents[] | null;
|
|
1796
|
-
OpenTagRange: TemplRange;
|
|
1797
|
-
OpenTagEndRange: TemplRange;
|
|
1798
|
-
CloseTagRange: TemplRange;
|
|
1799
|
-
Range: TemplRange;
|
|
1800
|
-
}
|
|
1801
|
-
export interface TemplRawElement {
|
|
1802
|
-
type: "RawElement";
|
|
1803
|
-
Name: string;
|
|
1804
|
-
Attributes: TemplAttribute[] | null;
|
|
1805
|
-
Contents: string;
|
|
1806
|
-
NameRange: TemplRange;
|
|
1807
|
-
OpenTagRange: TemplRange;
|
|
1808
|
-
OpenTagEndRange: TemplRange;
|
|
1809
|
-
CloseTagRange: TemplRange;
|
|
1810
|
-
Range: TemplRange;
|
|
1811
|
-
}
|
|
1812
|
-
export type TemplChild = TemplStringExpression | TemplGoCode | TemplCallExpression | TemplElementExpression | TemplElementNode | TemplWhitespace | TemplText | TemplDocType | TemplHTMLComment | TemplGoComment | TemplIfExpression | TemplForExpression | TemplSwitchExpression | TemplChildrenExpression | TemplScriptElement | TemplRawElement;
|
|
1813
|
-
export declare const TemplElementNodeSchema: z.ZodType<TemplElementNode>;
|
|
1814
|
-
export declare const TemplElseIfExpressionSchema: z.ZodType<TemplElseIfExpression>;
|
|
1815
|
-
export declare const TemplIfExpressionSchema: z.ZodType<TemplIfExpression>;
|
|
1816
|
-
export declare const TemplCaseExpressionSchema: z.ZodType<TemplCaseExpression>;
|
|
1817
|
-
export declare const TemplSwitchExpressionSchema: z.ZodType<TemplSwitchExpression>;
|
|
1818
|
-
export declare const TemplForExpressionSchema: z.ZodType<TemplForExpression>;
|
|
1819
|
-
export declare const TemplElementExpressionSchema: z.ZodType<TemplElementExpression>;
|
|
1820
|
-
export declare const TemplScriptContentsSchema: z.ZodObject<{
|
|
1821
|
-
Value: z.ZodNullable<z.ZodString>;
|
|
1822
|
-
GoCode: z.ZodNullable<z.ZodObject<{
|
|
1823
|
-
Expression: z.ZodObject<{
|
|
1824
|
-
Value: z.ZodString;
|
|
1825
|
-
Range: z.ZodObject<{
|
|
1826
|
-
From: z.ZodObject<{
|
|
1827
|
-
Index: z.ZodNumber;
|
|
1828
|
-
Line: z.ZodNumber;
|
|
1829
|
-
Col: z.ZodNumber;
|
|
1830
|
-
}, z.core.$strip>;
|
|
1831
|
-
To: z.ZodObject<{
|
|
1832
|
-
Index: z.ZodNumber;
|
|
1833
|
-
Line: z.ZodNumber;
|
|
1834
|
-
Col: z.ZodNumber;
|
|
1835
|
-
}, z.core.$strip>;
|
|
1836
|
-
}, z.core.$strip>;
|
|
1837
|
-
}, z.core.$strip>;
|
|
1838
|
-
TrailingSpace: z.ZodString;
|
|
1839
|
-
Multiline: z.ZodBoolean;
|
|
1840
|
-
}, z.core.$strip>>;
|
|
1841
|
-
InsideStringLiteral: z.ZodBoolean;
|
|
1842
|
-
}, z.core.$strip>;
|
|
1843
|
-
export type TemplScriptContents = z.infer<typeof TemplScriptContentsSchema>;
|
|
1844
|
-
export declare const TemplScriptElementSchema: z.ZodType<TemplScriptElement>;
|
|
1845
|
-
export declare const TemplRawElementSchema: z.ZodType<TemplRawElement>;
|
|
1846
1224
|
export declare const TemplChildSchema: z.ZodType<TemplChild>;
|
|
1847
1225
|
export declare const TemplCSSTemplateSchema: z.ZodObject<{
|
|
1848
1226
|
type: z.ZodLiteral<"CSSTemplate">;
|
|
@@ -1966,7 +1344,37 @@ export declare const TemplFileGoExpressionSchema: z.ZodObject<{
|
|
|
1966
1344
|
}, z.core.$strip>;
|
|
1967
1345
|
BeforePackage: z.ZodBoolean;
|
|
1968
1346
|
}, z.core.$strip>;
|
|
1969
|
-
export declare const TemplHTMLTemplateSchema: z.
|
|
1347
|
+
export declare const TemplHTMLTemplateSchema: z.ZodObject<{
|
|
1348
|
+
type: z.ZodLiteral<"HTMLTemplate">;
|
|
1349
|
+
Range: z.ZodObject<{
|
|
1350
|
+
From: z.ZodObject<{
|
|
1351
|
+
Index: z.ZodNumber;
|
|
1352
|
+
Line: z.ZodNumber;
|
|
1353
|
+
Col: z.ZodNumber;
|
|
1354
|
+
}, z.core.$strip>;
|
|
1355
|
+
To: z.ZodObject<{
|
|
1356
|
+
Index: z.ZodNumber;
|
|
1357
|
+
Line: z.ZodNumber;
|
|
1358
|
+
Col: z.ZodNumber;
|
|
1359
|
+
}, z.core.$strip>;
|
|
1360
|
+
}, z.core.$strip>;
|
|
1361
|
+
Expression: z.ZodObject<{
|
|
1362
|
+
Value: z.ZodString;
|
|
1363
|
+
Range: z.ZodObject<{
|
|
1364
|
+
From: z.ZodObject<{
|
|
1365
|
+
Index: z.ZodNumber;
|
|
1366
|
+
Line: z.ZodNumber;
|
|
1367
|
+
Col: z.ZodNumber;
|
|
1368
|
+
}, z.core.$strip>;
|
|
1369
|
+
To: z.ZodObject<{
|
|
1370
|
+
Index: z.ZodNumber;
|
|
1371
|
+
Line: z.ZodNumber;
|
|
1372
|
+
Col: z.ZodNumber;
|
|
1373
|
+
}, z.core.$strip>;
|
|
1374
|
+
}, z.core.$strip>;
|
|
1375
|
+
}, z.core.$strip>;
|
|
1376
|
+
Children: z.ZodArray<z.ZodType<TemplChild, unknown, z.core.$ZodTypeInternals<TemplChild, unknown>>>;
|
|
1377
|
+
}, z.core.$strip>;
|
|
1970
1378
|
export interface TemplHTMLTemplate {
|
|
1971
1379
|
type: "HTMLTemplate";
|
|
1972
1380
|
Range: TemplRange;
|