@hey-api/openapi-ts 0.94.5 → 0.96.0
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/README.md +63 -22
- package/dist/clients/angular/client.ts +8 -2
- package/dist/clients/angular/types.ts +1 -1
- package/dist/clients/axios/client.ts +7 -2
- package/dist/clients/axios/types.ts +6 -3
- package/dist/clients/core/serverSentEvents.ts +4 -5
- package/dist/clients/fetch/client.ts +12 -4
- package/dist/clients/fetch/types.ts +1 -1
- package/dist/clients/ky/client.ts +12 -4
- package/dist/clients/ky/types.ts +1 -1
- package/dist/clients/next/client.ts +10 -4
- package/dist/clients/next/types.ts +1 -1
- package/dist/clients/ofetch/types.ts +1 -1
- package/dist/index.d.mts +1186 -626
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/{init-DXg2DSyt.mjs → init-CXAVfp7x.mjs} +1495 -1118
- package/dist/init-CXAVfp7x.mjs.map +1 -0
- package/dist/internal.mjs +2 -3
- package/dist/run.mjs +4 -9
- package/dist/run.mjs.map +1 -1
- package/dist/{src-onOyaUFS.mjs → src-D2PCex5z.mjs} +33 -21
- package/dist/src-D2PCex5z.mjs.map +1 -0
- package/package.json +19 -20
- package/dist/init-DXg2DSyt.mjs.map +0 -1
- package/dist/src-onOyaUFS.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { n as UserConfig } from "./types-DAEl4_a4.mjs";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { BaseOutput, Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
|
|
2
|
+
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
|
|
3
|
+
import { BaseOutput, Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
|
|
5
4
|
import ts from "typescript";
|
|
6
5
|
import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
|
|
7
6
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -416,6 +415,262 @@ interface TypeArgsMethods extends Node {
|
|
|
416
415
|
generics(...args: ReadonlyArray<Arg$1>): this;
|
|
417
416
|
}
|
|
418
417
|
//#endregion
|
|
418
|
+
//#region src/ts-dsl/mixins/type-returns.d.ts
|
|
419
|
+
interface TypeReturnsMethods extends Node {
|
|
420
|
+
/** Returns the return type node. */
|
|
421
|
+
$returns(): ts.TypeNode | undefined;
|
|
422
|
+
/** Sets the return type. */
|
|
423
|
+
returns(type: NodeName | TypeTsDsl): this;
|
|
424
|
+
}
|
|
425
|
+
//#endregion
|
|
426
|
+
//#region src/ts-dsl/type/param.d.ts
|
|
427
|
+
type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
428
|
+
declare const Mixed$56: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
|
|
429
|
+
declare class TypeParamTsDsl extends Mixed$56 {
|
|
430
|
+
readonly '~dsl' = "TypeParamTsDsl";
|
|
431
|
+
scope: NodeScope;
|
|
432
|
+
protected constraint?: Ref<TypeParamExpr>;
|
|
433
|
+
protected defaultValue?: Ref<TypeParamExpr>;
|
|
434
|
+
constructor(name?: NodeName, fn?: (name: TypeParamTsDsl) => void);
|
|
435
|
+
analyze(ctx: AnalysisContext): void;
|
|
436
|
+
/** Sets the parameter default value. */
|
|
437
|
+
default(value: TypeParamExpr): this;
|
|
438
|
+
extends(constraint: TypeParamExpr): this;
|
|
439
|
+
toAst(): ts.TypeParameterDeclaration;
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/ts-dsl/mixins/type-params.d.ts
|
|
443
|
+
interface TypeParamsMethods extends Node {
|
|
444
|
+
/** Returns the type parameters as an array of ts.TypeParameterDeclaration nodes. */
|
|
445
|
+
$generics(): ReadonlyArray<ts.TypeParameterDeclaration> | undefined;
|
|
446
|
+
/** Adds a single type parameter (e.g., `T` in `Array<T>`). */
|
|
447
|
+
generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
|
|
448
|
+
/** Adds type parameters (e.g., `Map<string, T>`). */
|
|
449
|
+
generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
|
|
450
|
+
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region src/ts-dsl/mixins/modifiers.d.ts
|
|
453
|
+
type Modifiers = {
|
|
454
|
+
/**
|
|
455
|
+
* Checks if the specified modifier is present.
|
|
456
|
+
*
|
|
457
|
+
* @param modifier - The modifier to check.
|
|
458
|
+
* @returns True if the modifier is present, false otherwise.
|
|
459
|
+
*/
|
|
460
|
+
hasModifier(modifier: Modifier): boolean;
|
|
461
|
+
modifiers: Array<ts.Modifier>;
|
|
462
|
+
};
|
|
463
|
+
type Modifier = 'abstract' | 'async' | 'const' | 'declare' | 'default' | 'export' | 'override' | 'private' | 'protected' | 'public' | 'readonly' | 'static';
|
|
464
|
+
interface AbstractMethods extends Modifiers {
|
|
465
|
+
/**
|
|
466
|
+
* Adds the `abstract` keyword modifier if the condition is true.
|
|
467
|
+
*
|
|
468
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
469
|
+
* @returns The target object for chaining.
|
|
470
|
+
*/
|
|
471
|
+
abstract(condition?: boolean): this;
|
|
472
|
+
}
|
|
473
|
+
interface AsyncMethods extends Modifiers {
|
|
474
|
+
/**
|
|
475
|
+
* Adds the `async` keyword modifier if the condition is true.
|
|
476
|
+
*
|
|
477
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
478
|
+
* @returns The target object for chaining.
|
|
479
|
+
*/
|
|
480
|
+
async(condition?: boolean): this;
|
|
481
|
+
}
|
|
482
|
+
interface ConstMethods extends Modifiers {
|
|
483
|
+
/**
|
|
484
|
+
* Adds the `const` keyword modifier if the condition is true.
|
|
485
|
+
*
|
|
486
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
487
|
+
* @returns The target object for chaining.
|
|
488
|
+
*/
|
|
489
|
+
const(condition?: boolean): this;
|
|
490
|
+
}
|
|
491
|
+
interface DefaultMethods extends Modifiers {
|
|
492
|
+
/**
|
|
493
|
+
* Adds the `default` keyword modifier if the condition is true.
|
|
494
|
+
*
|
|
495
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
496
|
+
* @returns The target object for chaining.
|
|
497
|
+
*/
|
|
498
|
+
default(condition?: boolean): this;
|
|
499
|
+
}
|
|
500
|
+
interface ExportMethods extends Modifiers {
|
|
501
|
+
/**
|
|
502
|
+
* Adds the `export` keyword modifier if the condition is true.
|
|
503
|
+
*
|
|
504
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
505
|
+
* @returns The target object for chaining.
|
|
506
|
+
*/
|
|
507
|
+
export(condition?: boolean): this;
|
|
508
|
+
}
|
|
509
|
+
interface PrivateMethods extends Modifiers {
|
|
510
|
+
/**
|
|
511
|
+
* Adds the `private` keyword modifier if the condition is true.
|
|
512
|
+
*
|
|
513
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
514
|
+
* @returns The target object for chaining.
|
|
515
|
+
*/
|
|
516
|
+
private(condition?: boolean): this;
|
|
517
|
+
}
|
|
518
|
+
interface ProtectedMethods extends Modifiers {
|
|
519
|
+
/**
|
|
520
|
+
* Adds the `protected` keyword modifier if the condition is true.
|
|
521
|
+
*
|
|
522
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
523
|
+
* @returns The target object for chaining.
|
|
524
|
+
*/
|
|
525
|
+
protected(condition?: boolean): this;
|
|
526
|
+
}
|
|
527
|
+
interface PublicMethods extends Modifiers {
|
|
528
|
+
/**
|
|
529
|
+
* Adds the `public` keyword modifier if the condition is true.
|
|
530
|
+
*
|
|
531
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
532
|
+
* @returns The target object for chaining.
|
|
533
|
+
*/
|
|
534
|
+
public(condition?: boolean): this;
|
|
535
|
+
}
|
|
536
|
+
interface ReadonlyMethods extends Modifiers {
|
|
537
|
+
/**
|
|
538
|
+
* Adds the `readonly` keyword modifier if the condition is true.
|
|
539
|
+
*
|
|
540
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
541
|
+
* @returns The target object for chaining.
|
|
542
|
+
*/
|
|
543
|
+
readonly(condition?: boolean): this;
|
|
544
|
+
}
|
|
545
|
+
interface StaticMethods extends Modifiers {
|
|
546
|
+
/**
|
|
547
|
+
* Adds the `static` keyword modifier if the condition is true.
|
|
548
|
+
*
|
|
549
|
+
* @param condition - Whether to add the modifier (default: true).
|
|
550
|
+
* @returns The target object for chaining.
|
|
551
|
+
*/
|
|
552
|
+
static(condition?: boolean): this;
|
|
553
|
+
}
|
|
554
|
+
//#endregion
|
|
555
|
+
//#region src/ts-dsl/mixins/value.d.ts
|
|
556
|
+
type ValueExpr = string | MaybeTsDsl<ts.Expression>;
|
|
557
|
+
interface ValueMethods extends Node {
|
|
558
|
+
$value(): ts.Expression | undefined;
|
|
559
|
+
/** Sets the initializer expression (e.g., `= expr`). */
|
|
560
|
+
assign(expr: ValueExpr): this;
|
|
561
|
+
}
|
|
562
|
+
//#endregion
|
|
563
|
+
//#region src/ts-dsl/mixins/pattern.d.ts
|
|
564
|
+
interface PatternMethods extends Node {
|
|
565
|
+
/** Renders the pattern into a `BindingName`. */
|
|
566
|
+
$pattern(): ts.BindingName | undefined;
|
|
567
|
+
/** Defines an array binding pattern. */
|
|
568
|
+
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
569
|
+
/** Defines an object binding pattern. */
|
|
570
|
+
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
571
|
+
/** Adds a spread element (e.g., `...args`, `...options`) to the pattern. */
|
|
572
|
+
spread(name: string): this;
|
|
573
|
+
}
|
|
574
|
+
//#endregion
|
|
575
|
+
//#region src/ts-dsl/mixins/optional.d.ts
|
|
576
|
+
interface OptionalMethods extends Node {
|
|
577
|
+
_optional?: boolean;
|
|
578
|
+
/** Marks the node as optional when the condition is true. */
|
|
579
|
+
optional(condition?: boolean): this;
|
|
580
|
+
/** Marks the node as required when the condition is true. */
|
|
581
|
+
required(condition?: boolean): this;
|
|
582
|
+
}
|
|
583
|
+
//#endregion
|
|
584
|
+
//#region src/ts-dsl/mixins/decorator.d.ts
|
|
585
|
+
interface DecoratorMethods extends Node {
|
|
586
|
+
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
587
|
+
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
588
|
+
/** Adds a decorator (e.g., `@sealed({ in: 'root' })`). */
|
|
589
|
+
decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
590
|
+
}
|
|
591
|
+
//#endregion
|
|
592
|
+
//#region src/ts-dsl/decl/param.d.ts
|
|
593
|
+
type ParamName = NodeName | ParamFn;
|
|
594
|
+
type ParamFn = (p: ParamTsDsl) => void;
|
|
595
|
+
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
596
|
+
declare const Mixed$55: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
597
|
+
declare class ParamTsDsl extends Mixed$55 {
|
|
598
|
+
readonly '~dsl' = "ParamTsDsl";
|
|
599
|
+
protected _type?: TypeTsDsl;
|
|
600
|
+
constructor(name: ParamName, fn?: ParamFn);
|
|
601
|
+
analyze(ctx: AnalysisContext): void;
|
|
602
|
+
/** Returns true when all required builder calls are present. */
|
|
603
|
+
get isValid(): boolean;
|
|
604
|
+
/** Sets the parameter type. */
|
|
605
|
+
type(node: NodeName | TypeTsDsl): this;
|
|
606
|
+
toAst(): ts.ParameterDeclaration;
|
|
607
|
+
$validate(): asserts this;
|
|
608
|
+
private missingRequiredCalls;
|
|
609
|
+
}
|
|
610
|
+
//#endregion
|
|
611
|
+
//#region src/ts-dsl/mixins/param.d.ts
|
|
612
|
+
interface ParamMethods extends Node {
|
|
613
|
+
/** Renders the parameters into an array of `ParameterDeclaration`s. */
|
|
614
|
+
$params(): ReadonlyArray<ts.ParameterDeclaration>;
|
|
615
|
+
/** Adds a parameter. */
|
|
616
|
+
param(...args: Parameters<ParamCtor>): this;
|
|
617
|
+
/** Adds multiple parameters. */
|
|
618
|
+
params(...params: ReadonlyArray<MaybeTsDsl<ts.ParameterDeclaration>>): this;
|
|
619
|
+
}
|
|
620
|
+
//#endregion
|
|
621
|
+
//#region src/ts-dsl/layout/doc.d.ts
|
|
622
|
+
type DocMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
623
|
+
type DocFn = (d: DocTsDsl) => void;
|
|
624
|
+
type DocLines = DocMaybeLazy<MaybeArray<string>>;
|
|
625
|
+
declare class DocTsDsl extends TsDsl<ts.Node> {
|
|
626
|
+
readonly '~dsl' = "DocTsDsl";
|
|
627
|
+
protected _lines: Array<DocLines>;
|
|
628
|
+
constructor(lines?: DocLines, fn?: DocFn);
|
|
629
|
+
analyze(ctx: AnalysisContext): void;
|
|
630
|
+
add(lines: DocLines): this;
|
|
631
|
+
apply<T extends ts.Node>(node: T): T;
|
|
632
|
+
toAst(): any;
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
635
|
+
//#region src/ts-dsl/mixins/doc.d.ts
|
|
636
|
+
interface DocMethods extends Node {
|
|
637
|
+
$docs<T extends ts.Node>(node: T): T;
|
|
638
|
+
doc(lines?: DocLines, fn?: DocFn): this;
|
|
639
|
+
}
|
|
640
|
+
//#endregion
|
|
641
|
+
//#region src/ts-dsl/mixins/do.d.ts
|
|
642
|
+
type DoExpr = MaybeTsDsl<ts.Expression | ts.Statement>;
|
|
643
|
+
interface DoMethods extends Node {
|
|
644
|
+
/** Renders the collected `.do()` calls into an array of `Statement` nodes. */
|
|
645
|
+
$do(): ReadonlyArray<ts.Statement>;
|
|
646
|
+
_do: Array<DoExpr>;
|
|
647
|
+
/** Adds one or more expressions/statements to the body. */
|
|
648
|
+
do(...items: ReadonlyArray<DoExpr>): this;
|
|
649
|
+
}
|
|
650
|
+
//#endregion
|
|
651
|
+
//#region src/ts-dsl/decl/method.d.ts
|
|
652
|
+
type MethodCtor = (name: NodeName, fn?: (m: MethodTsDsl) => void) => MethodTsDsl;
|
|
653
|
+
declare const Mixed$54: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.MethodDeclaration>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, OptionalMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
654
|
+
declare class MethodTsDsl extends Mixed$54 {
|
|
655
|
+
readonly '~dsl' = "MethodTsDsl";
|
|
656
|
+
readonly nameSanitizer: (name: string) => string;
|
|
657
|
+
constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
|
|
658
|
+
analyze(ctx: AnalysisContext): void;
|
|
659
|
+
toAst(): ts.MethodDeclaration;
|
|
660
|
+
}
|
|
661
|
+
//#endregion
|
|
662
|
+
//#region src/ts-dsl/mixins/expr.d.ts
|
|
663
|
+
interface ExprMethods extends Node {
|
|
664
|
+
/** Accesses a property on the current expression (e.g., `this.foo`). */
|
|
665
|
+
attr(...args: DropFirst<Parameters<typeof f.attr>>): ReturnType<typeof f.attr>;
|
|
666
|
+
/** Awaits the current expression (e.g., `await expr`). */
|
|
667
|
+
await(): ReturnType<typeof f.await>;
|
|
668
|
+
/** Calls the current expression (e.g., `fn(arg1, arg2)`). */
|
|
669
|
+
call(...args: DropFirst<Parameters<typeof f.call>>): ReturnType<typeof f.call>;
|
|
670
|
+
/** Produces a `return` statement returning the current expression. */
|
|
671
|
+
return(): ReturnType<typeof f.return>;
|
|
672
|
+
}
|
|
673
|
+
//#endregion
|
|
419
674
|
//#region src/ts-dsl/mixins/as.d.ts
|
|
420
675
|
interface AsMethods extends Node {
|
|
421
676
|
/** Creates an `as` type assertion expression (e.g., `value as Type`). */
|
|
@@ -426,8 +681,8 @@ interface AsMethods extends Node {
|
|
|
426
681
|
type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
427
682
|
type AsType = NodeName | TypeTsDsl;
|
|
428
683
|
type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
|
|
429
|
-
declare const Mixed$
|
|
430
|
-
declare class AsTsDsl extends Mixed$
|
|
684
|
+
declare const Mixed$53: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
|
|
685
|
+
declare class AsTsDsl extends Mixed$53 {
|
|
431
686
|
readonly '~dsl' = "AsTsDsl";
|
|
432
687
|
protected expr: Ref<AsExpr>;
|
|
433
688
|
protected type: Ref<AsType>;
|
|
@@ -436,66 +691,57 @@ declare class AsTsDsl extends Mixed$54 {
|
|
|
436
691
|
toAst(): ts.AsExpression;
|
|
437
692
|
}
|
|
438
693
|
//#endregion
|
|
439
|
-
//#region src/ts-dsl/mixins/optional.d.ts
|
|
440
|
-
interface OptionalMethods extends Node {
|
|
441
|
-
_optional?: boolean;
|
|
442
|
-
/** Marks the node as optional when the condition is true. */
|
|
443
|
-
optional(condition?: boolean): this;
|
|
444
|
-
/** Marks the node as required when the condition is true. */
|
|
445
|
-
required(condition?: boolean): this;
|
|
446
|
-
}
|
|
447
|
-
//#endregion
|
|
448
694
|
//#region src/ts-dsl/expr/binary.d.ts
|
|
449
|
-
type Expr$
|
|
695
|
+
type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
450
696
|
type Op$1 = Operator | ts.BinaryOperator;
|
|
451
697
|
type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
|
|
452
|
-
declare const Mixed$
|
|
453
|
-
declare class BinaryTsDsl extends Mixed$
|
|
698
|
+
declare const Mixed$52: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
|
|
699
|
+
declare class BinaryTsDsl extends Mixed$52 {
|
|
454
700
|
readonly '~dsl' = "BinaryTsDsl";
|
|
455
|
-
protected _base: Ref<Expr$
|
|
456
|
-
protected _expr?: Ref<Expr$
|
|
701
|
+
protected _base: Ref<Expr$2>;
|
|
702
|
+
protected _expr?: Ref<Expr$2>;
|
|
457
703
|
protected _op?: Op$1;
|
|
458
|
-
constructor(base: Expr$
|
|
704
|
+
constructor(base: Expr$2, op?: Op$1, expr?: Expr$2);
|
|
459
705
|
analyze(ctx: AnalysisContext): void;
|
|
460
706
|
/** Returns true when all required builder calls are present. */
|
|
461
707
|
get isValid(): boolean;
|
|
462
708
|
/** Logical AND — `this && expr` */
|
|
463
|
-
and(expr: Expr$
|
|
709
|
+
and(expr: Expr$2): this;
|
|
464
710
|
/** Creates an assignment expression (e.g., `this = expr`). */
|
|
465
|
-
assign(expr: Expr$
|
|
711
|
+
assign(expr: Expr$2): this;
|
|
466
712
|
/** Nullish coalescing — `this ?? expr` */
|
|
467
|
-
coalesce(expr: Expr$
|
|
713
|
+
coalesce(expr: Expr$2): this;
|
|
468
714
|
/** Division — `this / expr` */
|
|
469
|
-
div(expr: Expr$
|
|
715
|
+
div(expr: Expr$2): this;
|
|
470
716
|
/** Strict equality — `this === expr` */
|
|
471
|
-
eq(expr: Expr$
|
|
717
|
+
eq(expr: Expr$2): this;
|
|
472
718
|
/** Greater than — `this > expr` */
|
|
473
|
-
gt(expr: Expr$
|
|
719
|
+
gt(expr: Expr$2): this;
|
|
474
720
|
/** Greater than or equal — `this >= expr` */
|
|
475
|
-
gte(expr: Expr$
|
|
721
|
+
gte(expr: Expr$2): this;
|
|
476
722
|
/** Loose equality — `this == expr` */
|
|
477
|
-
looseEq(expr: Expr$
|
|
723
|
+
looseEq(expr: Expr$2): this;
|
|
478
724
|
/** Loose inequality — `this != expr` */
|
|
479
|
-
looseNeq(expr: Expr$
|
|
725
|
+
looseNeq(expr: Expr$2): this;
|
|
480
726
|
/** Less than — `this < expr` */
|
|
481
|
-
lt(expr: Expr$
|
|
727
|
+
lt(expr: Expr$2): this;
|
|
482
728
|
/** Less than or equal — `this <= expr` */
|
|
483
|
-
lte(expr: Expr$
|
|
729
|
+
lte(expr: Expr$2): this;
|
|
484
730
|
/** Subtraction — `this - expr` */
|
|
485
|
-
minus(expr: Expr$
|
|
731
|
+
minus(expr: Expr$2): this;
|
|
486
732
|
/** Strict inequality — `this !== expr` */
|
|
487
|
-
neq(expr: Expr$
|
|
733
|
+
neq(expr: Expr$2): this;
|
|
488
734
|
/** Nullish assignment — `this ??= expr` */
|
|
489
|
-
nullishAssign(expr: Expr$
|
|
735
|
+
nullishAssign(expr: Expr$2): this;
|
|
490
736
|
/** Logical OR — `this || expr` */
|
|
491
|
-
or(expr: Expr$
|
|
737
|
+
or(expr: Expr$2): this;
|
|
492
738
|
/** Addition — `this + expr` */
|
|
493
|
-
plus(expr: Expr$
|
|
739
|
+
plus(expr: Expr$2): this;
|
|
494
740
|
/** Multiplication — `this * expr` */
|
|
495
|
-
times(expr: Expr$
|
|
741
|
+
times(expr: Expr$2): this;
|
|
496
742
|
toAst(): ts.BinaryExpression;
|
|
497
743
|
$validate(): asserts this is this & {
|
|
498
|
-
_expr: Ref<Expr$
|
|
744
|
+
_expr: Ref<Expr$2>;
|
|
499
745
|
_op: Op$1;
|
|
500
746
|
};
|
|
501
747
|
private missingRequiredCalls;
|
|
@@ -505,49 +751,49 @@ declare class BinaryTsDsl extends Mixed$53 {
|
|
|
505
751
|
}
|
|
506
752
|
//#endregion
|
|
507
753
|
//#region src/ts-dsl/mixins/operator.d.ts
|
|
508
|
-
type Expr$
|
|
754
|
+
type Expr$1 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
509
755
|
interface OperatorMethods extends Node {
|
|
510
756
|
/** Logical AND — `this && expr` */
|
|
511
|
-
and(expr: Expr$
|
|
757
|
+
and(expr: Expr$1): BinaryTsDsl;
|
|
512
758
|
/** Creates an assignment expression (e.g., `this = expr`). */
|
|
513
|
-
assign(expr: Expr$
|
|
759
|
+
assign(expr: Expr$1): BinaryTsDsl;
|
|
514
760
|
/** Nullish coalescing — `this ?? expr` */
|
|
515
|
-
coalesce(expr: Expr$
|
|
761
|
+
coalesce(expr: Expr$1): BinaryTsDsl;
|
|
516
762
|
/** Division — `this / expr` */
|
|
517
|
-
div(expr: Expr$
|
|
763
|
+
div(expr: Expr$1): BinaryTsDsl;
|
|
518
764
|
/** Strict equality — `this === expr` */
|
|
519
|
-
eq(expr: Expr$
|
|
765
|
+
eq(expr: Expr$1): BinaryTsDsl;
|
|
520
766
|
/** Greater than — `this > expr` */
|
|
521
|
-
gt(expr: Expr$
|
|
767
|
+
gt(expr: Expr$1): BinaryTsDsl;
|
|
522
768
|
/** Greater than or equal — `this >= expr` */
|
|
523
|
-
gte(expr: Expr$
|
|
769
|
+
gte(expr: Expr$1): BinaryTsDsl;
|
|
524
770
|
/** Loose equality — `this == expr` */
|
|
525
|
-
looseEq(expr: Expr$
|
|
771
|
+
looseEq(expr: Expr$1): BinaryTsDsl;
|
|
526
772
|
/** Loose inequality — `this != expr` */
|
|
527
|
-
looseNeq(expr: Expr$
|
|
773
|
+
looseNeq(expr: Expr$1): BinaryTsDsl;
|
|
528
774
|
/** Less than — `this < expr` */
|
|
529
|
-
lt(expr: Expr$
|
|
775
|
+
lt(expr: Expr$1): BinaryTsDsl;
|
|
530
776
|
/** Less than or equal — `this <= expr` */
|
|
531
|
-
lte(expr: Expr$
|
|
777
|
+
lte(expr: Expr$1): BinaryTsDsl;
|
|
532
778
|
/** Subtraction — `this - expr` */
|
|
533
|
-
minus(expr: Expr$
|
|
779
|
+
minus(expr: Expr$1): BinaryTsDsl;
|
|
534
780
|
/** Strict inequality — `this !== expr` */
|
|
535
|
-
neq(expr: Expr$
|
|
781
|
+
neq(expr: Expr$1): BinaryTsDsl;
|
|
536
782
|
/** Nullish assignment — `this ??= expr` */
|
|
537
|
-
nullishAssign(expr: Expr$
|
|
783
|
+
nullishAssign(expr: Expr$1): BinaryTsDsl;
|
|
538
784
|
/** Logical OR — `this || expr` */
|
|
539
|
-
or(expr: Expr$
|
|
785
|
+
or(expr: Expr$1): BinaryTsDsl;
|
|
540
786
|
/** Addition — `this + expr` */
|
|
541
|
-
plus(expr: Expr$
|
|
787
|
+
plus(expr: Expr$1): BinaryTsDsl;
|
|
542
788
|
/** Multiplication — `this * expr` */
|
|
543
|
-
times(expr: Expr$
|
|
789
|
+
times(expr: Expr$1): BinaryTsDsl;
|
|
544
790
|
}
|
|
545
791
|
//#endregion
|
|
546
792
|
//#region src/ts-dsl/expr/attr.d.ts
|
|
547
793
|
type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
|
|
548
794
|
type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
|
|
549
|
-
declare const Mixed$
|
|
550
|
-
declare class AttrTsDsl extends Mixed$
|
|
795
|
+
declare const Mixed$51: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression>, SpreadMethods>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
796
|
+
declare class AttrTsDsl extends Mixed$51 {
|
|
551
797
|
readonly '~dsl' = "AttrTsDsl";
|
|
552
798
|
protected _computed: boolean;
|
|
553
799
|
protected _left: Ref<AttrLeft>;
|
|
@@ -561,8 +807,8 @@ declare class AttrTsDsl extends Mixed$52 {
|
|
|
561
807
|
//#region src/ts-dsl/expr/await.d.ts
|
|
562
808
|
type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
563
809
|
type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
|
|
564
|
-
declare const Mixed$
|
|
565
|
-
declare class AwaitTsDsl extends Mixed$
|
|
810
|
+
declare const Mixed$50: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
|
|
811
|
+
declare class AwaitTsDsl extends Mixed$50 {
|
|
566
812
|
readonly '~dsl' = "AwaitTsDsl";
|
|
567
813
|
protected _awaitExpr: Ref<AwaitExpr>;
|
|
568
814
|
constructor(expr: AwaitExpr);
|
|
@@ -571,10 +817,10 @@ declare class AwaitTsDsl extends Mixed$51 {
|
|
|
571
817
|
}
|
|
572
818
|
//#endregion
|
|
573
819
|
//#region src/ts-dsl/mixins/args.d.ts
|
|
574
|
-
type Arg = NodeName | MaybeTsDsl<ts.Expression>;
|
|
820
|
+
type Arg = NodeName | MaybeTsDsl<ts.Expression | ts.SpreadElement>;
|
|
575
821
|
interface ArgsMethods extends Node {
|
|
576
|
-
/** Renders the arguments into an array of `Expression`s. */
|
|
577
|
-
$args(): ReadonlyArray<ts.Expression>;
|
|
822
|
+
/** Renders the arguments into an array of `Expression`s or `SpreadElement`s. */
|
|
823
|
+
$args(): ReadonlyArray<ts.Expression | ts.SpreadElement>;
|
|
578
824
|
/** Adds a single expression argument. */
|
|
579
825
|
arg(arg: Arg | undefined): this;
|
|
580
826
|
/** Adds one or more expression arguments. */
|
|
@@ -585,8 +831,8 @@ interface ArgsMethods extends Node {
|
|
|
585
831
|
type NewArgs = ReadonlyArray<NewExpr | undefined>;
|
|
586
832
|
type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
587
833
|
type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
|
|
588
|
-
declare const Mixed$
|
|
589
|
-
declare class NewTsDsl extends Mixed$
|
|
834
|
+
declare const Mixed$49: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression>, TypeArgsMethods>, SpreadMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
835
|
+
declare class NewTsDsl extends Mixed$49 {
|
|
590
836
|
readonly '~dsl' = "NewTsDsl";
|
|
591
837
|
protected _newExpr: Ref<NewExpr>;
|
|
592
838
|
constructor(expr: NewExpr, ...args: NewArgs);
|
|
@@ -594,11 +840,23 @@ declare class NewTsDsl extends Mixed$50 {
|
|
|
594
840
|
toAst(): ts.NewExpression;
|
|
595
841
|
}
|
|
596
842
|
//#endregion
|
|
843
|
+
//#region src/ts-dsl/expr/spread.d.ts
|
|
844
|
+
type SpreadExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
845
|
+
type SpreadCtor = (expr: SpreadExpr) => SpreadTsDsl;
|
|
846
|
+
declare const Mixed$48: abstract new () => TsDsl<ts.SpreadElement>;
|
|
847
|
+
declare class SpreadTsDsl extends Mixed$48 {
|
|
848
|
+
readonly '~dsl' = "SpreadTsDsl";
|
|
849
|
+
protected _expr: Ref<SpreadExpr>;
|
|
850
|
+
constructor(expr: SpreadExpr);
|
|
851
|
+
analyze(ctx: AnalysisContext): void;
|
|
852
|
+
toAst(): ts.SpreadElement;
|
|
853
|
+
}
|
|
854
|
+
//#endregion
|
|
597
855
|
//#region src/ts-dsl/expr/typeof.d.ts
|
|
598
|
-
type TypeOfExpr =
|
|
856
|
+
type TypeOfExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
599
857
|
type TypeOfExprCtor = (expr: TypeOfExpr) => TypeOfExprTsDsl;
|
|
600
|
-
declare const Mixed$
|
|
601
|
-
declare class TypeOfExprTsDsl extends Mixed$
|
|
858
|
+
declare const Mixed$47: MixinCtor<abstract new () => TsDsl<ts.TypeOfExpression>, OperatorMethods>;
|
|
859
|
+
declare class TypeOfExprTsDsl extends Mixed$47 {
|
|
602
860
|
readonly '~dsl' = "TypeOfExprTsDsl";
|
|
603
861
|
protected _expr: TypeOfExpr;
|
|
604
862
|
constructor(expr: TypeOfExpr);
|
|
@@ -609,8 +867,8 @@ declare class TypeOfExprTsDsl extends Mixed$49 {
|
|
|
609
867
|
//#region src/ts-dsl/stmt/return.d.ts
|
|
610
868
|
type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
611
869
|
type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
|
|
612
|
-
declare const Mixed$
|
|
613
|
-
declare class ReturnTsDsl extends Mixed$
|
|
870
|
+
declare const Mixed$46: abstract new () => TsDsl<ts.ReturnStatement>;
|
|
871
|
+
declare class ReturnTsDsl extends Mixed$46 {
|
|
614
872
|
readonly '~dsl' = "ReturnTsDsl";
|
|
615
873
|
protected _returnExpr?: Ref<ReturnExpr>;
|
|
616
874
|
constructor(expr?: ReturnExpr);
|
|
@@ -639,8 +897,8 @@ interface TypeExprMethods extends Node {
|
|
|
639
897
|
//#region src/ts-dsl/type/attr.d.ts
|
|
640
898
|
type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
|
|
641
899
|
type Right = NodeName | ts.Identifier;
|
|
642
|
-
declare const Mixed$
|
|
643
|
-
declare class TypeAttrTsDsl extends Mixed$
|
|
900
|
+
declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
|
|
901
|
+
declare class TypeAttrTsDsl extends Mixed$45 {
|
|
644
902
|
readonly '~dsl' = "TypeAttrTsDsl";
|
|
645
903
|
scope: NodeScope;
|
|
646
904
|
protected _base?: Ref<Base$1>;
|
|
@@ -664,8 +922,8 @@ declare class TypeAttrTsDsl extends Mixed$47 {
|
|
|
664
922
|
type TypeExprExpr = NodeName | TypeAttrTsDsl;
|
|
665
923
|
type TypeExprFn = (t: TypeExprTsDsl) => void;
|
|
666
924
|
type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
|
|
667
|
-
declare const Mixed$
|
|
668
|
-
declare class TypeExprTsDsl extends Mixed$
|
|
925
|
+
declare const Mixed$44: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
|
|
926
|
+
declare class TypeExprTsDsl extends Mixed$44 {
|
|
669
927
|
readonly '~dsl' = "TypeExprTsDsl";
|
|
670
928
|
scope: NodeScope;
|
|
671
929
|
protected _exprInput?: Ref<TypeExprExpr>;
|
|
@@ -689,8 +947,8 @@ declare class TypeExprTsDsl extends Mixed$46 {
|
|
|
689
947
|
type Base = string | MaybeTsDsl<ts.TypeNode>;
|
|
690
948
|
type Index = string | number | MaybeTsDsl<ts.TypeNode>;
|
|
691
949
|
type TypeIdxCtor = (base: Base, index: Index) => TypeIdxTsDsl;
|
|
692
|
-
declare const Mixed$
|
|
693
|
-
declare class TypeIdxTsDsl extends Mixed$
|
|
950
|
+
declare const Mixed$43: MixinCtor<abstract new () => TsDsl<ts.IndexedAccessTypeNode>, TypeExprMethods>;
|
|
951
|
+
declare class TypeIdxTsDsl extends Mixed$43 {
|
|
694
952
|
readonly '~dsl' = "TypeIdxTsDsl";
|
|
695
953
|
scope: NodeScope;
|
|
696
954
|
protected _base: Base;
|
|
@@ -713,7 +971,7 @@ declare class TypeIdxTsDsl extends Mixed$45 {
|
|
|
713
971
|
type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
|
|
714
972
|
type Type$3 = string | MaybeTsDsl<ts.TypeNode>;
|
|
715
973
|
type TypeOperatorCtor = () => TypeOperatorTsDsl;
|
|
716
|
-
declare const Mixed$
|
|
974
|
+
declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
717
975
|
/**
|
|
718
976
|
* Builds a TypeScript `TypeOperatorNode`, such as:
|
|
719
977
|
*
|
|
@@ -726,7 +984,7 @@ declare const Mixed$44: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
|
726
984
|
*
|
|
727
985
|
* The node will throw during render if required fields are missing.
|
|
728
986
|
*/
|
|
729
|
-
declare class TypeOperatorTsDsl extends Mixed$
|
|
987
|
+
declare class TypeOperatorTsDsl extends Mixed$42 {
|
|
730
988
|
readonly '~dsl' = "TypeOperatorTsDsl";
|
|
731
989
|
scope: NodeScope;
|
|
732
990
|
protected _op?: Op;
|
|
@@ -754,8 +1012,8 @@ declare class TypeOperatorTsDsl extends Mixed$44 {
|
|
|
754
1012
|
//#region src/ts-dsl/type/query.d.ts
|
|
755
1013
|
type TypeQueryExpr = NodeName | MaybeTsDsl<TypeTsDsl | ts.Expression>;
|
|
756
1014
|
type TypeQueryCtor = (expr: TypeQueryExpr) => TypeQueryTsDsl;
|
|
757
|
-
declare const Mixed$
|
|
758
|
-
declare class TypeQueryTsDsl extends Mixed$
|
|
1015
|
+
declare const Mixed$41: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode>, TypeExprMethods>;
|
|
1016
|
+
declare class TypeQueryTsDsl extends Mixed$41 {
|
|
759
1017
|
readonly '~dsl' = "TypeQueryTsDsl";
|
|
760
1018
|
scope: NodeScope;
|
|
761
1019
|
protected _expr: Ref<TypeQueryExpr>;
|
|
@@ -764,6 +1022,23 @@ declare class TypeQueryTsDsl extends Mixed$43 {
|
|
|
764
1022
|
toAst(): ts.TypeQueryNode;
|
|
765
1023
|
}
|
|
766
1024
|
//#endregion
|
|
1025
|
+
//#region src/ts-dsl/type/tuple-member.d.ts
|
|
1026
|
+
type TypeTupleMemberCtor = (name: NodeName) => TypeTupleMemberTsDsl;
|
|
1027
|
+
declare const Mixed$40: MixinCtor<abstract new () => TsDsl<ts.NamedTupleMember>, OptionalMethods>;
|
|
1028
|
+
declare class TypeTupleMemberTsDsl extends Mixed$40 {
|
|
1029
|
+
readonly '~dsl' = "TypeTupleMemberTsDsl";
|
|
1030
|
+
scope: NodeScope;
|
|
1031
|
+
protected _type?: Ref<NodeName | TypeTsDsl>;
|
|
1032
|
+
constructor(name: NodeName);
|
|
1033
|
+
analyze(ctx: AnalysisContext): void;
|
|
1034
|
+
/** Returns true when all required builder calls are present. */
|
|
1035
|
+
get isValid(): boolean;
|
|
1036
|
+
type(node: NodeName | TypeTsDsl): this;
|
|
1037
|
+
toAst(): ts.NamedTupleMember;
|
|
1038
|
+
$validate(): asserts this;
|
|
1039
|
+
private missingRequiredCalls;
|
|
1040
|
+
}
|
|
1041
|
+
//#endregion
|
|
767
1042
|
//#region src/ts-dsl/utils/factories.d.ts
|
|
768
1043
|
type Ctor = (...args: Array<any>) => any;
|
|
769
1044
|
type Factory<T extends Ctor> = {
|
|
@@ -774,36 +1049,33 @@ declare const f: {
|
|
|
774
1049
|
/** Factory for creating `as` type assertion expressions (e.g., `value as Type`). */as: Factory<AsCtor>; /** Factory for creating property access expressions (e.g., `obj.foo`). */
|
|
775
1050
|
attr: Factory<AttrCtor>; /** Factory for creating await expressions (e.g., `await promise`). */
|
|
776
1051
|
await: Factory<AwaitCtor>; /** Factory for creating function or method call expressions (e.g., `fn(arg)`). */
|
|
777
|
-
call: Factory<CallCtor>; /** Factory for creating
|
|
1052
|
+
call: Factory<CallCtor>; /** Factory for creating method declarations (e.g., `{ foo() { ... } }`). */
|
|
1053
|
+
method: Factory<MethodCtor>; /** Factory for creating new expressions (e.g., `new ClassName()`). */
|
|
778
1054
|
new: Factory<NewCtor>; /** Factory for creating return statements. */
|
|
779
|
-
return: Factory<ReturnCtor>; /**
|
|
1055
|
+
return: Factory<ReturnCtor>; /** Factory for creating spread expressions (e.g., `...expr`). */
|
|
1056
|
+
spread: Factory<SpreadCtor>; /** Factories for creating type nodes. */
|
|
780
1057
|
type: {
|
|
781
1058
|
/** Factory for creating basic type references or type expressions (e.g., Foo or Foo<T>). */expr: Factory<TypeExprCtor>; /** Factory for creating indexed-access types (e.g., `Foo<T>[K]`). */
|
|
782
1059
|
idx: Factory<TypeIdxCtor>; /** Factory for creating type operator nodes (e.g., `readonly T`, `keyof T`, `unique T`). */
|
|
783
1060
|
operator: Factory<TypeOperatorCtor>; /** Factory for creating type query nodes (e.g., `typeof Foo`). */
|
|
784
|
-
query: Factory<TypeQueryCtor>;
|
|
1061
|
+
query: Factory<TypeQueryCtor>; /** Factory for creating named tuple elements (e.g., `[resolver?: R]`). */
|
|
1062
|
+
tupleMember: Factory<TypeTupleMemberCtor>;
|
|
785
1063
|
}; /** Factory for creating `typeof` expressions (e.g., `typeof value`). */
|
|
786
1064
|
typeofExpr: Factory<TypeOfExprCtor>;
|
|
787
1065
|
};
|
|
788
1066
|
//#endregion
|
|
789
|
-
//#region src/ts-dsl/mixins/
|
|
790
|
-
interface
|
|
791
|
-
/**
|
|
792
|
-
|
|
793
|
-
/** Awaits the current expression (e.g., `await expr`). */
|
|
794
|
-
await(): ReturnType<typeof f.await>;
|
|
795
|
-
/** Calls the current expression (e.g., `fn(arg1, arg2)`). */
|
|
796
|
-
call(...args: DropFirst<Parameters<typeof f.call>>): ReturnType<typeof f.call>;
|
|
797
|
-
/** Produces a `return` statement returning the current expression. */
|
|
798
|
-
return(): ReturnType<typeof f.return>;
|
|
1067
|
+
//#region src/ts-dsl/mixins/spread.d.ts
|
|
1068
|
+
interface SpreadMethods extends Node {
|
|
1069
|
+
/** Produces a spread element from the current expression (e.g., `...expr`). */
|
|
1070
|
+
spread(): ReturnType<typeof f.spread>;
|
|
799
1071
|
}
|
|
800
1072
|
//#endregion
|
|
801
1073
|
//#region src/ts-dsl/expr/call.d.ts
|
|
802
1074
|
type CallArgs = ReadonlyArray<CallCallee | undefined>;
|
|
803
1075
|
type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
|
|
804
1076
|
type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
|
|
805
|
-
declare const Mixed$
|
|
806
|
-
declare class CallTsDsl extends Mixed$
|
|
1077
|
+
declare const Mixed$39: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression>, TypeArgsMethods>, SpreadMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
1078
|
+
declare class CallTsDsl extends Mixed$39 {
|
|
807
1079
|
readonly '~dsl' = "CallTsDsl";
|
|
808
1080
|
protected _callee: Ref<CallCallee>;
|
|
809
1081
|
constructor(callee: CallCallee, ...args: CallArgs);
|
|
@@ -884,7 +1156,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
884
1156
|
structuralParents?: Map<TsDsl, NodeRelationship>;
|
|
885
1157
|
symbol?: Symbol;
|
|
886
1158
|
toAst(): T;
|
|
887
|
-
readonly '~brand'
|
|
1159
|
+
readonly '~brand': any;
|
|
888
1160
|
/** Branding property to identify the DSL class at runtime. */
|
|
889
1161
|
abstract readonly '~dsl': AnyString;
|
|
890
1162
|
/** Conditionally applies a callback to this builder. */
|
|
@@ -917,8 +1189,8 @@ type TypeOf<I> = I extends ReadonlyArray<infer U> ? ReadonlyArray<TypeOf<U>> : I
|
|
|
917
1189
|
//#region src/ts-dsl/expr/postfix.d.ts
|
|
918
1190
|
type PostfixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
919
1191
|
type PostfixOp = ts.PostfixUnaryOperator;
|
|
920
|
-
declare const Mixed$
|
|
921
|
-
declare class PostfixTsDsl extends Mixed$
|
|
1192
|
+
declare const Mixed$38: abstract new () => TsDsl<ts.PostfixUnaryExpression>;
|
|
1193
|
+
declare class PostfixTsDsl extends Mixed$38 {
|
|
922
1194
|
readonly '~dsl' = "PostfixTsDsl";
|
|
923
1195
|
protected _expr?: PostfixExpr;
|
|
924
1196
|
protected _op?: PostfixOp;
|
|
@@ -932,28 +1204,14 @@ declare class PostfixTsDsl extends Mixed$41 {
|
|
|
932
1204
|
expr(expr: PostfixExpr): this;
|
|
933
1205
|
/** Sets the operator to PlusPlusToken for increment (`++`). */
|
|
934
1206
|
inc(): this;
|
|
935
|
-
/** Sets the operator (e.g., `ts.SyntaxKind.PlusPlusToken` for `++`). */
|
|
936
|
-
op(op: PostfixOp): this;
|
|
937
|
-
toAst(): ts.PostfixUnaryExpression;
|
|
938
|
-
$validate(): asserts this is this & {
|
|
939
|
-
_expr: PostfixExpr;
|
|
940
|
-
_op: PostfixOp;
|
|
941
|
-
};
|
|
942
|
-
private missingRequiredCalls;
|
|
943
|
-
}
|
|
944
|
-
//#endregion
|
|
945
|
-
//#region src/ts-dsl/layout/doc.d.ts
|
|
946
|
-
type DocMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
947
|
-
type DocFn = (d: DocTsDsl) => void;
|
|
948
|
-
type DocLines = DocMaybeLazy<MaybeArray<string>>;
|
|
949
|
-
declare class DocTsDsl extends TsDsl<ts.Node> {
|
|
950
|
-
readonly '~dsl' = "DocTsDsl";
|
|
951
|
-
protected _lines: Array<DocLines>;
|
|
952
|
-
constructor(lines?: DocLines, fn?: DocFn);
|
|
953
|
-
analyze(ctx: AnalysisContext): void;
|
|
954
|
-
add(lines: DocLines): this;
|
|
955
|
-
apply<T extends ts.Node>(node: T): T;
|
|
956
|
-
toAst(): ts.Identifier;
|
|
1207
|
+
/** Sets the operator (e.g., `ts.SyntaxKind.PlusPlusToken` for `++`). */
|
|
1208
|
+
op(op: PostfixOp): this;
|
|
1209
|
+
toAst(): ts.PostfixUnaryExpression;
|
|
1210
|
+
$validate(): asserts this is this & {
|
|
1211
|
+
_expr: PostfixExpr;
|
|
1212
|
+
_op: PostfixOp;
|
|
1213
|
+
};
|
|
1214
|
+
private missingRequiredCalls;
|
|
957
1215
|
}
|
|
958
1216
|
//#endregion
|
|
959
1217
|
//#region src/ts-dsl/layout/hint.d.ts
|
|
@@ -967,37 +1225,7 @@ declare class HintTsDsl extends TsDsl<ts.Node> {
|
|
|
967
1225
|
analyze(ctx: AnalysisContext): void;
|
|
968
1226
|
add(lines: HintLines): this;
|
|
969
1227
|
apply<T extends ts.Node>(node: T): T;
|
|
970
|
-
toAst():
|
|
971
|
-
}
|
|
972
|
-
//#endregion
|
|
973
|
-
//#region src/ts-dsl/mixins/do.d.ts
|
|
974
|
-
type DoExpr = MaybeTsDsl<ts.Expression | ts.Statement>;
|
|
975
|
-
interface DoMethods extends Node {
|
|
976
|
-
/** Renders the collected `.do()` calls into an array of `Statement` nodes. */
|
|
977
|
-
$do(): ReadonlyArray<ts.Statement>;
|
|
978
|
-
_do: Array<DoExpr>;
|
|
979
|
-
/** Adds one or more expressions/statements to the body. */
|
|
980
|
-
do(...items: ReadonlyArray<DoExpr>): this;
|
|
981
|
-
}
|
|
982
|
-
//#endregion
|
|
983
|
-
//#region src/ts-dsl/stmt/if.d.ts
|
|
984
|
-
type IfCondition = string | MaybeTsDsl<ts.Expression>;
|
|
985
|
-
declare const Mixed$40: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
|
|
986
|
-
declare class IfTsDsl extends Mixed$40 {
|
|
987
|
-
readonly '~dsl' = "IfTsDsl";
|
|
988
|
-
protected _condition?: IfCondition;
|
|
989
|
-
protected _else?: Array<DoExpr>;
|
|
990
|
-
constructor(condition?: IfCondition);
|
|
991
|
-
analyze(ctx: AnalysisContext): void;
|
|
992
|
-
/** Returns true when all required builder calls are present. */
|
|
993
|
-
get isValid(): boolean;
|
|
994
|
-
condition(condition: IfCondition): this;
|
|
995
|
-
otherwise(...items: Array<DoExpr>): this;
|
|
996
|
-
toAst(): ts.IfStatement;
|
|
997
|
-
$validate(): asserts this is this & {
|
|
998
|
-
_condition: IfCondition;
|
|
999
|
-
};
|
|
1000
|
-
private missingRequiredCalls;
|
|
1228
|
+
toAst(): any;
|
|
1001
1229
|
}
|
|
1002
1230
|
//#endregion
|
|
1003
1231
|
//#region src/ts-dsl/utils/lazy.d.ts
|
|
@@ -1033,292 +1261,98 @@ type TsExpression = TsIdentifier | TsLiteral;
|
|
|
1033
1261
|
//#region src/ts-compiler/nodes/statements/assignment.d.ts
|
|
1034
1262
|
interface TsAssignment extends TsNodeBase {
|
|
1035
1263
|
kind: TsNodeKind.Assignment;
|
|
1036
|
-
target: TsExpression;
|
|
1037
|
-
type?: TsExpression;
|
|
1038
|
-
value?: TsExpression;
|
|
1039
|
-
}
|
|
1040
|
-
declare function createAssignment(target: TsExpression, type?: TsExpression, value?: TsExpression, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsAssignment;
|
|
1041
|
-
//#endregion
|
|
1042
|
-
//#region src/ts-compiler/nodes/type.d.ts
|
|
1043
|
-
type TsType = never;
|
|
1044
|
-
//#endregion
|
|
1045
|
-
//#region src/ts-compiler/nodes/statements/var.d.ts
|
|
1046
|
-
type TsVariableKeyword = 'var' | 'let' | 'const';
|
|
1047
|
-
interface TsVariableStatement extends TsNodeBase {
|
|
1048
|
-
initializer?: TsExpression;
|
|
1049
|
-
keyword: TsVariableKeyword;
|
|
1050
|
-
kind: TsNodeKind.VariableStatement;
|
|
1051
|
-
name: string;
|
|
1052
|
-
typeAnnotation?: TsType;
|
|
1053
|
-
}
|
|
1054
|
-
declare function createVariableStatement(keyword: TsVariableKeyword, name: string, initializer?: TsExpression, typeAnnotation?: TsType, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsVariableStatement;
|
|
1055
|
-
//#endregion
|
|
1056
|
-
//#region src/ts-compiler/nodes/statement.d.ts
|
|
1057
|
-
type TsStatement = TsAssignment | TsVariableStatement;
|
|
1058
|
-
//#endregion
|
|
1059
|
-
//#region src/ts-compiler/nodes/structure/sourceFile.d.ts
|
|
1060
|
-
interface TsSourceFile extends TsNodeBase {
|
|
1061
|
-
kind: TsNodeKind.SourceFile;
|
|
1062
|
-
statements: ReadonlyArray<TsNode>;
|
|
1063
|
-
}
|
|
1064
|
-
declare function createSourceFile(statements: ReadonlyArray<TsNode>, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsSourceFile;
|
|
1065
|
-
//#endregion
|
|
1066
|
-
//#region src/ts-compiler/nodes/base.d.ts
|
|
1067
|
-
interface TsNodeBase {
|
|
1068
|
-
kind: TsNodeKind;
|
|
1069
|
-
leadingComments?: ReadonlyArray<string>;
|
|
1070
|
-
trailingComments?: ReadonlyArray<string>;
|
|
1071
|
-
}
|
|
1072
|
-
type TsNode = TsExpression | TsSourceFile | TsStatement;
|
|
1073
|
-
//#endregion
|
|
1074
|
-
//#region src/ts-compiler/nodes/expressions/literal.d.ts
|
|
1075
|
-
type TsLiteralValue = string | number | boolean | bigint | null;
|
|
1076
|
-
interface TsLiteral extends TsNodeBase {
|
|
1077
|
-
kind: TsNodeKind.Literal;
|
|
1078
|
-
value: TsLiteralValue;
|
|
1079
|
-
}
|
|
1080
|
-
declare function createLiteral(value: TsLiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsLiteral;
|
|
1081
|
-
//#endregion
|
|
1082
|
-
//#region src/ts-dsl/expr/prefix.d.ts
|
|
1083
|
-
type PrefixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1084
|
-
type PrefixOp = ts.PrefixUnaryOperator;
|
|
1085
|
-
declare const Mixed$39: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
|
|
1086
|
-
declare class PrefixTsDsl extends Mixed$39 {
|
|
1087
|
-
readonly '~dsl' = "PrefixTsDsl";
|
|
1088
|
-
protected _expr?: PrefixExpr;
|
|
1089
|
-
protected _op?: PrefixOp;
|
|
1090
|
-
constructor(expr?: PrefixExpr, op?: PrefixOp);
|
|
1091
|
-
analyze(ctx: AnalysisContext): void;
|
|
1092
|
-
/** Returns true when all required builder calls are present. */
|
|
1093
|
-
get isValid(): boolean;
|
|
1094
|
-
/** Sets the operand (the expression being prefixed). */
|
|
1095
|
-
expr(expr: PrefixExpr): this;
|
|
1096
|
-
/** Sets the operator to MinusToken for negation (`-`). */
|
|
1097
|
-
neg(): this;
|
|
1098
|
-
/** Sets the operator to ExclamationToken for logical NOT (`!`). */
|
|
1099
|
-
not(): this;
|
|
1100
|
-
/** Sets the operator (e.g., `ts.SyntaxKind.ExclamationToken` for `!`). */
|
|
1101
|
-
op(op: PrefixOp): this;
|
|
1102
|
-
toAst(): ts.PrefixUnaryExpression;
|
|
1103
|
-
$validate(): asserts this is this & {
|
|
1104
|
-
_expr: PrefixExpr;
|
|
1105
|
-
_op: PrefixOp;
|
|
1106
|
-
};
|
|
1107
|
-
private missingRequiredCalls;
|
|
1108
|
-
}
|
|
1109
|
-
//#endregion
|
|
1110
|
-
//#region src/ts-dsl/layout/note.d.ts
|
|
1111
|
-
type NoteMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
1112
|
-
type NoteFn = (d: NoteTsDsl) => void;
|
|
1113
|
-
type NoteLines = NoteMaybeLazy<MaybeArray<string>>;
|
|
1114
|
-
declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
1115
|
-
readonly '~dsl' = "NoteTsDsl";
|
|
1116
|
-
protected _lines: Array<NoteLines>;
|
|
1117
|
-
constructor(lines?: NoteLines, fn?: NoteFn);
|
|
1118
|
-
analyze(ctx: AnalysisContext): void;
|
|
1119
|
-
add(lines: NoteLines): this;
|
|
1120
|
-
apply<T extends ts.Node>(node: T): T;
|
|
1121
|
-
toAst(): ts.Identifier;
|
|
1122
|
-
}
|
|
1123
|
-
//#endregion
|
|
1124
|
-
//#region src/ts-dsl/mixins/value.d.ts
|
|
1125
|
-
type ValueExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1126
|
-
interface ValueMethods extends Node {
|
|
1127
|
-
$value(): ts.Expression | undefined;
|
|
1128
|
-
/** Sets the initializer expression (e.g., `= expr`). */
|
|
1129
|
-
assign(expr: ValueExpr): this;
|
|
1130
|
-
}
|
|
1131
|
-
//#endregion
|
|
1132
|
-
//#region src/ts-dsl/mixins/pattern.d.ts
|
|
1133
|
-
interface PatternMethods extends Node {
|
|
1134
|
-
/** Renders the pattern into a `BindingName`. */
|
|
1135
|
-
$pattern(): ts.BindingName | undefined;
|
|
1136
|
-
/** Defines an array binding pattern. */
|
|
1137
|
-
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
1138
|
-
/** Defines an object binding pattern. */
|
|
1139
|
-
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
1140
|
-
/** Adds a spread element (e.g., `...args`, `...options`) to the pattern. */
|
|
1141
|
-
spread(name: string): this;
|
|
1142
|
-
}
|
|
1143
|
-
//#endregion
|
|
1144
|
-
//#region src/ts-dsl/mixins/decorator.d.ts
|
|
1145
|
-
interface DecoratorMethods extends Node {
|
|
1146
|
-
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
1147
|
-
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
1148
|
-
/** Adds a decorator (e.g., `@sealed({ in: 'root' })`). */
|
|
1149
|
-
decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
1150
|
-
}
|
|
1151
|
-
//#endregion
|
|
1152
|
-
//#region src/ts-dsl/decl/param.d.ts
|
|
1153
|
-
type ParamName = NodeName | ParamFn;
|
|
1154
|
-
type ParamFn = (p: ParamTsDsl) => void;
|
|
1155
|
-
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
1156
|
-
declare const Mixed$38: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
1157
|
-
declare class ParamTsDsl extends Mixed$38 {
|
|
1158
|
-
readonly '~dsl' = "ParamTsDsl";
|
|
1159
|
-
protected _type?: TypeTsDsl;
|
|
1160
|
-
constructor(name: ParamName, fn?: ParamFn);
|
|
1161
|
-
analyze(ctx: AnalysisContext): void;
|
|
1162
|
-
/** Returns true when all required builder calls are present. */
|
|
1163
|
-
get isValid(): boolean;
|
|
1164
|
-
/** Sets the parameter type. */
|
|
1165
|
-
type(type: string | TypeTsDsl): this;
|
|
1166
|
-
toAst(): ts.ParameterDeclaration;
|
|
1167
|
-
$validate(): asserts this;
|
|
1168
|
-
private missingRequiredCalls;
|
|
1169
|
-
}
|
|
1170
|
-
//#endregion
|
|
1171
|
-
//#region src/ts-dsl/expr/template.d.ts
|
|
1172
|
-
type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1173
|
-
declare const Mixed$37: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
|
|
1174
|
-
declare class TemplateTsDsl extends Mixed$37 {
|
|
1175
|
-
readonly '~dsl' = "TemplateTsDsl";
|
|
1176
|
-
protected parts: Array<Ref<TemplatePart>>;
|
|
1177
|
-
constructor(value?: TemplatePart);
|
|
1178
|
-
analyze(ctx: AnalysisContext): void;
|
|
1179
|
-
add(value: TemplatePart): this;
|
|
1180
|
-
toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
|
|
1181
|
-
}
|
|
1182
|
-
//#endregion
|
|
1183
|
-
//#region src/ts-dsl/type/param.d.ts
|
|
1184
|
-
type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
1185
|
-
declare const Mixed$36: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
|
|
1186
|
-
declare class TypeParamTsDsl extends Mixed$36 {
|
|
1187
|
-
readonly '~dsl' = "TypeParamTsDsl";
|
|
1188
|
-
scope: NodeScope;
|
|
1189
|
-
protected constraint?: Ref<TypeParamExpr>;
|
|
1190
|
-
protected defaultValue?: Ref<TypeParamExpr>;
|
|
1191
|
-
constructor(name?: NodeName, fn?: (name: TypeParamTsDsl) => void);
|
|
1192
|
-
analyze(ctx: AnalysisContext): void;
|
|
1193
|
-
/** Sets the parameter default value. */
|
|
1194
|
-
default(value: TypeParamExpr): this;
|
|
1195
|
-
extends(constraint: TypeParamExpr): this;
|
|
1196
|
-
toAst(): ts.TypeParameterDeclaration;
|
|
1197
|
-
}
|
|
1198
|
-
//#endregion
|
|
1199
|
-
//#region src/ts-dsl/mixins/type-params.d.ts
|
|
1200
|
-
interface TypeParamsMethods extends Node {
|
|
1201
|
-
/** Returns the type parameters as an array of ts.TypeParameterDeclaration nodes. */
|
|
1202
|
-
$generics(): ReadonlyArray<ts.TypeParameterDeclaration> | undefined;
|
|
1203
|
-
/** Adds a single type parameter (e.g., `T` in `Array<T>`). */
|
|
1204
|
-
generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
|
|
1205
|
-
/** Adds type parameters (e.g., `Map<string, T>`). */
|
|
1206
|
-
generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
|
|
1207
|
-
}
|
|
1208
|
-
//#endregion
|
|
1209
|
-
//#region src/ts-dsl/mixins/modifiers.d.ts
|
|
1210
|
-
type Modifiers = {
|
|
1211
|
-
/**
|
|
1212
|
-
* Checks if the specified modifier is present.
|
|
1213
|
-
*
|
|
1214
|
-
* @param modifier - The modifier to check.
|
|
1215
|
-
* @returns True if the modifier is present, false otherwise.
|
|
1216
|
-
*/
|
|
1217
|
-
hasModifier(modifier: Modifier): boolean;
|
|
1218
|
-
modifiers: Array<ts.Modifier>;
|
|
1219
|
-
};
|
|
1220
|
-
type Modifier = 'abstract' | 'async' | 'const' | 'declare' | 'default' | 'export' | 'override' | 'private' | 'protected' | 'public' | 'readonly' | 'static';
|
|
1221
|
-
interface AbstractMethods extends Modifiers {
|
|
1222
|
-
/**
|
|
1223
|
-
* Adds the `abstract` keyword modifier if the condition is true.
|
|
1224
|
-
*
|
|
1225
|
-
* @param condition - Whether to add the modifier (default: true).
|
|
1226
|
-
* @returns The target object for chaining.
|
|
1227
|
-
*/
|
|
1228
|
-
abstract(condition?: boolean): this;
|
|
1229
|
-
}
|
|
1230
|
-
interface AsyncMethods extends Modifiers {
|
|
1231
|
-
/**
|
|
1232
|
-
* Adds the `async` keyword modifier if the condition is true.
|
|
1233
|
-
*
|
|
1234
|
-
* @param condition - Whether to add the modifier (default: true).
|
|
1235
|
-
* @returns The target object for chaining.
|
|
1236
|
-
*/
|
|
1237
|
-
async(condition?: boolean): this;
|
|
1238
|
-
}
|
|
1239
|
-
interface ConstMethods extends Modifiers {
|
|
1240
|
-
/**
|
|
1241
|
-
* Adds the `const` keyword modifier if the condition is true.
|
|
1242
|
-
*
|
|
1243
|
-
* @param condition - Whether to add the modifier (default: true).
|
|
1244
|
-
* @returns The target object for chaining.
|
|
1245
|
-
*/
|
|
1246
|
-
const(condition?: boolean): this;
|
|
1247
|
-
}
|
|
1248
|
-
interface DefaultMethods extends Modifiers {
|
|
1249
|
-
/**
|
|
1250
|
-
* Adds the `default` keyword modifier if the condition is true.
|
|
1251
|
-
*
|
|
1252
|
-
* @param condition - Whether to add the modifier (default: true).
|
|
1253
|
-
* @returns The target object for chaining.
|
|
1254
|
-
*/
|
|
1255
|
-
default(condition?: boolean): this;
|
|
1256
|
-
}
|
|
1257
|
-
interface ExportMethods extends Modifiers {
|
|
1258
|
-
/**
|
|
1259
|
-
* Adds the `export` keyword modifier if the condition is true.
|
|
1260
|
-
*
|
|
1261
|
-
* @param condition - Whether to add the modifier (default: true).
|
|
1262
|
-
* @returns The target object for chaining.
|
|
1263
|
-
*/
|
|
1264
|
-
export(condition?: boolean): this;
|
|
1264
|
+
target: TsExpression;
|
|
1265
|
+
type?: TsExpression;
|
|
1266
|
+
value?: TsExpression;
|
|
1265
1267
|
}
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1268
|
+
declare function createAssignment(target: TsExpression, type?: TsExpression, value?: TsExpression, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsAssignment;
|
|
1269
|
+
//#endregion
|
|
1270
|
+
//#region src/ts-compiler/nodes/type.d.ts
|
|
1271
|
+
type TsType = never;
|
|
1272
|
+
//#endregion
|
|
1273
|
+
//#region src/ts-compiler/nodes/statements/var.d.ts
|
|
1274
|
+
type TsVariableKeyword = 'var' | 'let' | 'const';
|
|
1275
|
+
interface TsVariableStatement extends TsNodeBase {
|
|
1276
|
+
initializer?: TsExpression;
|
|
1277
|
+
keyword: TsVariableKeyword;
|
|
1278
|
+
kind: TsNodeKind.VariableStatement;
|
|
1279
|
+
name: string;
|
|
1280
|
+
typeAnnotation?: TsType;
|
|
1274
1281
|
}
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1282
|
+
declare function createVariableStatement(keyword: TsVariableKeyword, name: string, initializer?: TsExpression, typeAnnotation?: TsType, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsVariableStatement;
|
|
1283
|
+
//#endregion
|
|
1284
|
+
//#region src/ts-compiler/nodes/statement.d.ts
|
|
1285
|
+
type TsStatement = TsAssignment | TsVariableStatement;
|
|
1286
|
+
//#endregion
|
|
1287
|
+
//#region src/ts-compiler/nodes/structure/sourceFile.d.ts
|
|
1288
|
+
interface TsSourceFile extends TsNodeBase {
|
|
1289
|
+
kind: TsNodeKind.SourceFile;
|
|
1290
|
+
statements: ReadonlyArray<TsNode>;
|
|
1283
1291
|
}
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
public(condition?: boolean): this;
|
|
1292
|
+
declare function createSourceFile(statements: ReadonlyArray<TsNode>, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsSourceFile;
|
|
1293
|
+
//#endregion
|
|
1294
|
+
//#region src/ts-compiler/nodes/base.d.ts
|
|
1295
|
+
interface TsNodeBase {
|
|
1296
|
+
kind: TsNodeKind;
|
|
1297
|
+
leadingComments?: ReadonlyArray<string>;
|
|
1298
|
+
trailingComments?: ReadonlyArray<string>;
|
|
1292
1299
|
}
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
readonly(condition?: boolean): this;
|
|
1300
|
+
type TsNode = TsExpression | TsSourceFile | TsStatement;
|
|
1301
|
+
//#endregion
|
|
1302
|
+
//#region src/ts-compiler/nodes/expressions/literal.d.ts
|
|
1303
|
+
type TsLiteralValue = string | number | boolean | bigint | null;
|
|
1304
|
+
interface TsLiteral extends TsNodeBase {
|
|
1305
|
+
kind: TsNodeKind.Literal;
|
|
1306
|
+
value: TsLiteralValue;
|
|
1301
1307
|
}
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1308
|
+
declare function createLiteral(value: TsLiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsLiteral;
|
|
1309
|
+
//#endregion
|
|
1310
|
+
//#region src/ts-dsl/expr/prefix.d.ts
|
|
1311
|
+
type PrefixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1312
|
+
type PrefixOp = ts.PrefixUnaryOperator;
|
|
1313
|
+
declare const Mixed$37: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
|
|
1314
|
+
declare class PrefixTsDsl extends Mixed$37 {
|
|
1315
|
+
readonly '~dsl' = "PrefixTsDsl";
|
|
1316
|
+
protected _expr?: PrefixExpr;
|
|
1317
|
+
protected _op?: PrefixOp;
|
|
1318
|
+
constructor(expr?: PrefixExpr, op?: PrefixOp);
|
|
1319
|
+
analyze(ctx: AnalysisContext): void;
|
|
1320
|
+
/** Returns true when all required builder calls are present. */
|
|
1321
|
+
get isValid(): boolean;
|
|
1322
|
+
/** Sets the operand (the expression being prefixed). */
|
|
1323
|
+
expr(expr: PrefixExpr): this;
|
|
1324
|
+
/** Sets the operator to MinusToken for negation (`-`). */
|
|
1325
|
+
neg(): this;
|
|
1326
|
+
/** Sets the operator to ExclamationToken for logical NOT (`!`). */
|
|
1327
|
+
not(): this;
|
|
1328
|
+
/** Sets the operator (e.g., `ts.SyntaxKind.ExclamationToken` for `!`). */
|
|
1329
|
+
op(op: PrefixOp): this;
|
|
1330
|
+
toAst(): ts.PrefixUnaryExpression;
|
|
1331
|
+
$validate(): asserts this is this & {
|
|
1332
|
+
_expr: PrefixExpr;
|
|
1333
|
+
_op: PrefixOp;
|
|
1334
|
+
};
|
|
1335
|
+
private missingRequiredCalls;
|
|
1310
1336
|
}
|
|
1311
1337
|
//#endregion
|
|
1312
|
-
//#region src/ts-dsl/
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1338
|
+
//#region src/ts-dsl/layout/note.d.ts
|
|
1339
|
+
type NoteMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
1340
|
+
type NoteFn = (d: NoteTsDsl) => void;
|
|
1341
|
+
type NoteLines = NoteMaybeLazy<MaybeArray<string>>;
|
|
1342
|
+
declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
1343
|
+
readonly '~dsl' = "NoteTsDsl";
|
|
1344
|
+
protected _lines: Array<NoteLines>;
|
|
1345
|
+
constructor(lines?: NoteLines, fn?: NoteFn);
|
|
1346
|
+
analyze(ctx: AnalysisContext): void;
|
|
1347
|
+
add(lines: NoteLines): this;
|
|
1348
|
+
apply<T extends ts.Node>(node: T): T;
|
|
1349
|
+
toAst(): any;
|
|
1316
1350
|
}
|
|
1317
1351
|
//#endregion
|
|
1318
1352
|
//#region src/ts-dsl/decl/field.d.ts
|
|
1319
1353
|
type FieldType = NodeName | TypeTsDsl;
|
|
1320
|
-
declare const Mixed$
|
|
1321
|
-
declare class FieldTsDsl extends Mixed$
|
|
1354
|
+
declare const Mixed$36: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
|
|
1355
|
+
declare class FieldTsDsl extends Mixed$36 {
|
|
1322
1356
|
readonly '~dsl' = "FieldTsDsl";
|
|
1323
1357
|
readonly nameSanitizer: (name: string) => string;
|
|
1324
1358
|
protected _type?: TypeTsDsl;
|
|
@@ -1329,47 +1363,19 @@ declare class FieldTsDsl extends Mixed$35 {
|
|
|
1329
1363
|
toAst(): ts.PropertyDeclaration;
|
|
1330
1364
|
}
|
|
1331
1365
|
//#endregion
|
|
1332
|
-
//#region src/ts-dsl/mixins/param.d.ts
|
|
1333
|
-
interface ParamMethods extends Node {
|
|
1334
|
-
/** Renders the parameters into an array of `ParameterDeclaration`s. */
|
|
1335
|
-
$params(): ReadonlyArray<ts.ParameterDeclaration>;
|
|
1336
|
-
/** Adds a parameter. */
|
|
1337
|
-
param(...args: Parameters<ParamCtor>): this;
|
|
1338
|
-
/** Adds multiple parameters. */
|
|
1339
|
-
params(...params: ReadonlyArray<MaybeTsDsl<ts.ParameterDeclaration>>): this;
|
|
1340
|
-
}
|
|
1341
|
-
//#endregion
|
|
1342
1366
|
//#region src/ts-dsl/decl/init.d.ts
|
|
1343
|
-
declare const Mixed$
|
|
1344
|
-
declare class InitTsDsl extends Mixed$
|
|
1367
|
+
declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
|
|
1368
|
+
declare class InitTsDsl extends Mixed$35 {
|
|
1345
1369
|
readonly '~dsl' = "InitTsDsl";
|
|
1346
1370
|
constructor(fn?: (i: InitTsDsl) => void);
|
|
1347
1371
|
analyze(ctx: AnalysisContext): void;
|
|
1348
1372
|
toAst(): ts.ConstructorDeclaration;
|
|
1349
1373
|
}
|
|
1350
1374
|
//#endregion
|
|
1351
|
-
//#region src/ts-dsl/mixins/type-returns.d.ts
|
|
1352
|
-
interface TypeReturnsMethods extends Node {
|
|
1353
|
-
/** Returns the return type node. */
|
|
1354
|
-
$returns(): ts.TypeNode | undefined;
|
|
1355
|
-
/** Sets the return type. */
|
|
1356
|
-
returns(type: NodeName | TypeTsDsl): this;
|
|
1357
|
-
}
|
|
1358
|
-
//#endregion
|
|
1359
|
-
//#region src/ts-dsl/decl/method.d.ts
|
|
1360
|
-
declare const Mixed$33: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.MethodDeclaration>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, OptionalMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
1361
|
-
declare class MethodTsDsl extends Mixed$33 {
|
|
1362
|
-
readonly '~dsl' = "MethodTsDsl";
|
|
1363
|
-
readonly nameSanitizer: (name: string) => string;
|
|
1364
|
-
constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
|
|
1365
|
-
analyze(ctx: AnalysisContext): void;
|
|
1366
|
-
toAst(): ts.MethodDeclaration;
|
|
1367
|
-
}
|
|
1368
|
-
//#endregion
|
|
1369
1375
|
//#region src/ts-dsl/decl/class.d.ts
|
|
1370
1376
|
type Body = Array<MaybeTsDsl<ts.ClassElement | ts.Node>>;
|
|
1371
|
-
declare const Mixed$
|
|
1372
|
-
declare class ClassTsDsl extends Mixed$
|
|
1377
|
+
declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
|
|
1378
|
+
declare class ClassTsDsl extends Mixed$34 {
|
|
1373
1379
|
readonly '~dsl' = "ClassTsDsl";
|
|
1374
1380
|
readonly nameSanitizer: (name: string) => string;
|
|
1375
1381
|
protected baseClass?: Ref<NodeName>;
|
|
@@ -1396,8 +1402,8 @@ declare class ClassTsDsl extends Mixed$32 {
|
|
|
1396
1402
|
}
|
|
1397
1403
|
//#endregion
|
|
1398
1404
|
//#region src/ts-dsl/decl/decorator.d.ts
|
|
1399
|
-
declare const Mixed$
|
|
1400
|
-
declare class DecoratorTsDsl extends Mixed$
|
|
1405
|
+
declare const Mixed$33: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
|
|
1406
|
+
declare class DecoratorTsDsl extends Mixed$33 {
|
|
1401
1407
|
readonly '~dsl' = "DecoratorTsDsl";
|
|
1402
1408
|
readonly nameSanitizer: (name: string) => string;
|
|
1403
1409
|
constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
|
|
@@ -1408,8 +1414,8 @@ declare class DecoratorTsDsl extends Mixed$31 {
|
|
|
1408
1414
|
//#region src/ts-dsl/decl/member.d.ts
|
|
1409
1415
|
type Value$2 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1410
1416
|
type ValueFn$1 = Value$2 | ((m: EnumMemberTsDsl) => void);
|
|
1411
|
-
declare const Mixed$
|
|
1412
|
-
declare class EnumMemberTsDsl extends Mixed$
|
|
1417
|
+
declare const Mixed$32: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
|
|
1418
|
+
declare class EnumMemberTsDsl extends Mixed$32 {
|
|
1413
1419
|
readonly '~dsl' = "EnumMemberTsDsl";
|
|
1414
1420
|
private _value?;
|
|
1415
1421
|
constructor(name: NodeName, value?: ValueFn$1);
|
|
@@ -1422,8 +1428,8 @@ declare class EnumMemberTsDsl extends Mixed$30 {
|
|
|
1422
1428
|
//#region src/ts-dsl/decl/enum.d.ts
|
|
1423
1429
|
type Value$1 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1424
1430
|
type ValueFn = Value$1 | ((m: EnumMemberTsDsl) => void);
|
|
1425
|
-
declare const Mixed$
|
|
1426
|
-
declare class EnumTsDsl extends Mixed$
|
|
1431
|
+
declare const Mixed$31: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
|
|
1432
|
+
declare class EnumTsDsl extends Mixed$31 {
|
|
1427
1433
|
readonly '~dsl' = "EnumTsDsl";
|
|
1428
1434
|
readonly nameSanitizer: (name: string) => string;
|
|
1429
1435
|
private _members;
|
|
@@ -1438,8 +1444,8 @@ declare class EnumTsDsl extends Mixed$29 {
|
|
|
1438
1444
|
//#endregion
|
|
1439
1445
|
//#region src/ts-dsl/decl/func.d.ts
|
|
1440
1446
|
type FuncMode = 'arrow' | 'decl' | 'expr';
|
|
1441
|
-
declare const Mixed$
|
|
1442
|
-
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$
|
|
1447
|
+
declare const Mixed$30: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
|
|
1448
|
+
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$30 {
|
|
1443
1449
|
readonly '~dsl' = "FuncTsDsl";
|
|
1444
1450
|
readonly nameSanitizer: (name: string) => string;
|
|
1445
1451
|
protected mode?: FuncMode;
|
|
@@ -1469,8 +1475,8 @@ declare const FuncTsDsl: {
|
|
|
1469
1475
|
type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
|
|
1470
1476
|
//#endregion
|
|
1471
1477
|
//#region src/ts-dsl/decl/getter.d.ts
|
|
1472
|
-
declare const Mixed$
|
|
1473
|
-
declare class GetterTsDsl extends Mixed$
|
|
1478
|
+
declare const Mixed$29: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.GetAccessorDeclaration>, TypeReturnsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
1479
|
+
declare class GetterTsDsl extends Mixed$29 {
|
|
1474
1480
|
readonly '~dsl' = "GetterTsDsl";
|
|
1475
1481
|
readonly nameSanitizer: (name: string) => string;
|
|
1476
1482
|
constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
|
|
@@ -1479,11 +1485,11 @@ declare class GetterTsDsl extends Mixed$27 {
|
|
|
1479
1485
|
}
|
|
1480
1486
|
//#endregion
|
|
1481
1487
|
//#region src/ts-dsl/decl/pattern.d.ts
|
|
1482
|
-
declare const Mixed$
|
|
1488
|
+
declare const Mixed$28: abstract new () => TsDsl<ts.BindingName>;
|
|
1483
1489
|
/**
|
|
1484
1490
|
* Builds binding patterns (e.g., `{ foo, bar }`, `[a, b, ...rest]`).
|
|
1485
1491
|
*/
|
|
1486
|
-
declare class PatternTsDsl extends Mixed$
|
|
1492
|
+
declare class PatternTsDsl extends Mixed$28 {
|
|
1487
1493
|
readonly '~dsl' = "PatternTsDsl";
|
|
1488
1494
|
protected pattern?: {
|
|
1489
1495
|
kind: 'array';
|
|
@@ -1517,8 +1523,8 @@ declare class PatternTsDsl extends Mixed$26 {
|
|
|
1517
1523
|
}
|
|
1518
1524
|
//#endregion
|
|
1519
1525
|
//#region src/ts-dsl/decl/setter.d.ts
|
|
1520
|
-
declare const Mixed$
|
|
1521
|
-
declare class SetterTsDsl extends Mixed$
|
|
1526
|
+
declare const Mixed$27: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.SetAccessorDeclaration>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
1527
|
+
declare class SetterTsDsl extends Mixed$27 {
|
|
1522
1528
|
readonly '~dsl' = "SetterTsDsl";
|
|
1523
1529
|
readonly nameSanitizer: (name: string) => string;
|
|
1524
1530
|
constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
|
|
@@ -1539,41 +1545,34 @@ interface LayoutMethods extends Node {
|
|
|
1539
1545
|
}
|
|
1540
1546
|
//#endregion
|
|
1541
1547
|
//#region src/ts-dsl/expr/array.d.ts
|
|
1542
|
-
|
|
1543
|
-
declare
|
|
1548
|
+
type ArrayExpr = string | number | boolean | MaybeTsDsl<ts.Expression>;
|
|
1549
|
+
declare const Mixed$26: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, SpreadMethods>, LayoutMethods>, ExprMethods>, AsMethods>;
|
|
1550
|
+
declare class ArrayTsDsl extends Mixed$26 {
|
|
1544
1551
|
readonly '~dsl' = "ArrayTsDsl";
|
|
1545
|
-
protected _elements: Array<
|
|
1546
|
-
|
|
1547
|
-
kind: 'element';
|
|
1548
|
-
} | {
|
|
1549
|
-
expr: MaybeTsDsl<ts.Expression>;
|
|
1550
|
-
kind: 'spread';
|
|
1551
|
-
}>;
|
|
1552
|
-
constructor(...exprs: Array<string | number | boolean | MaybeTsDsl<ts.Expression>>);
|
|
1552
|
+
protected _elements: Array<MaybeTsDsl<ts.Expression>>;
|
|
1553
|
+
constructor(...exprs: Array<ArrayExpr>);
|
|
1553
1554
|
analyze(ctx: AnalysisContext): void;
|
|
1554
1555
|
/** Adds a single array element. */
|
|
1555
|
-
element(expr:
|
|
1556
|
+
element(expr: ArrayExpr): this;
|
|
1556
1557
|
/** Adds multiple array elements. */
|
|
1557
|
-
elements(...exprs: ReadonlyArray<
|
|
1558
|
-
/** Adds a spread element (`...expr`). */
|
|
1559
|
-
spread(expr: MaybeTsDsl<ts.Expression>): this;
|
|
1558
|
+
elements(...exprs: ReadonlyArray<ArrayExpr>): this;
|
|
1560
1559
|
toAst(): ts.ArrayLiteralExpression;
|
|
1561
1560
|
}
|
|
1562
1561
|
//#endregion
|
|
1563
1562
|
//#region src/ts-dsl/expr/expr.d.ts
|
|
1564
1563
|
type Id = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1565
|
-
declare const Mixed$
|
|
1566
|
-
declare class ExprTsDsl extends Mixed$
|
|
1564
|
+
declare const Mixed$25: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, SpreadMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
1565
|
+
declare class ExprTsDsl extends Mixed$25 {
|
|
1567
1566
|
readonly '~dsl' = "ExprTsDsl";
|
|
1568
1567
|
protected _exprInput: Ref<Id>;
|
|
1569
1568
|
constructor(id: Id);
|
|
1570
1569
|
analyze(ctx: AnalysisContext): void;
|
|
1571
|
-
toAst():
|
|
1570
|
+
toAst(): any;
|
|
1572
1571
|
}
|
|
1573
1572
|
//#endregion
|
|
1574
1573
|
//#region src/ts-dsl/expr/id.d.ts
|
|
1575
|
-
declare const Mixed$
|
|
1576
|
-
declare class IdTsDsl extends Mixed$
|
|
1574
|
+
declare const Mixed$24: abstract new () => TsDsl<ts.Identifier>;
|
|
1575
|
+
declare class IdTsDsl extends Mixed$24 {
|
|
1577
1576
|
readonly '~dsl' = "IdTsDsl";
|
|
1578
1577
|
constructor(name: string);
|
|
1579
1578
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1630,13 +1629,13 @@ declare const ts$1: {
|
|
|
1630
1629
|
};
|
|
1631
1630
|
//#endregion
|
|
1632
1631
|
//#region src/ts-dsl/expr/literal.d.ts
|
|
1633
|
-
declare const Mixed$
|
|
1634
|
-
declare class LiteralTsDsl extends Mixed$
|
|
1632
|
+
declare const Mixed$23: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral>, AsMethods>;
|
|
1633
|
+
declare class LiteralTsDsl extends Mixed$23 {
|
|
1635
1634
|
readonly '~dsl' = "LiteralTsDsl";
|
|
1636
1635
|
protected value: ts$1.LiteralValue;
|
|
1637
1636
|
constructor(value: ts$1.LiteralValue);
|
|
1638
1637
|
analyze(ctx: AnalysisContext): void;
|
|
1639
|
-
toAst():
|
|
1638
|
+
toAst(): any;
|
|
1640
1639
|
}
|
|
1641
1640
|
//#endregion
|
|
1642
1641
|
//#region src/ts-dsl/mixins/hint.d.ts
|
|
@@ -1646,15 +1645,17 @@ interface HintMethods extends Node {
|
|
|
1646
1645
|
}
|
|
1647
1646
|
//#endregion
|
|
1648
1647
|
//#region src/ts-dsl/expr/prop.d.ts
|
|
1649
|
-
type
|
|
1650
|
-
type
|
|
1651
|
-
type ObjectPropKind = 'computed' | 'getter' | 'prop' | 'setter' | 'spread';
|
|
1648
|
+
type ObjectPropKind = 'computed' | 'getter' | 'method' | 'prop' | 'setter' | 'spread';
|
|
1649
|
+
type ObjectPropValue = NodeName | MaybeTsDsl<ts.Expression | ts.Statement> | ReturnType<typeof f.method>;
|
|
1652
1650
|
type Meta = {
|
|
1653
1651
|
kind: 'computed';
|
|
1654
1652
|
name: string;
|
|
1655
1653
|
} | {
|
|
1656
1654
|
kind: 'getter';
|
|
1657
1655
|
name: string;
|
|
1656
|
+
} | {
|
|
1657
|
+
kind: 'method';
|
|
1658
|
+
name: string;
|
|
1658
1659
|
} | {
|
|
1659
1660
|
kind: 'prop';
|
|
1660
1661
|
name: string;
|
|
@@ -1665,20 +1666,20 @@ type Meta = {
|
|
|
1665
1666
|
kind: 'spread';
|
|
1666
1667
|
name?: undefined;
|
|
1667
1668
|
};
|
|
1668
|
-
declare const Mixed$
|
|
1669
|
-
declare class ObjectPropTsDsl extends Mixed$
|
|
1669
|
+
declare const Mixed$22: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
|
|
1670
|
+
declare class ObjectPropTsDsl extends Mixed$22 {
|
|
1670
1671
|
readonly '~dsl' = "ObjectPropTsDsl";
|
|
1671
|
-
protected _value?: Ref<
|
|
1672
|
+
protected _value?: Ref<ObjectPropValue>;
|
|
1672
1673
|
protected _meta: Meta;
|
|
1673
1674
|
constructor(meta: Meta);
|
|
1674
|
-
get kind(): ObjectPropKind;
|
|
1675
|
-
get propName(): string | undefined;
|
|
1676
1675
|
analyze(ctx: AnalysisContext): void;
|
|
1677
1676
|
get isValid(): boolean;
|
|
1678
|
-
|
|
1679
|
-
|
|
1677
|
+
get kind(): ObjectPropKind;
|
|
1678
|
+
get propName(): string | undefined;
|
|
1679
|
+
value(value: ObjectPropValue): this;
|
|
1680
|
+
toAst(): any;
|
|
1680
1681
|
$validate(): asserts this is this & {
|
|
1681
|
-
_value:
|
|
1682
|
+
_value: ObjectPropValue;
|
|
1682
1683
|
kind: ObjectPropKind;
|
|
1683
1684
|
};
|
|
1684
1685
|
private missingRequiredCalls;
|
|
@@ -1687,41 +1688,41 @@ declare class ObjectPropTsDsl extends Mixed$20 {
|
|
|
1687
1688
|
//#region src/ts-dsl/expr/object.d.ts
|
|
1688
1689
|
type Expr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1689
1690
|
type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
declare const Mixed$19: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
|
|
1693
|
-
declare class ObjectTsDsl extends Mixed$19 {
|
|
1691
|
+
declare const Mixed$21: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
|
|
1692
|
+
declare class ObjectTsDsl extends Mixed$21 {
|
|
1694
1693
|
readonly '~dsl' = "ObjectTsDsl";
|
|
1695
1694
|
protected _props: Map<string, ObjectPropTsDsl>;
|
|
1696
1695
|
protected _spreadCounter: number;
|
|
1697
|
-
constructor(...props: Array<ObjectPropTsDsl>);
|
|
1696
|
+
constructor(...props: Array<ObjectPropTsDsl> | [(o: ObjectTsDsl) => void]);
|
|
1698
1697
|
analyze(ctx: AnalysisContext): void;
|
|
1699
1698
|
/** Returns composite key for the property. */
|
|
1700
1699
|
private _propKey;
|
|
1701
1700
|
/** Adds a computed property (e.g., `{ [expr]: value }`), or removes if null. */
|
|
1702
|
-
computed(name: string, expr:
|
|
1701
|
+
computed(name: string, expr: Expr | null): this;
|
|
1703
1702
|
/** Adds a getter property (e.g., `{ get foo() { ... } }`), or removes if null. */
|
|
1704
|
-
getter(name: string, stmt:
|
|
1703
|
+
getter(name: string, stmt: Stmt | null): this;
|
|
1705
1704
|
/** Returns true if object has at least one property or spread. */
|
|
1706
1705
|
hasProps(): boolean;
|
|
1707
1706
|
/** Returns true if object has no properties or spreads. */
|
|
1708
1707
|
get isEmpty(): boolean;
|
|
1708
|
+
/** Adds a method property (e.g., `{ foo() { ... } }`), or removes if null. */
|
|
1709
|
+
method(name: string, fn: ((m: MethodTsDsl) => void) | null): this;
|
|
1709
1710
|
/** Adds a property assignment, or removes if null. */
|
|
1710
|
-
prop(name: string, expr:
|
|
1711
|
+
prop(name: string, expr: Expr | null): this;
|
|
1711
1712
|
/** Adds multiple properties. */
|
|
1712
1713
|
props(...props: ReadonlyArray<ObjectPropTsDsl>): this;
|
|
1713
1714
|
/** Adds a setter property (e.g., `{ set foo(v) { ... } }`), or removes if null. */
|
|
1714
|
-
setter(name: string, stmt:
|
|
1715
|
+
setter(name: string, stmt: Stmt | null): this;
|
|
1715
1716
|
/** Adds a spread property (e.g., `{ ...options }`). */
|
|
1716
|
-
spread(expr:
|
|
1717
|
+
spread(expr: Expr): this;
|
|
1717
1718
|
toAst(): ts.ObjectLiteralExpression;
|
|
1718
1719
|
}
|
|
1719
1720
|
//#endregion
|
|
1720
1721
|
//#region src/ts-dsl/expr/regexp.d.ts
|
|
1721
1722
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
|
|
1722
1723
|
type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
|
|
1723
|
-
declare const Mixed$
|
|
1724
|
-
declare class RegExpTsDsl extends Mixed$
|
|
1724
|
+
declare const Mixed$20: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
|
|
1725
|
+
declare class RegExpTsDsl extends Mixed$20 {
|
|
1725
1726
|
readonly '~dsl' = "RegExpTsDsl";
|
|
1726
1727
|
protected pattern: string;
|
|
1727
1728
|
protected flags?: RegexFlags;
|
|
@@ -1730,9 +1731,21 @@ declare class RegExpTsDsl extends Mixed$18 {
|
|
|
1730
1731
|
toAst(): ts.RegularExpressionLiteral;
|
|
1731
1732
|
}
|
|
1732
1733
|
//#endregion
|
|
1734
|
+
//#region src/ts-dsl/expr/template.d.ts
|
|
1735
|
+
type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1736
|
+
declare const Mixed$19: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
|
|
1737
|
+
declare class TemplateTsDsl extends Mixed$19 {
|
|
1738
|
+
readonly '~dsl' = "TemplateTsDsl";
|
|
1739
|
+
protected parts: Array<Ref<TemplatePart>>;
|
|
1740
|
+
constructor(value?: TemplatePart);
|
|
1741
|
+
analyze(ctx: AnalysisContext): void;
|
|
1742
|
+
add(value: TemplatePart): this;
|
|
1743
|
+
toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
|
|
1744
|
+
}
|
|
1745
|
+
//#endregion
|
|
1733
1746
|
//#region src/ts-dsl/expr/ternary.d.ts
|
|
1734
|
-
declare const Mixed$
|
|
1735
|
-
declare class TernaryTsDsl extends Mixed$
|
|
1747
|
+
declare const Mixed$18: abstract new () => TsDsl<ts.ConditionalExpression>;
|
|
1748
|
+
declare class TernaryTsDsl extends Mixed$18 {
|
|
1736
1749
|
readonly '~dsl' = "TernaryTsDsl";
|
|
1737
1750
|
protected _condition?: string | MaybeTsDsl<ts.Expression>;
|
|
1738
1751
|
protected _then?: string | MaybeTsDsl<ts.Expression>;
|
|
@@ -1757,12 +1770,12 @@ declare class TernaryTsDsl extends Mixed$17 {
|
|
|
1757
1770
|
declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
|
|
1758
1771
|
readonly '~dsl' = "NewlineTsDsl";
|
|
1759
1772
|
analyze(ctx: AnalysisContext): void;
|
|
1760
|
-
toAst():
|
|
1773
|
+
toAst(): any;
|
|
1761
1774
|
}
|
|
1762
1775
|
//#endregion
|
|
1763
1776
|
//#region src/ts-dsl/stmt/block.d.ts
|
|
1764
|
-
declare const Mixed$
|
|
1765
|
-
declare class BlockTsDsl extends Mixed$
|
|
1777
|
+
declare const Mixed$17: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
|
|
1778
|
+
declare class BlockTsDsl extends Mixed$17 {
|
|
1766
1779
|
readonly '~dsl' = "BlockTsDsl";
|
|
1767
1780
|
constructor(...items: Array<DoExpr>);
|
|
1768
1781
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1770,8 +1783,8 @@ declare class BlockTsDsl extends Mixed$16 {
|
|
|
1770
1783
|
}
|
|
1771
1784
|
//#endregion
|
|
1772
1785
|
//#region src/ts-dsl/stmt/var.d.ts
|
|
1773
|
-
declare const Mixed$
|
|
1774
|
-
declare class VarTsDsl extends Mixed$
|
|
1786
|
+
declare const Mixed$16: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
|
|
1787
|
+
declare class VarTsDsl extends Mixed$16 {
|
|
1775
1788
|
readonly '~dsl' = "VarTsDsl";
|
|
1776
1789
|
readonly nameSanitizer: (name: string) => string;
|
|
1777
1790
|
protected kind: ts.NodeFlags;
|
|
@@ -1783,7 +1796,7 @@ declare class VarTsDsl extends Mixed$15 {
|
|
|
1783
1796
|
const(): this;
|
|
1784
1797
|
let(): this;
|
|
1785
1798
|
/** Sets the variable type. */
|
|
1786
|
-
type(
|
|
1799
|
+
type(node: NodeName | TypeTsDsl): this;
|
|
1787
1800
|
var(): this;
|
|
1788
1801
|
toAst(): ts.VariableStatement;
|
|
1789
1802
|
$validate(): asserts this;
|
|
@@ -1794,8 +1807,8 @@ declare class VarTsDsl extends Mixed$15 {
|
|
|
1794
1807
|
type ForMode = 'for' | 'in' | 'of';
|
|
1795
1808
|
type ForCondition = MaybeTsDsl<ts.Expression>;
|
|
1796
1809
|
type ForIterable = MaybeTsDsl<ts.Expression>;
|
|
1797
|
-
declare const Mixed$
|
|
1798
|
-
declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$
|
|
1810
|
+
declare const Mixed$15: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ForStatement>, LayoutMethods>, DoMethods>;
|
|
1811
|
+
declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$15 {
|
|
1799
1812
|
readonly '~dsl' = "ForTsDsl";
|
|
1800
1813
|
protected _await?: boolean;
|
|
1801
1814
|
protected _condition?: ForCondition;
|
|
@@ -1836,6 +1849,26 @@ declare const ForTsDsl: {
|
|
|
1836
1849
|
} & typeof ImplForTsDsl;
|
|
1837
1850
|
type ForTsDsl<M extends ForMode = 'for'> = ImplForTsDsl<M>;
|
|
1838
1851
|
//#endregion
|
|
1852
|
+
//#region src/ts-dsl/stmt/if.d.ts
|
|
1853
|
+
type IfCondition = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1854
|
+
declare const Mixed$14: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
|
|
1855
|
+
declare class IfTsDsl extends Mixed$14 {
|
|
1856
|
+
readonly '~dsl' = "IfTsDsl";
|
|
1857
|
+
protected _condition?: IfCondition;
|
|
1858
|
+
protected _else?: Array<DoExpr>;
|
|
1859
|
+
constructor(condition?: IfCondition);
|
|
1860
|
+
analyze(ctx: AnalysisContext): void;
|
|
1861
|
+
/** Returns true when all required builder calls are present. */
|
|
1862
|
+
get isValid(): boolean;
|
|
1863
|
+
condition(condition: IfCondition): this;
|
|
1864
|
+
otherwise(...items: Array<DoExpr>): this;
|
|
1865
|
+
toAst(): ts.IfStatement;
|
|
1866
|
+
$validate(): asserts this is this & {
|
|
1867
|
+
_condition: IfCondition;
|
|
1868
|
+
};
|
|
1869
|
+
private missingRequiredCalls;
|
|
1870
|
+
}
|
|
1871
|
+
//#endregion
|
|
1839
1872
|
//#region src/ts-dsl/stmt/stmt.d.ts
|
|
1840
1873
|
declare const Mixed$13: abstract new () => TsDsl<ts.Statement>;
|
|
1841
1874
|
declare class StmtTsDsl extends Mixed$13 {
|
|
@@ -2101,14 +2134,15 @@ declare class TypeTemplateTsDsl extends Mixed$1 {
|
|
|
2101
2134
|
}
|
|
2102
2135
|
//#endregion
|
|
2103
2136
|
//#region src/ts-dsl/type/tuple.d.ts
|
|
2137
|
+
type TupleElement = string | ts.TypeNode | TypeTsDsl;
|
|
2104
2138
|
declare const Mixed: abstract new () => TsDsl<ts.TupleTypeNode>;
|
|
2105
2139
|
declare class TypeTupleTsDsl extends Mixed {
|
|
2106
2140
|
readonly '~dsl' = "TypeTupleTsDsl";
|
|
2107
2141
|
scope: NodeScope;
|
|
2108
|
-
protected _elements: Array<
|
|
2109
|
-
constructor(...nodes: Array<
|
|
2142
|
+
protected _elements: Array<TupleElement>;
|
|
2143
|
+
constructor(...nodes: Array<TupleElement>);
|
|
2110
2144
|
analyze(ctx: AnalysisContext): void;
|
|
2111
|
-
elements(...types: Array<
|
|
2145
|
+
elements(...types: Array<TupleElement>): this;
|
|
2112
2146
|
toAst(): ts.TupleTypeNode;
|
|
2113
2147
|
}
|
|
2114
2148
|
//#endregion
|
|
@@ -2233,22 +2267,22 @@ declare const reserved: {
|
|
|
2233
2267
|
};
|
|
2234
2268
|
//#endregion
|
|
2235
2269
|
//#region src/ts-dsl/index.d.ts
|
|
2236
|
-
declare const $: ((id:
|
|
2270
|
+
declare const $: ((id: any) => ExprTsDsl) & {
|
|
2237
2271
|
/** Creates an array literal expression (e.g., `[1, 2, 3]`). */array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => ArrayTsDsl; /** Creates an `as` type assertion expression (e.g., `value as Type`). */
|
|
2238
|
-
as: (expr:
|
|
2239
|
-
attr: (left:
|
|
2240
|
-
await: (expr:
|
|
2241
|
-
binary: (base:
|
|
2272
|
+
as: (expr: any, type: any) => AsTsDsl; /** Creates a property access expression (e.g., `obj.foo`). */
|
|
2273
|
+
attr: (left: any, right: NodeName) => AttrTsDsl; /** Creates an await expression (e.g., `await promise`). */
|
|
2274
|
+
await: (expr: any) => AwaitTsDsl; /** Creates a binary expression (e.g., `a + b`). */
|
|
2275
|
+
binary: (base: any, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: any) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
|
|
2242
2276
|
block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g., `fn(arg)`). */
|
|
2243
|
-
call: (callee:
|
|
2244
|
-
class: (name:
|
|
2245
|
-
const: (name?:
|
|
2277
|
+
call: (callee: any, ...args: any[]) => CallTsDsl; /** Creates a class declaration or expression. */
|
|
2278
|
+
class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2279
|
+
const: (name?: any) => VarTsDsl; /** Creates a postfix decrement expression (`i--`). */
|
|
2246
2280
|
dec: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates a decorator expression (e.g., `@decorator`). */
|
|
2247
|
-
decorator: (name:
|
|
2281
|
+
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2248
2282
|
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
|
|
2249
|
-
enum: (name:
|
|
2250
|
-
expr: (id:
|
|
2251
|
-
field: (name:
|
|
2283
|
+
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2284
|
+
expr: (id: any) => ExprTsDsl; /** Creates a field declaration in a class or object. */
|
|
2285
|
+
field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Creates a for loop (for, for...of, for...in, or for await...of). */
|
|
2252
2286
|
for: {
|
|
2253
2287
|
(variableOrInit?: VarTsDsl): ForTsDsl<ForMode>;
|
|
2254
2288
|
(variableOrInit: VarTsDsl, condition: ForCondition, iterableOrUpdate?: ForIterable): ForTsDsl<"for">;
|
|
@@ -2260,28 +2294,28 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
|
|
|
2260
2294
|
func: {
|
|
2261
2295
|
(): FuncTsDsl<"arrow">;
|
|
2262
2296
|
(fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
|
|
2263
|
-
(name:
|
|
2264
|
-
(name:
|
|
2265
|
-
(name?:
|
|
2297
|
+
(name: NodeName): FuncTsDsl<"decl">;
|
|
2298
|
+
(name: NodeName, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
2299
|
+
(name?: NodeName, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
|
|
2266
2300
|
}; /** Creates a getter method declaration. */
|
|
2267
|
-
getter: (name:
|
|
2301
|
+
getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2268
2302
|
hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g., `foo`). */
|
|
2269
2303
|
id: (name: string) => IdTsDsl; /** Creates an if statement. */
|
|
2270
|
-
if: (condition?:
|
|
2304
|
+
if: (condition?: any) => IfTsDsl; /** Creates a postfix increment expression (`i++`). */
|
|
2271
2305
|
inc: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates an initialization block or statement. */
|
|
2272
2306
|
init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
|
|
2273
2307
|
lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
|
|
2274
|
-
let: (name?:
|
|
2308
|
+
let: (name?: any) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
|
|
2275
2309
|
literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
|
|
2276
|
-
member: (name:
|
|
2277
|
-
method: (name:
|
|
2310
|
+
member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2311
|
+
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2278
2312
|
neg: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g., `new ClassName()`). */
|
|
2279
|
-
new: (expr:
|
|
2313
|
+
new: (expr: any, ...args: any[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
|
|
2280
2314
|
newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
|
|
2281
2315
|
not: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
|
|
2282
2316
|
note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
|
|
2283
2317
|
object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
|
|
2284
|
-
param: (name:
|
|
2318
|
+
param: (name: any, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
|
|
2285
2319
|
pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g., `-x`, `!x`, `~x`). */
|
|
2286
2320
|
prefix: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g., `{ foo: bar }`). */
|
|
2287
2321
|
prop: (meta: {
|
|
@@ -2290,6 +2324,9 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
|
|
|
2290
2324
|
} | {
|
|
2291
2325
|
kind: "getter";
|
|
2292
2326
|
name: string;
|
|
2327
|
+
} | {
|
|
2328
|
+
kind: "method";
|
|
2329
|
+
name: string;
|
|
2293
2330
|
} | {
|
|
2294
2331
|
kind: "prop";
|
|
2295
2332
|
name: string;
|
|
@@ -2301,34 +2338,36 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
|
|
|
2301
2338
|
name?: undefined;
|
|
2302
2339
|
}) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g., `/foo/gi`). */
|
|
2303
2340
|
regexp: (pattern: string, flags?: ("" | "g" | "i" | "m" | "s" | "u" | "y" | "uy" | "yu" | "su" | "sy" | "suy" | "syu" | "ys" | "us" | "usy" | "uys" | "ysu" | "yus" | "ms" | "mu" | "my" | "muy" | "myu" | "msu" | "msy" | "msuy" | "msyu" | "mys" | "mus" | "musy" | "muys" | "mysu" | "myus" | "ym" | "um" | "umy" | "uym" | "ymu" | "yum" | "sm" | "smu" | "smy" | "smuy" | "smyu" | "sym" | "sum" | "sumy" | "suym" | "symu" | "syum" | "yms" | "ysm" | "ums" | "umsy" | "umys" | "usm" | "usmy" | "usym" | "uyms" | "uysm" | "ymsu" | "ymus" | "ysmu" | "ysum" | "yums" | "yusm" | "im" | "is" | "iu" | "iy" | "iuy" | "iyu" | "isu" | "isy" | "isuy" | "isyu" | "iys" | "ius" | "iusy" | "iuys" | "iysu" | "iyus" | "ims" | "imu" | "imy" | "imuy" | "imyu" | "imsu" | "imsy" | "imsuy" | "imsyu" | "imys" | "imus" | "imusy" | "imuys" | "imysu" | "imyus" | "iym" | "ium" | "iumy" | "iuym" | "iymu" | "iyum" | "ism" | "ismu" | "ismy" | "ismuy" | "ismyu" | "isym" | "isum" | "isumy" | "isuym" | "isymu" | "isyum" | "iyms" | "iysm" | "iums" | "iumsy" | "iumys" | "iusm" | "iusmy" | "iusym" | "iuyms" | "iuysm" | "iymsu" | "iymus" | "iysmu" | "iysum" | "iyums" | "iyusm" | "yi" | "ui" | "uiy" | "uyi" | "yiu" | "yui" | "si" | "siu" | "siy" | "siuy" | "siyu" | "syi" | "sui" | "suiy" | "suyi" | "syiu" | "syui" | "yis" | "ysi" | "uis" | "uisy" | "uiys" | "usi" | "usiy" | "usyi" | "uyis" | "uysi" | "yisu" | "yius" | "ysiu" | "ysui" | "yuis" | "yusi" | "mi" | "mis" | "miu" | "miy" | "miuy" | "miyu" | "misu" | "misy" | "misuy" | "misyu" | "miys" | "mius" | "miusy" | "miuys" | "miysu" | "miyus" | "myi" | "mui" | "muiy" | "muyi" | "myiu" | "myui" | "msi" | "msiu" | "msiy" | "msiuy" | "msiyu" | "msyi" | "msui" | "msuiy" | "msuyi" | "msyiu" | "msyui" | "myis" | "mysi" | "muis" | "muisy" | "muiys" | "musi" | "musiy" | "musyi" | "muyis" | "muysi" | "myisu" | "myius" | "mysiu" | "mysui" | "myuis" | "myusi" | "yim" | "ymi" | "uim" | "uimy" | "uiym" | "umi" | "umiy" | "umyi" | "uyim" | "uymi" | "yimu" | "yium" | "ymiu" | "ymui" | "yuim" | "yumi" | "sim" | "simu" | "simy" | "simuy" | "simyu" | "siym" | "sium" | "siumy" | "siuym" | "siymu" | "siyum" | "smi" | "smiu" | "smiy" | "smiuy" | "smiyu" | "smyi" | "smui" | "smuiy" | "smuyi" | "smyiu" | "smyui" | "syim" | "symi" | "suim" | "suimy" | "suiym" | "sumi" | "sumiy" | "sumyi" | "suyim" | "suymi" | "syimu" | "syium" | "symiu" | "symui" | "syuim" | "syumi" | "yims" | "yism" | "ymis" | "ymsi" | "ysim" | "ysmi" | "uims" | "uimsy" | "uimys" | "uism" | "uismy" | "uisym" | "uiyms" | "uiysm" | "umis" | "umisy" | "umiys" | "umsi" | "umsiy" | "umsyi" | "umyis" | "umysi" | "usim" | "usimy" | "usiym" | "usmi" | "usmiy" | "usmyi" | "usyim" | "usymi" | "uyims" | "uyism" | "uymis" | "uymsi" | "uysim" | "uysmi" | "yimsu" | "yimus" | "yismu" | "yisum" | "yiums" | "yiusm" | "ymisu" | "ymius" | "ymsiu" | "ymsui" | "ymuis" | "ymusi" | "ysimu" | "ysium" | "ysmiu" | "ysmui" | "ysuim" | "ysumi" | "yuims" | "yuism" | "yumis" | "yumsi" | "yusim" | "yusmi" | "gi" | "gm" | "gs" | "gu" | "gy" | "guy" | "gyu" | "gsu" | "gsy" | "gsuy" | "gsyu" | "gys" | "gus" | "gusy" | "guys" | "gysu" | "gyus" | "gms" | "gmu" | "gmy" | "gmuy" | "gmyu" | "gmsu" | "gmsy" | "gmsuy" | "gmsyu" | "gmys" | "gmus" | "gmusy" | "gmuys" | "gmysu" | "gmyus" | "gym" | "gum" | "gumy" | "guym" | "gymu" | "gyum" | "gsm" | "gsmu" | "gsmy" | "gsmuy" | "gsmyu" | "gsym" | "gsum" | "gsumy" | "gsuym" | "gsymu" | "gsyum" | "gyms" | "gysm" | "gums" | "gumsy" | "gumys" | "gusm" | "gusmy" | "gusym" | "guyms" | "guysm" | "gymsu" | "gymus" | "gysmu" | "gysum" | "gyums" | "gyusm" | "gim" | "gis" | "giu" | "giy" | "giuy" | "giyu" | "gisu" | "gisy" | "gisuy" | "gisyu" | "giys" | "gius" | "giusy" | "giuys" | "giysu" | "giyus" | "gims" | "gimu" | "gimy" | "gimuy" | "gimyu" | "gimsu" | "gimsy" | "gimsuy" | "gimsyu" | "gimys" | "gimus" | "gimusy" | "gimuys" | "gimysu" | "gimyus" | "giym" | "gium" | "giumy" | "giuym" | "giymu" | "giyum" | "gism" | "gismu" | "gismy" | "gismuy" | "gismyu" | "gisym" | "gisum" | "gisumy" | "gisuym" | "gisymu" | "gisyum" | "giyms" | "giysm" | "giums" | "giumsy" | "giumys" | "giusm" | "giusmy" | "giusym" | "giuyms" | "giuysm" | "giymsu" | "giymus" | "giysmu" | "giysum" | "giyums" | "giyusm" | "gyi" | "gui" | "guiy" | "guyi" | "gyiu" | "gyui" | "gsi" | "gsiu" | "gsiy" | "gsiuy" | "gsiyu" | "gsyi" | "gsui" | "gsuiy" | "gsuyi" | "gsyiu" | "gsyui" | "gyis" | "gysi" | "guis" | "guisy" | "guiys" | "gusi" | "gusiy" | "gusyi" | "guyis" | "guysi" | "gyisu" | "gyius" | "gysiu" | "gysui" | "gyuis" | "gyusi" | "gmi" | "gmis" | "gmiu" | "gmiy" | "gmiuy" | "gmiyu" | "gmisu" | "gmisy" | "gmisuy" | "gmisyu" | "gmiys" | "gmius" | "gmiusy" | "gmiuys" | "gmiysu" | "gmiyus" | "gmyi" | "gmui" | "gmuiy" | "gmuyi" | "gmyiu" | "gmyui" | "gmsi" | "gmsiu" | "gmsiy" | "gmsiuy" | "gmsiyu" | "gmsyi" | "gmsui" | "gmsuiy" | "gmsuyi" | "gmsyiu" | "gmsyui" | "gmyis" | "gmysi" | "gmuis" | "gmuisy" | "gmuiys" | "gmusi" | "gmusiy" | "gmusyi" | "gmuyis" | "gmuysi" | "gmyisu" | "gmyius" | "gmysiu" | "gmysui" | "gmyuis" | "gmyusi" | "gyim" | "gymi" | "guim" | "guimy" | "guiym" | "gumi" | "gumiy" | "gumyi" | "guyim" | "guymi" | "gyimu" | "gyium" | "gymiu" | "gymui" | "gyuim" | "gyumi" | "gsim" | "gsimu" | "gsimy" | "gsimuy" | "gsimyu" | "gsiym" | "gsium" | "gsiumy" | "gsiuym" | "gsiymu" | "gsiyum" | "gsmi" | "gsmiu" | "gsmiy" | "gsmiuy" | "gsmiyu" | "gsmyi" | "gsmui" | "gsmuiy" | "gsmuyi" | "gsmyiu" | "gsmyui" | "gsyim" | "gsymi" | "gsuim" | "gsuimy" | "gsuiym" | "gsumi" | "gsumiy" | "gsumyi" | "gsuyim" | "gsuymi" | "gsyimu" | "gsyium" | "gsymiu" | "gsymui" | "gsyuim" | "gsyumi" | "gyims" | "gyism" | "gymis" | "gymsi" | "gysim" | "gysmi" | "guims" | "guimsy" | "guimys" | "guism" | "guismy" | "guisym" | "guiyms" | "guiysm" | "gumis" | "gumisy" | "gumiys" | "gumsi" | "gumsiy" | "gumsyi" | "gumyis" | "gumysi" | "gusim" | "gusimy" | "gusiym" | "gusmi" | "gusmiy" | "gusmyi" | "gusyim" | "gusymi" | "guyims" | "guyism" | "guymis" | "guymsi" | "guysim" | "guysmi" | "gyimsu" | "gyimus" | "gyismu" | "gyisum" | "gyiums" | "gyiusm" | "gymisu" | "gymius" | "gymsiu" | "gymsui" | "gymuis" | "gymusi" | "gysimu" | "gysium" | "gysmiu" | "gysmui" | "gysuim" | "gysumi" | "gyuims" | "gyuism" | "gyumis" | "gyumsi" | "gyusim" | "gyusmi" | "yg" | "ug" | "ugy" | "uyg" | "ygu" | "yug" | "sg" | "sgu" | "sgy" | "sguy" | "sgyu" | "syg" | "sug" | "sugy" | "suyg" | "sygu" | "syug" | "ygs" | "ysg" | "ugs" | "ugsy" | "ugys" | "usg" | "usgy" | "usyg" | "uygs" | "uysg" | "ygsu" | "ygus" | "ysgu" | "ysug" | "yugs" | "yusg" | "mg" | "mgs" | "mgu" | "mgy" | "mguy" | "mgyu" | "mgsu" | "mgsy" | "mgsuy" | "mgsyu" | "mgys" | "mgus" | "mgusy" | "mguys" | "mgysu" | "mgyus" | "myg" | "mug" | "mugy" | "muyg" | "mygu" | "myug" | "msg" | "msgu" | "msgy" | "msguy" | "msgyu" | "msyg" | "msug" | "msugy" | "msuyg" | "msygu" | "msyug" | "mygs" | "mysg" | "mugs" | "mugsy" | "mugys" | "musg" | "musgy" | "musyg" | "muygs" | "muysg" | "mygsu" | "mygus" | "mysgu" | "mysug" | "myugs" | "myusg" | "ygm" | "ymg" | "ugm" | "ugmy" | "ugym" | "umg" | "umgy" | "umyg" | "uygm" | "uymg" | "ygmu" | "ygum" | "ymgu" | "ymug" | "yugm" | "yumg" | "sgm" | "sgmu" | "sgmy" | "sgmuy" | "sgmyu" | "sgym" | "sgum" | "sgumy" | "sguym" | "sgymu" | "sgyum" | "smg" | "smgu" | "smgy" | "smguy" | "smgyu" | "smyg" | "smug" | "smugy" | "smuyg" | "smygu" | "smyug" | "sygm" | "symg" | "sugm" | "sugmy" | "sugym" | "sumg" | "sumgy" | "sumyg" | "suygm" | "suymg" | "sygmu" | "sygum" | "symgu" | "symug" | "syugm" | "syumg" | "ygms" | "ygsm" | "ymgs" | "ymsg" | "ysgm" | "ysmg" | "ugms" | "ugmsy" | "ugmys" | "ugsm" | "ugsmy" | "ugsym" | "ugyms" | "ugysm" | "umgs" | "umgsy" | "umgys" | "umsg" | "umsgy" | "umsyg" | "umygs" | "umysg" | "usgm" | "usgmy" | "usgym" | "usmg" | "usmgy" | "usmyg" | "usygm" | "usymg" | "uygms" | "uygsm" | "uymgs" | "uymsg" | "uysgm" | "uysmg" | "ygmsu" | "ygmus" | "ygsmu" | "ygsum" | "ygums" | "ygusm" | "ymgsu" | "ymgus" | "ymsgu" | "ymsug" | "ymugs" | "ymusg" | "ysgmu" | "ysgum" | "ysmgu" | "ysmug" | "ysugm" | "ysumg" | "yugms" | "yugsm" | "yumgs" | "yumsg" | "yusgm" | "yusmg" | "ig" | "igm" | "igs" | "igu" | "igy" | "iguy" | "igyu" | "igsu" | "igsy" | "igsuy" | "igsyu" | "igys" | "igus" | "igusy" | "iguys" | "igysu" | "igyus" | "igms" | "igmu" | "igmy" | "igmuy" | "igmyu" | "igmsu" | "igmsy" | "igmsuy" | "igmsyu" | "igmys" | "igmus" | "igmusy" | "igmuys" | "igmysu" | "igmyus" | "igym" | "igum" | "igumy" | "iguym" | "igymu" | "igyum" | "igsm" | "igsmu" | "igsmy" | "igsmuy" | "igsmyu" | "igsym" | "igsum" | "igsumy" | "igsuym" | "igsymu" | "igsyum" | "igyms" | "igysm" | "igums" | "igumsy" | "igumys" | "igusm" | "igusmy" | "igusym" | "iguyms" | "iguysm" | "igymsu" | "igymus" | "igysmu" | "igysum" | "igyums" | "igyusm" | "iyg" | "iug" | "iugy" | "iuyg" | "iygu" | "iyug" | "isg" | "isgu" | "isgy" | "isguy" | "isgyu" | "isyg" | "isug" | "isugy" | "isuyg" | "isygu" | "isyug" | "iygs" | "iysg" | "iugs" | "iugsy" | "iugys" | "iusg" | "iusgy" | "iusyg" | "iuygs" | "iuysg" | "iygsu" | "iygus" | "iysgu" | "iysug" | "iyugs" | "iyusg" | "img" | "imgs" | "imgu" | "imgy" | "imguy" | "imgyu" | "imgsu" | "imgsy" | "imgsuy" | "imgsyu" | "imgys" | "imgus" | "imgusy" | "imguys" | "imgysu" | "imgyus" | "imyg" | "imug" | "imugy" | "imuyg" | "imygu" | "imyug" | "imsg" | "imsgu" | "imsgy" | "imsguy" | "imsgyu" | "imsyg" | "imsug" | "imsugy" | "imsuyg" | "imsygu" | "imsyug" | "imygs" | "imysg" | "imugs" | "imugsy" | "imugys" | "imusg" | "imusgy" | "imusyg" | "imuygs" | "imuysg" | "imygsu" | "imygus" | "imysgu" | "imysug" | "imyugs" | "imyusg" | "iygm" | "iymg" | "iugm" | "iugmy" | "iugym" | "iumg" | "iumgy" | "iumyg" | "iuygm" | "iuymg" | "iygmu" | "iygum" | "iymgu" | "iymug" | "iyugm" | "iyumg" | "isgm" | "isgmu" | "isgmy" | "isgmuy" | "isgmyu" | "isgym" | "isgum" | "isgumy" | "isguym" | "isgymu" | "isgyum" | "ismg" | "ismgu" | "ismgy" | "ismguy" | "ismgyu" | "ismyg" | "ismug" | "ismugy" | "ismuyg" | "ismygu" | "ismyug" | "isygm" | "isymg" | "isugm" | "isugmy" | "isugym" | "isumg" | "isumgy" | "isumyg" | "isuygm" | "isuymg" | "isygmu" | "isygum" | "isymgu" | "isymug" | "isyugm" | "isyumg" | "iygms" | "iygsm" | "iymgs" | "iymsg" | "iysgm" | "iysmg" | "iugms" | "iugmsy" | "iugmys" | "iugsm" | "iugsmy" | "iugsym" | "iugyms" | "iugysm" | "iumgs" | "iumgsy" | "iumgys" | "iumsg" | "iumsgy" | "iumsyg" | "iumygs" | "iumysg" | "iusgm" | "iusgmy" | "iusgym" | "iusmg" | "iusmgy" | "iusmyg" | "iusygm" | "iusymg" | "iuygms" | "iuygsm" | "iuymgs" | "iuymsg" | "iuysgm" | "iuysmg" | "iygmsu" | "iygmus" | "iygsmu" | "iygsum" | "iygums" | "iygusm" | "iymgsu" | "iymgus" | "iymsgu" | "iymsug" | "iymugs" | "iymusg" | "iysgmu" | "iysgum" | "iysmgu" | "iysmug" | "iysugm" | "iysumg" | "iyugms" | "iyugsm" | "iyumgs" | "iyumsg" | "iyusgm" | "iyusmg" | "ygi" | "yig" | "ugi" | "ugiy" | "ugyi" | "uig" | "uigy" | "uiyg" | "uygi" | "uyig" | "ygiu" | "ygui" | "yigu" | "yiug" | "yugi" | "yuig" | "sgi" | "sgiu" | "sgiy" | "sgiuy" | "sgiyu" | "sgyi" | "sgui" | "sguiy" | "sguyi" | "sgyiu" | "sgyui" | "sig" | "sigu" | "sigy" | "siguy" | "sigyu" | "siyg" | "siug" | "siugy" | "siuyg" | "siygu" | "siyug" | "sygi" | "syig" | "sugi" | "sugiy" | "sugyi" | "suig" | "suigy" | "suiyg" | "suygi" | "suyig" | "sygiu" | "sygui" | "syigu" | "syiug" | "syugi" | "syuig" | "ygis" | "ygsi" | "yigs" | "yisg" | "ysgi" | "ysig" | "ugis" | "ugisy" | "ugiys" | "ugsi" | "ugsiy" | "ugsyi" | "ugyis" | "ugysi" | "uigs" | "uigsy" | "uigys" | "uisg" | "uisgy" | "uisyg" | "uiygs" | "uiysg" | "usgi" | "usgiy" | "usgyi" | "usig" | "usigy" | "usiyg" | "usygi" | "usyig" | "uygis" | "uygsi" | "uyigs" | "uyisg" | "uysgi" | "uysig" | "ygisu" | "ygius" | "ygsiu" | "ygsui" | "yguis" | "ygusi" | "yigsu" | "yigus" | "yisgu" | "yisug" | "yiugs" | "yiusg" | "ysgiu" | "ysgui" | "ysigu" | "ysiug" | "ysugi" | "ysuig" | "yugis" | "yugsi" | "yuigs" | "yuisg" | "yusgi" | "yusig" | "mgi" | "mgis" | "mgiu" | "mgiy" | "mgiuy" | "mgiyu" | "mgisu" | "mgisy" | "mgisuy" | "mgisyu" | "mgiys" | "mgius" | "mgiusy" | "mgiuys" | "mgiysu" | "mgiyus" | "mgyi" | "mgui" | "mguiy" | "mguyi" | "mgyiu" | "mgyui" | "mgsi" | "mgsiu" | "mgsiy" | "mgsiuy" | "mgsiyu" | "mgsyi" | "mgsui" | "mgsuiy" | "mgsuyi" | "mgsyiu" | "mgsyui" | "mgyis" | "mgysi" | "mguis" | "mguisy" | "mguiys" | "mgusi" | "mgusiy" | "mgusyi" | "mguyis" | "mguysi" | "mgyisu" | "mgyius" | "mgysiu" | "mgysui" | "mgyuis" | "mgyusi" | "mig" | "migs" | "migu" | "migy" | "miguy" | "migyu" | "migsu" | "migsy" | "migsuy" | "migsyu" | "migys" | "migus" | "migusy" | "miguys" | "migysu" | "migyus" | "miyg" | "miug" | "miugy" | "miuyg" | "miygu" | "miyug" | "misg" | "misgu" | "misgy" | "misguy" | "misgyu" | "misyg" | "misug" | "misugy" | "misuyg" | "misygu" | "misyug" | "miygs" | "miysg" | "miugs" | "miugsy" | "miugys" | "miusg" | "miusgy" | "miusyg" | "miuygs" | "miuysg" | "miygsu" | "miygus" | "miysgu" | "miysug" | "miyugs" | "miyusg" | "mygi" | "myig" | "mugi" | "mugiy" | "mugyi" | "muig" | "muigy" | "muiyg" | "muygi" | "muyig" | "mygiu" | "mygui" | "myigu" | "myiug" | "myugi" | "myuig" | "msgi" | "msgiu" | "msgiy" | "msgiuy" | "msgiyu" | "msgyi" | "msgui" | "msguiy" | "msguyi" | "msgyiu" | "msgyui" | "msig" | "msigu" | "msigy" | "msiguy" | "msigyu" | "msiyg" | "msiug" | "msiugy" | "msiuyg" | "msiygu" | "msiyug" | "msygi" | "msyig" | "msugi" | "msugiy" | "msugyi" | "msuig" | "msuigy" | "msuiyg" | "msuygi" | "msuyig" | "msygiu" | "msygui" | "msyigu" | "msyiug" | "msyugi" | "msyuig" | "mygis" | "mygsi" | "myigs" | "myisg" | "mysgi" | "mysig" | "mugis" | "mugisy" | "mugiys" | "mugsi" | "mugsiy" | "mugsyi" | "mugyis" | "mugysi" | "muigs" | "muigsy" | "muigys" | "muisg" | "muisgy" | "muisyg" | "muiygs" | "muiysg" | "musgi" | "musgiy" | "musgyi" | "musig" | "musigy" | "musiyg" | "musygi" | "musyig" | "muygis" | "muygsi" | "muyigs" | "muyisg" | "muysgi" | "muysig" | "mygisu" | "mygius" | "mygsiu" | "mygsui" | "myguis" | "mygusi" | "myigsu" | "myigus" | "myisgu" | "myisug" | "myiugs" | "myiusg" | "mysgiu" | "mysgui" | "mysigu" | "mysiug" | "mysugi" | "mysuig" | "myugis" | "myugsi" | "myuigs" | "myuisg" | "myusgi" | "myusig" | "ygim" | "ygmi" | "yigm" | "yimg" | "ymgi" | "ymig" | "ugim" | "ugimy" | "ugiym" | "ugmi" | "ugmiy" | "ugmyi" | "ugyim" | "ugymi" | "uigm" | "uigmy" | "uigym" | "uimg" | "uimgy" | "uimyg" | "uiygm" | "uiymg" | "umgi" | "umgiy" | "umgyi" | "umig" | "umigy" | "umiyg" | "umygi" | "umyig" | "uygim" | "uygmi" | "uyigm" | "uyimg" | "uymgi" | "uymig" | "ygimu" | "ygium" | "ygmiu" | "ygmui" | "yguim" | "ygumi" | "yigmu" | "yigum" | "yimgu" | "yimug" | "yiugm" | "yiumg" | "ymgiu" | "ymgui" | "ymigu" | "ymiug" | "ymugi" | "ymuig" | "yugim" | "yugmi" | "yuigm" | "yuimg" | "yumgi" | "yumig" | "sgim" | "sgimu" | "sgimy" | "sgimuy" | "sgimyu" | "sgiym" | "sgium" | "sgiumy" | "sgiuym" | "sgiymu" | "sgiyum" | "sgmi" | "sgmiu" | "sgmiy" | "sgmiuy" | "sgmiyu" | "sgmyi" | "sgmui" | "sgmuiy" | "sgmuyi" | "sgmyiu" | "sgmyui" | "sgyim" | "sgymi" | "sguim" | "sguimy" | "sguiym" | "sgumi" | "sgumiy" | "sgumyi" | "sguyim" | "sguymi" | "sgyimu" | "sgyium" | "sgymiu" | "sgymui" | "sgyuim" | "sgyumi" | "sigm" | "sigmu" | "sigmy" | "sigmuy" | "sigmyu" | "sigym" | "sigum" | "sigumy" | "siguym" | "sigymu" | "sigyum" | "simg" | "simgu" | "simgy" | "simguy" | "simgyu" | "simyg" | "simug" | "simugy" | "simuyg" | "simygu" | "simyug" | "siygm" | "siymg" | "siugm" | "siugmy" | "siugym" | "siumg" | "siumgy" | "siumyg" | "siuygm" | "siuymg" | "siygmu" | "siygum" | "siymgu" | "siymug" | "siyugm" | "siyumg" | "smgi" | "smgiu" | "smgiy" | "smgiuy" | "smgiyu" | "smgyi" | "smgui" | "smguiy" | "smguyi" | "smgyiu" | "smgyui" | "smig" | "smigu" | "smigy" | "smiguy" | "smigyu" | "smiyg" | "smiug" | "smiugy" | "smiuyg" | "smiygu" | "smiyug" | "smygi" | "smyig" | "smugi" | "smugiy" | "smugyi" | "smuig" | "smuigy" | "smuiyg" | "smuygi" | "smuyig" | "smygiu" | "smygui" | "smyigu" | "smyiug" | "smyugi" | "smyuig" | "sygim" | "sygmi" | "syigm" | "syimg" | "symgi" | "symig" | "sugim" | "sugimy" | "sugiym" | "sugmi" | "sugmiy" | "sugmyi" | "sugyim" | "sugymi" | "suigm" | "suigmy" | "suigym" | "suimg" | "suimgy" | "suimyg" | "suiygm" | "suiymg" | "sumgi" | "sumgiy" | "sumgyi" | "sumig" | "sumigy" | "sumiyg" | "sumygi" | "sumyig" | "suygim" | "suygmi" | "suyigm" | "suyimg" | "suymgi" | "suymig" | "sygimu" | "sygium" | "sygmiu" | "sygmui" | "syguim" | "sygumi" | "syigmu" | "syigum" | "syimgu" | "syimug" | "syiugm" | "syiumg" | "symgiu" | "symgui" | "symigu" | "symiug" | "symugi" | "symuig" | "syugim" | "syugmi" | "syuigm" | "syuimg" | "syumgi" | "syumig" | "ygims" | "ygism" | "ygmis" | "ygmsi" | "ygsim" | "ygsmi" | "yigms" | "yigsm" | "yimgs" | "yimsg" | "yisgm" | "yismg" | "ymgis" | "ymgsi" | "ymigs" | "ymisg" | "ymsgi" | "ymsig" | "ysgim" | "ysgmi" | "ysigm" | "ysimg" | "ysmgi" | "ysmig" | "ugims" | "ugimsy" | "ugimys" | "ugism" | "ugismy" | "ugisym" | "ugiyms" | "ugiysm" | "ugmis" | "ugmisy" | "ugmiys" | "ugmsi" | "ugmsiy" | "ugmsyi" | "ugmyis" | "ugmysi" | "ugsim" | "ugsimy" | "ugsiym" | "ugsmi" | "ugsmiy" | "ugsmyi" | "ugsyim" | "ugsymi" | "ugyims" | "ugyism" | "ugymis" | "ugymsi" | "ugysim" | "ugysmi" | "uigms" | "uigmsy" | "uigmys" | "uigsm" | "uigsmy" | "uigsym" | "uigyms" | "uigysm" | "uimgs" | "uimgsy" | "uimgys" | "uimsg" | "uimsgy" | "uimsyg" | "uimygs" | "uimysg" | "uisgm" | "uisgmy" | "uisgym" | "uismg" | "uismgy" | "uismyg" | "uisygm" | "uisymg" | "uiygms" | "uiygsm" | "uiymgs" | "uiymsg" | "uiysgm" | "uiysmg" | "umgis" | "umgisy" | "umgiys" | "umgsi" | "umgsiy" | "umgsyi" | "umgyis" | "umgysi" | "umigs" | "umigsy" | "umigys" | "umisg" | "umisgy" | "umisyg" | "umiygs" | "umiysg" | "umsgi" | "umsgiy" | "umsgyi" | "umsig" | "umsigy" | "umsiyg" | "umsygi" | "umsyig" | "umygis" | "umygsi" | "umyigs" | "umyisg" | "umysgi" | "umysig" | "usgim" | "usgimy" | "usgiym" | "usgmi" | "usgmiy" | "usgmyi" | "usgyim" | "usgymi" | "usigm" | "usigmy" | "usigym" | "usimg" | "usimgy" | "usimyg" | "usiygm" | "usiymg" | "usmgi" | "usmgiy" | "usmgyi" | "usmig" | "usmigy" | "usmiyg" | "usmygi" | "usmyig" | "usygim" | "usygmi" | "usyigm" | "usyimg" | "usymgi" | "usymig" | "uygims" | "uygism" | "uygmis" | "uygmsi" | "uygsim" | "uygsmi" | "uyigms" | "uyigsm" | "uyimgs" | "uyimsg" | "uyisgm" | "uyismg" | "uymgis" | "uymgsi" | "uymigs" | "uymisg" | "uymsgi" | "uymsig" | "uysgim" | "uysgmi" | "uysigm" | "uysimg" | "uysmgi" | "uysmig" | "ygimsu" | "ygimus" | "ygismu" | "ygisum" | "ygiums" | "ygiusm" | "ygmisu" | "ygmius" | "ygmsiu" | "ygmsui" | "ygmuis" | "ygmusi" | "ygsimu" | "ygsium" | "ygsmiu" | "ygsmui" | "ygsuim" | "ygsumi" | "yguims" | "yguism" | "ygumis" | "ygumsi" | "ygusim" | "ygusmi" | "yigmsu" | "yigmus" | "yigsmu" | "yigsum" | "yigums" | "yigusm" | "yimgsu" | "yimgus" | "yimsgu" | "yimsug" | "yimugs" | "yimusg" | "yisgmu" | "yisgum" | "yismgu" | "yismug" | "yisugm" | "yisumg" | "yiugms" | "yiugsm" | "yiumgs" | "yiumsg" | "yiusgm" | "yiusmg" | "ymgisu" | "ymgius" | "ymgsiu" | "ymgsui" | "ymguis" | "ymgusi" | "ymigsu" | "ymigus" | "ymisgu" | "ymisug" | "ymiugs" | "ymiusg" | "ymsgiu" | "ymsgui" | "ymsigu" | "ymsiug" | "ymsugi" | "ymsuig" | "ymugis" | "ymugsi" | "ymuigs" | "ymuisg" | "ymusgi" | "ymusig" | "ysgimu" | "ysgium" | "ysgmiu" | "ysgmui" | "ysguim" | "ysgumi" | "ysigmu" | "ysigum" | "ysimgu" | "ysimug" | "ysiugm" | "ysiumg" | "ysmgiu" | "ysmgui" | "ysmigu" | "ysmiug" | "ysmugi" | "ysmuig" | "ysugim" | "ysugmi" | "ysuigm" | "ysuimg" | "ysumgi" | "ysumig" | "yugims" | "yugism" | "yugmis" | "yugmsi" | "yugsim" | "yugsmi" | "yuigms" | "yuigsm" | "yuimgs" | "yuimsg" | "yuisgm" | "yuismg" | "yumgis" | "yumgsi" | "yumigs" | "yumisg" | "yumsgi" | "yumsig" | "yusgim" | "yusgmi" | "yusigm" | "yusimg" | "yusmgi" | "yusmig") | undefined) => RegExpTsDsl; /** Creates a return statement. */
|
|
2304
|
-
return: (expr?:
|
|
2305
|
-
setter: (name:
|
|
2341
|
+
return: (expr?: any) => ReturnTsDsl; /** Creates a setter method declaration. */
|
|
2342
|
+
setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Creates a spread element from an expression (e.g., `...expr`). */
|
|
2343
|
+
spread: (expr: any) => SpreadTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2306
2344
|
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2307
|
-
template: (value?:
|
|
2345
|
+
template: (value?: any) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
|
|
2308
2346
|
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2309
2347
|
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
|
|
2310
2348
|
token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
|
|
2311
2349
|
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2312
|
-
type: ((name:
|
|
2313
|
-
/** Creates a type alias declaration (e.g., `type Foo = Bar`). */alias: (name:
|
|
2350
|
+
type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2351
|
+
/** Creates a type alias declaration (e.g., `type Foo = Bar`). */alias: (name: NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g., `A & B`). */
|
|
2314
2352
|
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g., Foo.Bar). */
|
|
2315
|
-
attr: (right:
|
|
2316
|
-
expr: (name:
|
|
2353
|
+
attr: (right: any) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2354
|
+
expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2317
2355
|
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g., `(a: string) => number`). */
|
|
2318
2356
|
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
|
|
2319
2357
|
idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl; /** Creates a literal type node (e.g., 'foo', 42, or true). */
|
|
2320
2358
|
literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g., `{ [K in keyof T]: U }`). */
|
|
2321
|
-
mapped: (name?:
|
|
2359
|
+
mapped: (name?: any) => TypeMappedTsDsl; /** Creates a type literal node (e.g., { foo: string }). */
|
|
2322
2360
|
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g., `readonly T`, `keyof T`, `unique T`). */
|
|
2323
2361
|
operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g., `A | B | C`). */
|
|
2324
2362
|
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g., `<T>`). */
|
|
2325
|
-
param: (name?:
|
|
2326
|
-
query: (expr:
|
|
2363
|
+
param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g., `typeof Foo`). */
|
|
2364
|
+
query: (expr: any) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
|
|
2327
2365
|
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g., [A, B, C]). */
|
|
2328
|
-
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl;
|
|
2366
|
+
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl; /** Creates a named tuple element (e.g., `[resolver?: R]`). */
|
|
2367
|
+
tupleMember: (name: NodeName) => TypeTupleMemberTsDsl;
|
|
2329
2368
|
}; /** Creates a `typeof` expression (e.g., `typeof value`). */
|
|
2330
|
-
typeofExpr: (expr:
|
|
2331
|
-
var: (name?:
|
|
2369
|
+
typeofExpr: (expr: any) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
|
|
2370
|
+
var: (name?: any) => VarTsDsl;
|
|
2332
2371
|
};
|
|
2333
2372
|
type DollarTsDsl = {
|
|
2334
2373
|
/**
|
|
@@ -2429,22 +2468,9 @@ type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2429
2468
|
seed?: number;
|
|
2430
2469
|
};
|
|
2431
2470
|
type Config$23 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2432
|
-
/**
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
case: Casing;
|
|
2436
|
-
/**
|
|
2437
|
-
* Configuration for reusable schema definitions.
|
|
2438
|
-
*/
|
|
2439
|
-
definitions: NamingOptions & FeatureToggle;
|
|
2440
|
-
/**
|
|
2441
|
-
* Faker locale for generated data.
|
|
2442
|
-
*/
|
|
2443
|
-
locale: string;
|
|
2444
|
-
/**
|
|
2445
|
-
* Seed for deterministic output. When set, Faker will produce
|
|
2446
|
-
* the same values across runs.
|
|
2447
|
-
*/
|
|
2471
|
+
/** Casing convention for generated names. */case: Casing; /** Configuration for reusable schema definitions. */
|
|
2472
|
+
definitions: NamingOptions & FeatureToggle; /** Faker locale for generated data. */
|
|
2473
|
+
locale: string; /** Seed for deterministic output. */
|
|
2448
2474
|
seed?: number;
|
|
2449
2475
|
};
|
|
2450
2476
|
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$26, Config$23, IApi$4>;
|
|
@@ -2777,7 +2803,7 @@ interface ClientOptions$6 {
|
|
|
2777
2803
|
throwOnError?: boolean;
|
|
2778
2804
|
}
|
|
2779
2805
|
type MethodFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2780
|
-
type SseFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<
|
|
2806
|
+
type SseFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2781
2807
|
type RequestFn$6 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: Omit<RequestOptions$6<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$6<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$6<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2782
2808
|
type RequestOptionsFn = <T, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$3 = 'fields'>(options: RequestOptions$6<T, TResponseStyle, ThrowOnError>) => HttpRequest<T>;
|
|
2783
2809
|
type BuildUrlFn$6 = <TData extends {
|
|
@@ -2785,20 +2811,20 @@ type BuildUrlFn$6 = <TData extends {
|
|
|
2785
2811
|
path?: Record<string, unknown>;
|
|
2786
2812
|
query?: Record<string, unknown>;
|
|
2787
2813
|
url: string;
|
|
2788
|
-
}>(options: TData & Options$
|
|
2814
|
+
}>(options: TData & Options$6<TData>) => string;
|
|
2789
2815
|
type Client$7 = Client$8<RequestFn$6, Config$21, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2790
2816
|
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2791
2817
|
requestOptions: RequestOptionsFn;
|
|
2792
2818
|
};
|
|
2793
|
-
interface TDataShape$
|
|
2819
|
+
interface TDataShape$5 {
|
|
2794
2820
|
body?: unknown;
|
|
2795
2821
|
headers?: unknown;
|
|
2796
2822
|
path?: unknown;
|
|
2797
2823
|
query?: unknown;
|
|
2798
2824
|
url: string;
|
|
2799
2825
|
}
|
|
2800
|
-
type OmitKeys$
|
|
2801
|
-
type Options$
|
|
2826
|
+
type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2827
|
+
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$5<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2802
2828
|
//#endregion
|
|
2803
2829
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2804
2830
|
interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$22 {
|
|
@@ -2855,26 +2881,16 @@ type RequestResult$5<TData = unknown, TError = unknown, ThrowOnError extends boo
|
|
|
2855
2881
|
error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
|
|
2856
2882
|
})>;
|
|
2857
2883
|
type MethodFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
|
|
2858
|
-
type SseFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<
|
|
2884
|
+
type SseFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2859
2885
|
type RequestFn$5 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$5<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$5<TData, ThrowOnError>>, 'method'>) => RequestResult$5<TData, TError, ThrowOnError>;
|
|
2860
2886
|
type BuildUrlFn$5 = <TData extends {
|
|
2861
|
-
body?: unknown;
|
|
2862
2887
|
path?: Record<string, unknown>;
|
|
2863
2888
|
query?: Record<string, unknown>;
|
|
2864
2889
|
url: string;
|
|
2865
|
-
}>(options: TData &
|
|
2890
|
+
}>(options: TData & Pick<RequestOptions$5<unknown, boolean>, 'axios' | 'baseURL' | 'paramsSerializer' | 'querySerializer'>) => string;
|
|
2866
2891
|
type Client$6 = Client$8<RequestFn$5, Config$20, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2867
2892
|
instance: AxiosInstance;
|
|
2868
2893
|
};
|
|
2869
|
-
interface TDataShape$5 {
|
|
2870
|
-
body?: unknown;
|
|
2871
|
-
headers?: unknown;
|
|
2872
|
-
path?: unknown;
|
|
2873
|
-
query?: unknown;
|
|
2874
|
-
url: string;
|
|
2875
|
-
}
|
|
2876
|
-
type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
2877
|
-
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$5<RequestOptions$5<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2878
2894
|
//#endregion
|
|
2879
2895
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2880
2896
|
type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
@@ -2990,7 +3006,7 @@ interface ClientOptions$4 {
|
|
|
2990
3006
|
throwOnError?: boolean;
|
|
2991
3007
|
}
|
|
2992
3008
|
type MethodFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2993
|
-
type SseFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<
|
|
3009
|
+
type SseFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
2994
3010
|
type RequestFn$4 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$2 = 'fields'>(options: Omit<RequestOptions$4<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$4<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$4<TData, TError, ThrowOnError, TResponseStyle>;
|
|
2995
3011
|
type BuildUrlFn$4 = <TData extends {
|
|
2996
3012
|
body?: unknown;
|
|
@@ -3107,7 +3123,7 @@ interface ClientOptions$3 {
|
|
|
3107
3123
|
throwOnError?: boolean;
|
|
3108
3124
|
}
|
|
3109
3125
|
type MethodFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
|
|
3110
|
-
type SseFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<
|
|
3126
|
+
type SseFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<never, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3111
3127
|
type RequestFn$3 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false>(options: Omit<RequestOptions$3<TData, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$3<TData, ThrowOnError>>, 'method'>) => RequestResult$3<TData, TError, ThrowOnError>;
|
|
3112
3128
|
type BuildUrlFn$3 = <TData extends {
|
|
3113
3129
|
body?: unknown;
|
|
@@ -3374,7 +3390,7 @@ interface ClientOptions$1 {
|
|
|
3374
3390
|
throwOnError?: boolean;
|
|
3375
3391
|
}
|
|
3376
3392
|
type MethodFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3377
|
-
type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<
|
|
3393
|
+
type SseFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3378
3394
|
type RequestFn$1 = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle$1 = 'fields'>(options: Omit<RequestOptions$1<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions$1<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult$1<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3379
3395
|
type BuildUrlFn$1 = <TData extends {
|
|
3380
3396
|
body?: unknown;
|
|
@@ -3606,7 +3622,7 @@ interface ClientOptions {
|
|
|
3606
3622
|
throwOnError?: boolean;
|
|
3607
3623
|
}
|
|
3608
3624
|
type MethodFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3609
|
-
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<
|
|
3625
|
+
type SseFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<never, TResponseStyle, ThrowOnError>, 'method'>) => Promise<ServerSentEventsResult<TData, TError>>;
|
|
3610
3626
|
type RequestFn = <TData = unknown, TError = unknown, ThrowOnError extends boolean = false, TResponseStyle extends ResponseStyle = 'fields'>(options: Omit<RequestOptions<TData, TResponseStyle, ThrowOnError>, 'method'> & Pick<Required<RequestOptions<TData, TResponseStyle, ThrowOnError>>, 'method'>) => RequestResult<TData, TError, ThrowOnError, TResponseStyle>;
|
|
3611
3627
|
type BuildUrlFn = <TData extends {
|
|
3612
3628
|
body?: unknown;
|
|
@@ -4100,7 +4116,7 @@ interface BaseTransformer extends DollarTsDsl {
|
|
|
4100
4116
|
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4101
4117
|
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$16, 'name'>;
|
|
4102
4118
|
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4103
|
-
}) => Array<TsDsl<ts.Expression>> | undefined;
|
|
4119
|
+
}) => Array<TsDsl<ts.Expression> | ReturnType<typeof $.return>> | undefined;
|
|
4104
4120
|
/**
|
|
4105
4121
|
* Returns the TypeScript type node for a schema with a specific format.
|
|
4106
4122
|
* If undefined is returned, the default type will be used.
|
|
@@ -7680,13 +7696,13 @@ type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
|
|
|
7680
7696
|
//#endregion
|
|
7681
7697
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7682
7698
|
type ValidatorArgs$2 = {
|
|
7683
|
-
operation: IR$1.OperationObject;
|
|
7699
|
+
operation: IR$1.OperationObject; /** The plugin instance. */
|
|
7684
7700
|
plugin: ArktypePlugin['Instance'];
|
|
7685
7701
|
};
|
|
7686
7702
|
//#endregion
|
|
7687
7703
|
//#region src/plugins/arktype/api.d.ts
|
|
7688
7704
|
type IApi$2 = {
|
|
7689
|
-
createRequestValidator: (args:
|
|
7705
|
+
createRequestValidator: (args: RequestSchemaContext<ArktypePlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
|
|
7690
7706
|
createResponseValidator: (args: ValidatorArgs$2) => ReturnType<typeof $.func> | undefined;
|
|
7691
7707
|
};
|
|
7692
7708
|
//#endregion
|
|
@@ -8777,7 +8793,8 @@ interface ValibotFinal extends Pick<ValibotResult, 'pipes'> {
|
|
|
8777
8793
|
//#endregion
|
|
8778
8794
|
//#region src/plugins/valibot/api.d.ts
|
|
8779
8795
|
type IApi$1 = {
|
|
8780
|
-
|
|
8796
|
+
createRequestSchema: (ctx: RequestSchemaContext<ValibotPlugin['Instance']>) => Symbol | Pipe | undefined;
|
|
8797
|
+
createRequestValidator: (args: RequestSchemaContext<ValibotPlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
|
|
8781
8798
|
createResponseValidator: (args: ValidatorArgs$1) => ReturnType<typeof $.func> | undefined;
|
|
8782
8799
|
};
|
|
8783
8800
|
//#endregion
|
|
@@ -8906,23 +8923,21 @@ type ValibotResolvers = Plugin$1.Resolvers<{
|
|
|
8906
8923
|
*
|
|
8907
8924
|
* Allow customization of validator function bodies.
|
|
8908
8925
|
*
|
|
8909
|
-
* Example path: `~resolvers.validator.request` or `~resolvers.validator.response`
|
|
8910
|
-
*
|
|
8911
8926
|
* Returning `undefined` will execute the default resolver logic.
|
|
8912
8927
|
*/
|
|
8913
|
-
validator?:
|
|
8928
|
+
validator?: ((ctx: ValidatorResolverContext$1) => PipeResult | null | undefined) | {
|
|
8914
8929
|
/**
|
|
8915
8930
|
* Controls how the request validator function body is generated.
|
|
8916
8931
|
*
|
|
8917
8932
|
* Returning `undefined` will execute the default resolver logic.
|
|
8918
8933
|
*/
|
|
8919
|
-
request?:
|
|
8934
|
+
request?: (ctx: RequestValidatorResolverContext$1) => PipeResult | null | undefined;
|
|
8920
8935
|
/**
|
|
8921
8936
|
* Controls how the response validator function body is generated.
|
|
8922
8937
|
*
|
|
8923
8938
|
* Returning `undefined` will execute the default resolver logic.
|
|
8924
8939
|
*/
|
|
8925
|
-
response?:
|
|
8940
|
+
response?: (ctx: ResponseValidatorResolverContext$1) => PipeResult | null | undefined;
|
|
8926
8941
|
};
|
|
8927
8942
|
/**
|
|
8928
8943
|
* Resolver for void schemas.
|
|
@@ -8933,7 +8948,6 @@ type ValibotResolvers = Plugin$1.Resolvers<{
|
|
|
8933
8948
|
*/
|
|
8934
8949
|
void?: (ctx: VoidResolverContext$1) => PipeResult;
|
|
8935
8950
|
}>;
|
|
8936
|
-
type ValidatorResolver$1 = (ctx: ValidatorResolverContext$1) => PipeResult | null | undefined;
|
|
8937
8951
|
interface BaseContext$1 extends DollarTsDsl {
|
|
8938
8952
|
/**
|
|
8939
8953
|
* Functions for working with pipes.
|
|
@@ -9143,15 +9157,61 @@ interface UnknownResolverContext$1 extends BaseContext$1 {
|
|
|
9143
9157
|
};
|
|
9144
9158
|
schema: SchemaWithType<'unknown'>;
|
|
9145
9159
|
}
|
|
9146
|
-
interface
|
|
9160
|
+
interface RequestValidatorResolverContext$1 extends BaseContext$1, RequestSchemaContext<ValibotPlugin['Instance']> {
|
|
9161
|
+
/**
|
|
9162
|
+
* Nodes used to build different parts of the result.
|
|
9163
|
+
*/
|
|
9164
|
+
nodes: {
|
|
9165
|
+
/**
|
|
9166
|
+
* Returns the composite schema combining all layers.
|
|
9167
|
+
*
|
|
9168
|
+
* Returns `undefined` if all layers are omitted.
|
|
9169
|
+
*/
|
|
9170
|
+
composite: (ctx: RequestValidatorResolverContext$1) => Pipe | undefined;
|
|
9171
|
+
/**
|
|
9172
|
+
* Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
|
|
9173
|
+
*
|
|
9174
|
+
* @throws if `whenEmpty` is `'omit'` (no schema should be generated)
|
|
9175
|
+
*/
|
|
9176
|
+
empty: (ctx: RequestValidatorResolverContext$1 & {
|
|
9177
|
+
/** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
|
|
9178
|
+
}) => Pipe;
|
|
9179
|
+
/**
|
|
9180
|
+
* Returns an optional schema based on the layer's config.
|
|
9181
|
+
*/
|
|
9182
|
+
optional: (ctx: RequestValidatorResolverContext$1 & {
|
|
9183
|
+
/** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
|
|
9184
|
+
schema: Pipe;
|
|
9185
|
+
}) => Pipe;
|
|
9186
|
+
};
|
|
9187
|
+
/**
|
|
9188
|
+
* Provides access to commonly used symbols within the plugin.
|
|
9189
|
+
*/
|
|
9190
|
+
symbols: BaseContext$1['symbols'] & {
|
|
9191
|
+
/**
|
|
9192
|
+
* The schema to use in the validator body.
|
|
9193
|
+
*
|
|
9194
|
+
* This is either:
|
|
9195
|
+
* - an inline AST expression
|
|
9196
|
+
* - a Symbol reference to a named export
|
|
9197
|
+
*/
|
|
9198
|
+
schema: Symbol | Pipe;
|
|
9199
|
+
};
|
|
9200
|
+
}
|
|
9201
|
+
interface ResponseValidatorResolverContext$1 extends BaseContext$1 {
|
|
9202
|
+
/** The operation being processed. */
|
|
9147
9203
|
operation: IR$1.OperationObject;
|
|
9148
9204
|
/**
|
|
9149
9205
|
* Provides access to commonly used symbols within the plugin.
|
|
9150
9206
|
*/
|
|
9151
9207
|
symbols: BaseContext$1['symbols'] & {
|
|
9208
|
+
/**
|
|
9209
|
+
* The response schema symbol.
|
|
9210
|
+
*/
|
|
9152
9211
|
schema: Symbol;
|
|
9153
9212
|
};
|
|
9154
9213
|
}
|
|
9214
|
+
type ValidatorResolverContext$1 = RequestValidatorResolverContext$1 | ResponseValidatorResolverContext$1;
|
|
9155
9215
|
interface VoidResolverContext$1 extends BaseContext$1 {
|
|
9156
9216
|
/**
|
|
9157
9217
|
* Nodes used to build different parts of the result.
|
|
@@ -9237,6 +9297,36 @@ type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
9237
9297
|
* @default true
|
|
9238
9298
|
*/
|
|
9239
9299
|
requests?: boolean | NameTransformer | {
|
|
9300
|
+
/**
|
|
9301
|
+
* Configuration for request body Valibot schemas.
|
|
9302
|
+
*
|
|
9303
|
+
* Can be:
|
|
9304
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
9305
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
9306
|
+
* - `object`: Full configuration object
|
|
9307
|
+
*
|
|
9308
|
+
* @default true
|
|
9309
|
+
*/
|
|
9310
|
+
body?: boolean | NameTransformer | {
|
|
9311
|
+
/**
|
|
9312
|
+
* Casing convention for generated names.
|
|
9313
|
+
*
|
|
9314
|
+
* @default 'camelCase'
|
|
9315
|
+
*/
|
|
9316
|
+
case?: Casing;
|
|
9317
|
+
/**
|
|
9318
|
+
* Whether this feature is enabled.
|
|
9319
|
+
*
|
|
9320
|
+
* @default true
|
|
9321
|
+
*/
|
|
9322
|
+
enabled?: boolean;
|
|
9323
|
+
/**
|
|
9324
|
+
* Naming pattern for generated names.
|
|
9325
|
+
*
|
|
9326
|
+
* @default 'v{{name}}Body'
|
|
9327
|
+
*/
|
|
9328
|
+
name?: NameTransformer;
|
|
9329
|
+
};
|
|
9240
9330
|
/**
|
|
9241
9331
|
* Casing convention for generated names.
|
|
9242
9332
|
*
|
|
@@ -9249,12 +9339,128 @@ type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
9249
9339
|
* @default true
|
|
9250
9340
|
*/
|
|
9251
9341
|
enabled?: boolean;
|
|
9342
|
+
/**
|
|
9343
|
+
* Configuration for request headers Valibot schemas.
|
|
9344
|
+
*
|
|
9345
|
+
* Can be:
|
|
9346
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
9347
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
9348
|
+
* - `object`: Full configuration object
|
|
9349
|
+
*
|
|
9350
|
+
* @default true
|
|
9351
|
+
*/
|
|
9352
|
+
headers?: boolean | NameTransformer | {
|
|
9353
|
+
/**
|
|
9354
|
+
* Casing convention for generated names.
|
|
9355
|
+
*
|
|
9356
|
+
* @default 'camelCase'
|
|
9357
|
+
*/
|
|
9358
|
+
case?: Casing;
|
|
9359
|
+
/**
|
|
9360
|
+
* Whether this feature is enabled.
|
|
9361
|
+
*
|
|
9362
|
+
* @default true
|
|
9363
|
+
*/
|
|
9364
|
+
enabled?: boolean;
|
|
9365
|
+
/**
|
|
9366
|
+
* Naming pattern for generated names.
|
|
9367
|
+
*
|
|
9368
|
+
* @default 'v{{name}}Headers'
|
|
9369
|
+
*/
|
|
9370
|
+
name?: NameTransformer;
|
|
9371
|
+
};
|
|
9252
9372
|
/**
|
|
9253
9373
|
* Naming pattern for generated names.
|
|
9254
9374
|
*
|
|
9255
9375
|
* @default 'v{{name}}Data'
|
|
9256
9376
|
*/
|
|
9257
9377
|
name?: NameTransformer;
|
|
9378
|
+
/**
|
|
9379
|
+
* Configuration for request path parameters Valibot schemas.
|
|
9380
|
+
*
|
|
9381
|
+
* Can be:
|
|
9382
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
9383
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
9384
|
+
* - `object`: Full configuration object
|
|
9385
|
+
*
|
|
9386
|
+
* @default true
|
|
9387
|
+
*/
|
|
9388
|
+
path?: boolean | NameTransformer | {
|
|
9389
|
+
/**
|
|
9390
|
+
* Casing convention for generated names.
|
|
9391
|
+
*
|
|
9392
|
+
* @default 'camelCase'
|
|
9393
|
+
*/
|
|
9394
|
+
case?: Casing;
|
|
9395
|
+
/**
|
|
9396
|
+
* Whether this feature is enabled.
|
|
9397
|
+
*
|
|
9398
|
+
* @default true
|
|
9399
|
+
*/
|
|
9400
|
+
enabled?: boolean;
|
|
9401
|
+
/**
|
|
9402
|
+
* Naming pattern for generated names.
|
|
9403
|
+
*
|
|
9404
|
+
* @default 'v{{name}}Path'
|
|
9405
|
+
*/
|
|
9406
|
+
name?: NameTransformer;
|
|
9407
|
+
};
|
|
9408
|
+
/**
|
|
9409
|
+
* Configuration for request query parameters Valibot schemas.
|
|
9410
|
+
*
|
|
9411
|
+
* Can be:
|
|
9412
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
9413
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
9414
|
+
* - `object`: Full configuration object
|
|
9415
|
+
*
|
|
9416
|
+
* @default true
|
|
9417
|
+
*/
|
|
9418
|
+
query?: boolean | NameTransformer | {
|
|
9419
|
+
/**
|
|
9420
|
+
* Casing convention for generated names.
|
|
9421
|
+
*
|
|
9422
|
+
* @default 'camelCase'
|
|
9423
|
+
*/
|
|
9424
|
+
case?: Casing;
|
|
9425
|
+
/**
|
|
9426
|
+
* Whether this feature is enabled.
|
|
9427
|
+
*
|
|
9428
|
+
* @default true
|
|
9429
|
+
*/
|
|
9430
|
+
enabled?: boolean;
|
|
9431
|
+
/**
|
|
9432
|
+
* Naming pattern for generated names.
|
|
9433
|
+
*
|
|
9434
|
+
* @default 'v{{name}}Query'
|
|
9435
|
+
*/
|
|
9436
|
+
name?: NameTransformer;
|
|
9437
|
+
};
|
|
9438
|
+
/**
|
|
9439
|
+
* Whether to extract the request schema into a named export.
|
|
9440
|
+
*
|
|
9441
|
+
* When `true`, generates a reusable schema like `vProjectListData`.
|
|
9442
|
+
* When `false`, the schema is built inline within the caller plugin.
|
|
9443
|
+
*
|
|
9444
|
+
* Can be a boolean or a function for per-operation control.
|
|
9445
|
+
*
|
|
9446
|
+
* @default false
|
|
9447
|
+
* @example
|
|
9448
|
+
* ```ts
|
|
9449
|
+
* // Always extract
|
|
9450
|
+
* shouldExtract: true
|
|
9451
|
+
*
|
|
9452
|
+
* // Extract only for operations with complex request bodies
|
|
9453
|
+
* shouldExtract: ({ operation }) =>
|
|
9454
|
+
* operation.body !== undefined && operation.parameters !== undefined
|
|
9455
|
+
*
|
|
9456
|
+
* // Extract based on custom extension
|
|
9457
|
+
* shouldExtract: ({ operation }) =>
|
|
9458
|
+
* operation['x-custom']?.extractRequestSchema === true
|
|
9459
|
+
* ```
|
|
9460
|
+
*/
|
|
9461
|
+
shouldExtract?: MaybeFunc<(ctx: {
|
|
9462
|
+
/** The operation being processed */operation: IR$1.OperationObject;
|
|
9463
|
+
}) => boolean>;
|
|
9258
9464
|
};
|
|
9259
9465
|
/**
|
|
9260
9466
|
* Configuration for response-specific Valibot schemas.
|
|
@@ -9329,7 +9535,15 @@ type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
9329
9535
|
node: ReturnType<typeof $.object>;
|
|
9330
9536
|
schema: IR$1.SchemaObject;
|
|
9331
9537
|
}) => void); /** Configuration for request-specific Valibot schemas. */
|
|
9332
|
-
requests: NamingOptions & FeatureToggle
|
|
9538
|
+
requests: NamingOptions & FeatureToggle & {
|
|
9539
|
+
/** Configuration for request body Valibot schemas. */body: NamingOptions & FeatureToggle; /** Configuration for request headers Valibot schemas. */
|
|
9540
|
+
headers: NamingOptions & FeatureToggle; /** Configuration for request path parameters Valibot schemas. */
|
|
9541
|
+
path: NamingOptions & FeatureToggle; /** Configuration for request query parameters Valibot schemas. */
|
|
9542
|
+
query: NamingOptions & FeatureToggle; /** Whether to extract the request schema into a named export. */
|
|
9543
|
+
shouldExtract: (ctx: {
|
|
9544
|
+
/** The operation being processed */operation: IR$1.OperationObject;
|
|
9545
|
+
}) => boolean;
|
|
9546
|
+
}; /** Configuration for response-specific Valibot schemas. */
|
|
9333
9547
|
responses: NamingOptions & FeatureToggle; /** Configuration for webhook-specific Valibot schemas. */
|
|
9334
9548
|
webhooks: NamingOptions & FeatureToggle;
|
|
9335
9549
|
};
|
|
@@ -9385,8 +9599,9 @@ interface ZodFinal extends Pick<ZodResult, 'expression'> {
|
|
|
9385
9599
|
//#endregion
|
|
9386
9600
|
//#region src/plugins/zod/api.d.ts
|
|
9387
9601
|
type IApi = {
|
|
9388
|
-
|
|
9389
|
-
|
|
9602
|
+
createRequestSchema: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => Symbol | Chain | undefined;
|
|
9603
|
+
createRequestValidator: (ctx: RequestSchemaContext<ZodPlugin['Instance']>) => ReturnType<typeof $.func> | undefined;
|
|
9604
|
+
createResponseValidator: (ctx: ValidatorArgs) => ReturnType<typeof $.func> | undefined;
|
|
9390
9605
|
};
|
|
9391
9606
|
//#endregion
|
|
9392
9607
|
//#region src/plugins/zod/resolvers.d.ts
|
|
@@ -9500,23 +9715,21 @@ type ZodResolvers = Plugin$1.Resolvers<{
|
|
|
9500
9715
|
*
|
|
9501
9716
|
* Allow customization of validator function bodies.
|
|
9502
9717
|
*
|
|
9503
|
-
* Example path: `~resolvers.validator.request` or `~resolvers.validator.response`
|
|
9504
|
-
*
|
|
9505
9718
|
* Returning `undefined` will execute the default resolver logic.
|
|
9506
9719
|
*/
|
|
9507
|
-
validator?:
|
|
9720
|
+
validator?: ((ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined) | {
|
|
9508
9721
|
/**
|
|
9509
9722
|
* Controls how the request validator function body is generated.
|
|
9510
9723
|
*
|
|
9511
9724
|
* Returning `undefined` will execute the default resolver logic.
|
|
9512
9725
|
*/
|
|
9513
|
-
request?:
|
|
9726
|
+
request?: (ctx: RequestValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
|
|
9514
9727
|
/**
|
|
9515
9728
|
* Controls how the response validator function body is generated.
|
|
9516
9729
|
*
|
|
9517
9730
|
* Returning `undefined` will execute the default resolver logic.
|
|
9518
9731
|
*/
|
|
9519
|
-
response?:
|
|
9732
|
+
response?: (ctx: ResponseValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
|
|
9520
9733
|
};
|
|
9521
9734
|
/**
|
|
9522
9735
|
* Resolver for void schemas.
|
|
@@ -9527,7 +9740,6 @@ type ZodResolvers = Plugin$1.Resolvers<{
|
|
|
9527
9740
|
*/
|
|
9528
9741
|
void?: (ctx: VoidResolverContext) => ChainResult;
|
|
9529
9742
|
}>;
|
|
9530
|
-
type ValidatorResolver = (ctx: ValidatorResolverContext) => MaybeArray<TsDsl<ts.Statement>> | null | undefined;
|
|
9531
9743
|
interface BaseContext extends DollarTsDsl {
|
|
9532
9744
|
/**
|
|
9533
9745
|
* Functions for working with chains.
|
|
@@ -9836,15 +10048,61 @@ interface UnknownResolverContext extends BaseContext {
|
|
|
9836
10048
|
};
|
|
9837
10049
|
schema: SchemaWithType<'unknown'>;
|
|
9838
10050
|
}
|
|
9839
|
-
interface
|
|
10051
|
+
interface RequestValidatorResolverContext extends BaseContext, RequestSchemaContext<ZodPlugin['Instance']> {
|
|
10052
|
+
/**
|
|
10053
|
+
* Nodes used to build different parts of the result.
|
|
10054
|
+
*/
|
|
10055
|
+
nodes: {
|
|
10056
|
+
/**
|
|
10057
|
+
* Returns the composite schema combining all layers.
|
|
10058
|
+
*
|
|
10059
|
+
* Returns `undefined` if all layers are omitted.
|
|
10060
|
+
*/
|
|
10061
|
+
composite: (ctx: RequestValidatorResolverContext) => Chain | undefined;
|
|
10062
|
+
/**
|
|
10063
|
+
* Returns an empty/fallback schema for a layer based on its `whenEmpty` config.
|
|
10064
|
+
*
|
|
10065
|
+
* @throws if `whenEmpty` is `'omit'` (no schema should be generated)
|
|
10066
|
+
*/
|
|
10067
|
+
empty: (ctx: RequestValidatorResolverContext & {
|
|
10068
|
+
/** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer;
|
|
10069
|
+
}) => Chain;
|
|
10070
|
+
/**
|
|
10071
|
+
* Returns an optional schema based on the layer's config.
|
|
10072
|
+
*/
|
|
10073
|
+
optional: (ctx: RequestValidatorResolverContext & {
|
|
10074
|
+
/** Resolved configuration for the request layer. */layer: ResolvedRequestValidatorLayer; /** The schema to conditionally wrap. */
|
|
10075
|
+
schema: Chain;
|
|
10076
|
+
}) => Chain;
|
|
10077
|
+
};
|
|
10078
|
+
/**
|
|
10079
|
+
* Provides access to commonly used symbols within the plugin.
|
|
10080
|
+
*/
|
|
10081
|
+
symbols: BaseContext['symbols'] & {
|
|
10082
|
+
/**
|
|
10083
|
+
* The schema to use in the validator body.
|
|
10084
|
+
*
|
|
10085
|
+
* This is either:
|
|
10086
|
+
* - an inline AST expression
|
|
10087
|
+
* - a Symbol reference to a named export
|
|
10088
|
+
*/
|
|
10089
|
+
schema: Symbol | Chain;
|
|
10090
|
+
};
|
|
10091
|
+
}
|
|
10092
|
+
interface ResponseValidatorResolverContext extends BaseContext {
|
|
10093
|
+
/** The operation being processed. */
|
|
9840
10094
|
operation: IR$1.OperationObject;
|
|
9841
10095
|
/**
|
|
9842
10096
|
* Provides access to commonly used symbols within the plugin.
|
|
9843
10097
|
*/
|
|
9844
10098
|
symbols: BaseContext['symbols'] & {
|
|
10099
|
+
/**
|
|
10100
|
+
* The response schema symbol.
|
|
10101
|
+
*/
|
|
9845
10102
|
schema: Symbol;
|
|
9846
10103
|
};
|
|
9847
10104
|
}
|
|
10105
|
+
type ValidatorResolverContext = RequestValidatorResolverContext | ResponseValidatorResolverContext;
|
|
9848
10106
|
interface VoidResolverContext extends BaseContext {
|
|
9849
10107
|
/**
|
|
9850
10108
|
* Nodes used to build different parts of the result.
|
|
@@ -9997,7 +10255,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
9997
10255
|
/**
|
|
9998
10256
|
* Configuration for request-specific Zod schemas.
|
|
9999
10257
|
*
|
|
10000
|
-
* Controls generation of Zod schemas for request bodies,
|
|
10258
|
+
* Controls generation of Zod schemas for request bodies, path parameters, query
|
|
10001
10259
|
* parameters, and headers.
|
|
10002
10260
|
*
|
|
10003
10261
|
* Can be:
|
|
@@ -10008,6 +10266,73 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10008
10266
|
* @default true
|
|
10009
10267
|
*/
|
|
10010
10268
|
requests?: boolean | NameTransformer | {
|
|
10269
|
+
/**
|
|
10270
|
+
* Configuration for request body Zod schemas.
|
|
10271
|
+
*
|
|
10272
|
+
* Can be:
|
|
10273
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10274
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10275
|
+
* - `object`: Full configuration object
|
|
10276
|
+
*
|
|
10277
|
+
* @default true
|
|
10278
|
+
*/
|
|
10279
|
+
body?: boolean | NameTransformer | {
|
|
10280
|
+
/**
|
|
10281
|
+
* Casing convention for generated names.
|
|
10282
|
+
*
|
|
10283
|
+
* @default 'camelCase'
|
|
10284
|
+
*/
|
|
10285
|
+
case?: Casing;
|
|
10286
|
+
/**
|
|
10287
|
+
* Whether this feature is enabled.
|
|
10288
|
+
*
|
|
10289
|
+
* @default true
|
|
10290
|
+
*/
|
|
10291
|
+
enabled?: boolean;
|
|
10292
|
+
/**
|
|
10293
|
+
* Naming pattern for generated names.
|
|
10294
|
+
*
|
|
10295
|
+
* @default 'z{{name}}Body'
|
|
10296
|
+
*/
|
|
10297
|
+
name?: NameTransformer;
|
|
10298
|
+
/**
|
|
10299
|
+
* Configuration for TypeScript type generation from Zod schemas.
|
|
10300
|
+
*
|
|
10301
|
+
* Controls generation of TypeScript types based on the generated Zod schemas.
|
|
10302
|
+
*/
|
|
10303
|
+
types?: {
|
|
10304
|
+
/**
|
|
10305
|
+
* Configuration for `infer` types.
|
|
10306
|
+
*
|
|
10307
|
+
* Can be:
|
|
10308
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10309
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10310
|
+
* - `object`: Full configuration object
|
|
10311
|
+
*
|
|
10312
|
+
* @default false
|
|
10313
|
+
*/
|
|
10314
|
+
infer?: boolean | NameTransformer | {
|
|
10315
|
+
/**
|
|
10316
|
+
* Casing convention for generated names.
|
|
10317
|
+
*
|
|
10318
|
+
* @default 'PascalCase'
|
|
10319
|
+
*/
|
|
10320
|
+
case?: Casing;
|
|
10321
|
+
/**
|
|
10322
|
+
* Whether this feature is enabled.
|
|
10323
|
+
*
|
|
10324
|
+
* @default true
|
|
10325
|
+
*/
|
|
10326
|
+
enabled?: boolean;
|
|
10327
|
+
/**
|
|
10328
|
+
* Naming pattern for generated names.
|
|
10329
|
+
*
|
|
10330
|
+
* @default '{{name}}BodyZodType'
|
|
10331
|
+
*/
|
|
10332
|
+
name?: NameTransformer;
|
|
10333
|
+
};
|
|
10334
|
+
};
|
|
10335
|
+
};
|
|
10011
10336
|
/**
|
|
10012
10337
|
* Casing convention for generated names.
|
|
10013
10338
|
*
|
|
@@ -10020,12 +10345,239 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10020
10345
|
* @default true
|
|
10021
10346
|
*/
|
|
10022
10347
|
enabled?: boolean;
|
|
10348
|
+
/**
|
|
10349
|
+
* Configuration for request headers Zod schemas.
|
|
10350
|
+
*
|
|
10351
|
+
* Can be:
|
|
10352
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10353
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10354
|
+
* - `object`: Full configuration object
|
|
10355
|
+
*
|
|
10356
|
+
* @default true
|
|
10357
|
+
*/
|
|
10358
|
+
headers?: boolean | NameTransformer | {
|
|
10359
|
+
/**
|
|
10360
|
+
* Casing convention for generated names.
|
|
10361
|
+
*
|
|
10362
|
+
* @default 'camelCase'
|
|
10363
|
+
*/
|
|
10364
|
+
case?: Casing;
|
|
10365
|
+
/**
|
|
10366
|
+
* Whether this feature is enabled.
|
|
10367
|
+
*
|
|
10368
|
+
* @default true
|
|
10369
|
+
*/
|
|
10370
|
+
enabled?: boolean;
|
|
10371
|
+
/**
|
|
10372
|
+
* Naming pattern for generated names.
|
|
10373
|
+
*
|
|
10374
|
+
* @default 'z{{name}}Headers'
|
|
10375
|
+
*/
|
|
10376
|
+
name?: NameTransformer;
|
|
10377
|
+
/**
|
|
10378
|
+
* Configuration for TypeScript type generation from Zod schemas.
|
|
10379
|
+
*
|
|
10380
|
+
* Controls generation of TypeScript types based on the generated Zod schemas.
|
|
10381
|
+
*/
|
|
10382
|
+
types?: {
|
|
10383
|
+
/**
|
|
10384
|
+
* Configuration for `infer` types.
|
|
10385
|
+
*
|
|
10386
|
+
* Can be:
|
|
10387
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10388
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10389
|
+
* - `object`: Full configuration object
|
|
10390
|
+
*
|
|
10391
|
+
* @default false
|
|
10392
|
+
*/
|
|
10393
|
+
infer?: boolean | NameTransformer | {
|
|
10394
|
+
/**
|
|
10395
|
+
* Casing convention for generated names.
|
|
10396
|
+
*
|
|
10397
|
+
* @default 'PascalCase'
|
|
10398
|
+
*/
|
|
10399
|
+
case?: Casing;
|
|
10400
|
+
/**
|
|
10401
|
+
* Whether this feature is enabled.
|
|
10402
|
+
*
|
|
10403
|
+
* @default true
|
|
10404
|
+
*/
|
|
10405
|
+
enabled?: boolean;
|
|
10406
|
+
/**
|
|
10407
|
+
* Naming pattern for generated names.
|
|
10408
|
+
*
|
|
10409
|
+
* @default '{{name}}HeadersZodType'
|
|
10410
|
+
*/
|
|
10411
|
+
name?: NameTransformer;
|
|
10412
|
+
};
|
|
10413
|
+
};
|
|
10414
|
+
};
|
|
10023
10415
|
/**
|
|
10024
10416
|
* Naming pattern for generated names.
|
|
10025
10417
|
*
|
|
10026
10418
|
* @default 'z{{name}}Data'
|
|
10027
10419
|
*/
|
|
10028
10420
|
name?: NameTransformer;
|
|
10421
|
+
/**
|
|
10422
|
+
* Configuration for request path parameters Zod schemas.
|
|
10423
|
+
*
|
|
10424
|
+
* Can be:
|
|
10425
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10426
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10427
|
+
* - `object`: Full configuration object
|
|
10428
|
+
*
|
|
10429
|
+
* @default true
|
|
10430
|
+
*/
|
|
10431
|
+
path?: boolean | NameTransformer | {
|
|
10432
|
+
/**
|
|
10433
|
+
* Casing convention for generated names.
|
|
10434
|
+
*
|
|
10435
|
+
* @default 'camelCase'
|
|
10436
|
+
*/
|
|
10437
|
+
case?: Casing;
|
|
10438
|
+
/**
|
|
10439
|
+
* Whether this feature is enabled.
|
|
10440
|
+
*
|
|
10441
|
+
* @default true
|
|
10442
|
+
*/
|
|
10443
|
+
enabled?: boolean;
|
|
10444
|
+
/**
|
|
10445
|
+
* Naming pattern for generated names.
|
|
10446
|
+
*
|
|
10447
|
+
* @default 'z{{name}}Path'
|
|
10448
|
+
*/
|
|
10449
|
+
name?: NameTransformer;
|
|
10450
|
+
/**
|
|
10451
|
+
* Configuration for TypeScript type generation from Zod schemas.
|
|
10452
|
+
*
|
|
10453
|
+
* Controls generation of TypeScript types based on the generated Zod schemas.
|
|
10454
|
+
*/
|
|
10455
|
+
types?: {
|
|
10456
|
+
/**
|
|
10457
|
+
* Configuration for `infer` types.
|
|
10458
|
+
*
|
|
10459
|
+
* Can be:
|
|
10460
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10461
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10462
|
+
* - `object`: Full configuration object
|
|
10463
|
+
*
|
|
10464
|
+
* @default false
|
|
10465
|
+
*/
|
|
10466
|
+
infer?: boolean | NameTransformer | {
|
|
10467
|
+
/**
|
|
10468
|
+
* Casing convention for generated names.
|
|
10469
|
+
*
|
|
10470
|
+
* @default 'PascalCase'
|
|
10471
|
+
*/
|
|
10472
|
+
case?: Casing;
|
|
10473
|
+
/**
|
|
10474
|
+
* Whether this feature is enabled.
|
|
10475
|
+
*
|
|
10476
|
+
* @default true
|
|
10477
|
+
*/
|
|
10478
|
+
enabled?: boolean;
|
|
10479
|
+
/**
|
|
10480
|
+
* Naming pattern for generated names.
|
|
10481
|
+
*
|
|
10482
|
+
* @default '{{name}}PathZodType'
|
|
10483
|
+
*/
|
|
10484
|
+
name?: NameTransformer;
|
|
10485
|
+
};
|
|
10486
|
+
};
|
|
10487
|
+
};
|
|
10488
|
+
/**
|
|
10489
|
+
* Configuration for request query parameters Zod schemas.
|
|
10490
|
+
*
|
|
10491
|
+
* Can be:
|
|
10492
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10493
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10494
|
+
* - `object`: Full configuration object
|
|
10495
|
+
*
|
|
10496
|
+
* @default true
|
|
10497
|
+
*/
|
|
10498
|
+
query?: boolean | NameTransformer | {
|
|
10499
|
+
/**
|
|
10500
|
+
* Casing convention for generated names.
|
|
10501
|
+
*
|
|
10502
|
+
* @default 'camelCase'
|
|
10503
|
+
*/
|
|
10504
|
+
case?: Casing;
|
|
10505
|
+
/**
|
|
10506
|
+
* Whether this feature is enabled.
|
|
10507
|
+
*
|
|
10508
|
+
* @default true
|
|
10509
|
+
*/
|
|
10510
|
+
enabled?: boolean;
|
|
10511
|
+
/**
|
|
10512
|
+
* Naming pattern for generated names.
|
|
10513
|
+
*
|
|
10514
|
+
* @default 'z{{name}}Query'
|
|
10515
|
+
*/
|
|
10516
|
+
name?: NameTransformer;
|
|
10517
|
+
/**
|
|
10518
|
+
* Configuration for TypeScript type generation from Zod schemas.
|
|
10519
|
+
*
|
|
10520
|
+
* Controls generation of TypeScript types based on the generated Zod schemas.
|
|
10521
|
+
*/
|
|
10522
|
+
types?: {
|
|
10523
|
+
/**
|
|
10524
|
+
* Configuration for `infer` types.
|
|
10525
|
+
*
|
|
10526
|
+
* Can be:
|
|
10527
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
10528
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
10529
|
+
* - `object`: Full configuration object
|
|
10530
|
+
*
|
|
10531
|
+
* @default false
|
|
10532
|
+
*/
|
|
10533
|
+
infer?: boolean | NameTransformer | {
|
|
10534
|
+
/**
|
|
10535
|
+
* Casing convention for generated names.
|
|
10536
|
+
*
|
|
10537
|
+
* @default 'PascalCase'
|
|
10538
|
+
*/
|
|
10539
|
+
case?: Casing;
|
|
10540
|
+
/**
|
|
10541
|
+
* Whether this feature is enabled.
|
|
10542
|
+
*
|
|
10543
|
+
* @default true
|
|
10544
|
+
*/
|
|
10545
|
+
enabled?: boolean;
|
|
10546
|
+
/**
|
|
10547
|
+
* Naming pattern for generated names.
|
|
10548
|
+
*
|
|
10549
|
+
* @default '{{name}}QueryZodType'
|
|
10550
|
+
*/
|
|
10551
|
+
name?: NameTransformer;
|
|
10552
|
+
};
|
|
10553
|
+
};
|
|
10554
|
+
};
|
|
10555
|
+
/**
|
|
10556
|
+
* Whether to extract the request schema into a named export.
|
|
10557
|
+
*
|
|
10558
|
+
* When `true`, generates a reusable schema like `zProjectListData`.
|
|
10559
|
+
* When `false`, the schema is built inline within the caller plugin.
|
|
10560
|
+
*
|
|
10561
|
+
* Can be a boolean or a function for per-operation control.
|
|
10562
|
+
*
|
|
10563
|
+
* @default false
|
|
10564
|
+
* @example
|
|
10565
|
+
* ```ts
|
|
10566
|
+
* // Always extract
|
|
10567
|
+
* shouldExtract: true
|
|
10568
|
+
*
|
|
10569
|
+
* // Extract only for operations with complex request bodies
|
|
10570
|
+
* shouldExtract: ({ operation }) =>
|
|
10571
|
+
* operation.body !== undefined && operation.parameters !== undefined
|
|
10572
|
+
*
|
|
10573
|
+
* // Extract based on custom extension
|
|
10574
|
+
* shouldExtract: ({ operation }) =>
|
|
10575
|
+
* operation['x-custom']?.extractRequestSchema === true
|
|
10576
|
+
* ```
|
|
10577
|
+
*/
|
|
10578
|
+
shouldExtract?: MaybeFunc<(ctx: {
|
|
10579
|
+
/** The operation being processed */operation: IR$1.OperationObject;
|
|
10580
|
+
}) => boolean>;
|
|
10029
10581
|
/**
|
|
10030
10582
|
* Configuration for TypeScript type generation from Zod schemas.
|
|
10031
10583
|
*
|
|
@@ -10247,7 +10799,15 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
|
|
|
10247
10799
|
node: ReturnType<typeof $.object>;
|
|
10248
10800
|
schema: IR$1.SchemaObject;
|
|
10249
10801
|
}) => void); /** Configuration for request-specific Zod schemas. */
|
|
10250
|
-
requests: NamingOptions & FeatureToggle & TypeOptions
|
|
10802
|
+
requests: NamingOptions & FeatureToggle & TypeOptions & {
|
|
10803
|
+
/** Configuration for request body Zod schemas. */body: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for request headers Zod schemas. */
|
|
10804
|
+
headers: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for request path parameters Zod schemas. */
|
|
10805
|
+
path: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for request query parameters Zod schemas. */
|
|
10806
|
+
query: NamingOptions & FeatureToggle & TypeOptions; /** Whether to extract the request schema into a named export. */
|
|
10807
|
+
shouldExtract: (ctx: {
|
|
10808
|
+
/** The operation being processed */operation: IR$1.OperationObject;
|
|
10809
|
+
}) => boolean;
|
|
10810
|
+
}; /** Configuration for response-specific Zod schemas. */
|
|
10251
10811
|
responses: NamingOptions & FeatureToggle & TypeOptions; /** Configuration for TypeScript type generation from Zod schemas. */
|
|
10252
10812
|
types: {
|
|
10253
10813
|
/** Configuration for `infer` types. */infer: FeatureToggle & {
|
|
@@ -10264,7 +10824,7 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
|
|
|
10264
10824
|
*
|
|
10265
10825
|
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
10266
10826
|
*/
|
|
10267
|
-
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?:
|
|
10827
|
+
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any): Promise<ReadonlyArray<Context>>;
|
|
10268
10828
|
//#endregion
|
|
10269
10829
|
//#region src/config/plugins.d.ts
|
|
10270
10830
|
/**
|