@hey-api/openapi-ts 0.94.3 → 0.94.5
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 +8 -7
- package/dist/clients/angular/utils.ts +1 -1
- package/dist/clients/axios/utils.ts +2 -2
- package/dist/clients/core/types.ts +1 -1
- package/dist/clients/core/utils.ts +1 -1
- package/dist/clients/fetch/utils.ts +1 -1
- package/dist/clients/next/utils.ts +1 -1
- package/dist/clients/nuxt/utils.ts +1 -1
- package/dist/clients/ofetch/utils.ts +1 -1
- package/dist/index.d.mts +630 -452
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{init-OaZZcRie.mjs → init-DXg2DSyt.mjs} +837 -493
- package/dist/init-DXg2DSyt.mjs.map +1 -0
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +5 -5
- package/dist/run.mjs.map +1 -1
- package/dist/{src-CwAmA-wp.mjs → src-onOyaUFS.mjs} +3 -3
- package/dist/src-onOyaUFS.mjs.map +1 -0
- package/package.json +6 -5
- package/dist/init-OaZZcRie.mjs.map +0 -1
- package/dist/src-CwAmA-wp.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as UserConfig } from "./types-DAEl4_a4.mjs";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
|
|
3
|
+
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Logger as Logger$1, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
|
|
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";
|
|
4
5
|
import ts from "typescript";
|
|
5
6
|
import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
|
|
6
7
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -10,6 +11,7 @@ import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsync
|
|
|
10
11
|
import { Ref as Ref$1 } from "vue";
|
|
11
12
|
import { FetchOptions, ResponseType, ofetch } from "ofetch";
|
|
12
13
|
import ky, { Options } from "ky";
|
|
14
|
+
import { LinguistLanguages, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from "@hey-api/spec-types";
|
|
13
15
|
|
|
14
16
|
//#region src/plugins/@angular/common/httpRequests/types.d.ts
|
|
15
17
|
interface UserHttpRequestsConfig {
|
|
@@ -372,7 +374,7 @@ type HttpResourcesConfig = FeatureToggle & {
|
|
|
372
374
|
};
|
|
373
375
|
//#endregion
|
|
374
376
|
//#region src/plugins/@angular/common/types.d.ts
|
|
375
|
-
type UserConfig$
|
|
377
|
+
type UserConfig$27 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
376
378
|
/**
|
|
377
379
|
* Options for generating HTTP Request instances.
|
|
378
380
|
*
|
|
@@ -386,7 +388,7 @@ type UserConfig$26 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
|
|
|
386
388
|
*/
|
|
387
389
|
httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
|
|
388
390
|
};
|
|
389
|
-
type Config$
|
|
391
|
+
type Config$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
390
392
|
/**
|
|
391
393
|
* Options for generating HTTP Request instances.
|
|
392
394
|
*/
|
|
@@ -396,7 +398,7 @@ type Config$23 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
|
|
|
396
398
|
*/
|
|
397
399
|
httpResources: HttpResourcesConfig;
|
|
398
400
|
};
|
|
399
|
-
type AngularCommonPlugin = DefinePlugin$1<UserConfig$
|
|
401
|
+
type AngularCommonPlugin = DefinePlugin$1<UserConfig$27, Config$24>;
|
|
400
402
|
//#endregion
|
|
401
403
|
//#region src/ts-dsl/mixins/types.d.ts
|
|
402
404
|
type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
|
|
@@ -404,28 +406,28 @@ type DropFirst<T extends Array<any>> = T extends [any, ...infer Rest] ? Rest : n
|
|
|
404
406
|
type MixinCtor<T extends BaseCtor<any>, K> = abstract new (...args: Array<any>) => InstanceType<T> & K;
|
|
405
407
|
//#endregion
|
|
406
408
|
//#region src/ts-dsl/mixins/type-args.d.ts
|
|
407
|
-
type Arg$1 = NodeName
|
|
409
|
+
type Arg$1 = NodeName | MaybeTsDsl<TypeTsDsl>;
|
|
408
410
|
interface TypeArgsMethods extends Node {
|
|
409
411
|
/** Returns the type arguments as an array of ts.TypeNode nodes. */
|
|
410
412
|
$generics(): ReadonlyArray<ts.TypeNode> | undefined;
|
|
411
|
-
/** Adds a single type argument (e.g
|
|
413
|
+
/** Adds a single type argument (e.g., `string` in `Foo<string>`). */
|
|
412
414
|
generic(arg: Arg$1): this;
|
|
413
|
-
/** Adds type arguments (e.g
|
|
415
|
+
/** Adds type arguments (e.g., `Map<string, number>`). */
|
|
414
416
|
generics(...args: ReadonlyArray<Arg$1>): this;
|
|
415
417
|
}
|
|
416
418
|
//#endregion
|
|
417
419
|
//#region src/ts-dsl/mixins/as.d.ts
|
|
418
420
|
interface AsMethods extends Node {
|
|
419
|
-
/** Creates an `as` type assertion expression (e.g
|
|
421
|
+
/** Creates an `as` type assertion expression (e.g., `value as Type`). */
|
|
420
422
|
as(...args: DropFirst<Parameters<typeof f.as>>): ReturnType<typeof f.as>;
|
|
421
423
|
}
|
|
422
424
|
//#endregion
|
|
423
425
|
//#region src/ts-dsl/expr/as.d.ts
|
|
424
|
-
type AsExpr = NodeName
|
|
425
|
-
type AsType = NodeName
|
|
426
|
+
type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
427
|
+
type AsType = NodeName | TypeTsDsl;
|
|
426
428
|
type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
|
|
427
|
-
declare const Mixed$
|
|
428
|
-
declare class AsTsDsl extends Mixed$
|
|
429
|
+
declare const Mixed$54: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
|
|
430
|
+
declare class AsTsDsl extends Mixed$54 {
|
|
429
431
|
readonly '~dsl' = "AsTsDsl";
|
|
430
432
|
protected expr: Ref<AsExpr>;
|
|
431
433
|
protected type: Ref<AsType>;
|
|
@@ -444,11 +446,11 @@ interface OptionalMethods extends Node {
|
|
|
444
446
|
}
|
|
445
447
|
//#endregion
|
|
446
448
|
//#region src/ts-dsl/expr/binary.d.ts
|
|
447
|
-
type Expr$3 = NodeName
|
|
449
|
+
type Expr$3 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
448
450
|
type Op$1 = Operator | ts.BinaryOperator;
|
|
449
451
|
type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
|
|
450
|
-
declare const Mixed$
|
|
451
|
-
declare class BinaryTsDsl extends Mixed$
|
|
452
|
+
declare const Mixed$53: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
|
|
453
|
+
declare class BinaryTsDsl extends Mixed$53 {
|
|
452
454
|
readonly '~dsl' = "BinaryTsDsl";
|
|
453
455
|
protected _base: Ref<Expr$3>;
|
|
454
456
|
protected _expr?: Ref<Expr$3>;
|
|
@@ -459,7 +461,7 @@ declare class BinaryTsDsl extends Mixed$51 {
|
|
|
459
461
|
get isValid(): boolean;
|
|
460
462
|
/** Logical AND — `this && expr` */
|
|
461
463
|
and(expr: Expr$3): this;
|
|
462
|
-
/** Creates an assignment expression (e.g
|
|
464
|
+
/** Creates an assignment expression (e.g., `this = expr`). */
|
|
463
465
|
assign(expr: Expr$3): this;
|
|
464
466
|
/** Nullish coalescing — `this ?? expr` */
|
|
465
467
|
coalesce(expr: Expr$3): this;
|
|
@@ -503,11 +505,11 @@ declare class BinaryTsDsl extends Mixed$51 {
|
|
|
503
505
|
}
|
|
504
506
|
//#endregion
|
|
505
507
|
//#region src/ts-dsl/mixins/operator.d.ts
|
|
506
|
-
type Expr$2 = NodeName
|
|
508
|
+
type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
507
509
|
interface OperatorMethods extends Node {
|
|
508
510
|
/** Logical AND — `this && expr` */
|
|
509
511
|
and(expr: Expr$2): BinaryTsDsl;
|
|
510
|
-
/** Creates an assignment expression (e.g
|
|
512
|
+
/** Creates an assignment expression (e.g., `this = expr`). */
|
|
511
513
|
assign(expr: Expr$2): BinaryTsDsl;
|
|
512
514
|
/** Nullish coalescing — `this ?? expr` */
|
|
513
515
|
coalesce(expr: Expr$2): BinaryTsDsl;
|
|
@@ -542,22 +544,25 @@ interface OperatorMethods extends Node {
|
|
|
542
544
|
}
|
|
543
545
|
//#endregion
|
|
544
546
|
//#region src/ts-dsl/expr/attr.d.ts
|
|
545
|
-
type AttrLeft = NodeName
|
|
546
|
-
type AttrCtor = (left: AttrLeft, right: NodeName
|
|
547
|
-
declare const Mixed$
|
|
548
|
-
declare class AttrTsDsl extends Mixed$
|
|
547
|
+
type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
|
|
548
|
+
type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
|
|
549
|
+
declare const Mixed$52: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
550
|
+
declare class AttrTsDsl extends Mixed$52 {
|
|
549
551
|
readonly '~dsl' = "AttrTsDsl";
|
|
550
|
-
protected
|
|
551
|
-
|
|
552
|
+
protected _computed: boolean;
|
|
553
|
+
protected _left: Ref<AttrLeft>;
|
|
554
|
+
constructor(left: AttrLeft, right: NodeName);
|
|
552
555
|
analyze(ctx: AnalysisContext): void;
|
|
556
|
+
/** Use computed property access (e.g., `obj[expr]`)? */
|
|
557
|
+
computed(condition?: boolean): this;
|
|
553
558
|
toAst(): ts.PropertyAccessExpression | ts.ElementAccessExpression;
|
|
554
559
|
}
|
|
555
560
|
//#endregion
|
|
556
561
|
//#region src/ts-dsl/expr/await.d.ts
|
|
557
|
-
type AwaitExpr = NodeName
|
|
562
|
+
type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
558
563
|
type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
|
|
559
|
-
declare const Mixed$
|
|
560
|
-
declare class AwaitTsDsl extends Mixed$
|
|
564
|
+
declare const Mixed$51: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
|
|
565
|
+
declare class AwaitTsDsl extends Mixed$51 {
|
|
561
566
|
readonly '~dsl' = "AwaitTsDsl";
|
|
562
567
|
protected _awaitExpr: Ref<AwaitExpr>;
|
|
563
568
|
constructor(expr: AwaitExpr);
|
|
@@ -566,7 +571,7 @@ declare class AwaitTsDsl extends Mixed$49 {
|
|
|
566
571
|
}
|
|
567
572
|
//#endregion
|
|
568
573
|
//#region src/ts-dsl/mixins/args.d.ts
|
|
569
|
-
type Arg = NodeName
|
|
574
|
+
type Arg = NodeName | MaybeTsDsl<ts.Expression>;
|
|
570
575
|
interface ArgsMethods extends Node {
|
|
571
576
|
/** Renders the arguments into an array of `Expression`s. */
|
|
572
577
|
$args(): ReadonlyArray<ts.Expression>;
|
|
@@ -578,10 +583,10 @@ interface ArgsMethods extends Node {
|
|
|
578
583
|
//#endregion
|
|
579
584
|
//#region src/ts-dsl/expr/new.d.ts
|
|
580
585
|
type NewArgs = ReadonlyArray<NewExpr | undefined>;
|
|
581
|
-
type NewExpr = NodeName
|
|
586
|
+
type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
582
587
|
type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
|
|
583
|
-
declare const Mixed$
|
|
584
|
-
declare class NewTsDsl extends Mixed$
|
|
588
|
+
declare const Mixed$50: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
589
|
+
declare class NewTsDsl extends Mixed$50 {
|
|
585
590
|
readonly '~dsl' = "NewTsDsl";
|
|
586
591
|
protected _newExpr: Ref<NewExpr>;
|
|
587
592
|
constructor(expr: NewExpr, ...args: NewArgs);
|
|
@@ -592,8 +597,8 @@ declare class NewTsDsl extends Mixed$48 {
|
|
|
592
597
|
//#region src/ts-dsl/expr/typeof.d.ts
|
|
593
598
|
type TypeOfExpr = string | MaybeTsDsl<ts.Expression>;
|
|
594
599
|
type TypeOfExprCtor = (expr: TypeOfExpr) => TypeOfExprTsDsl;
|
|
595
|
-
declare const Mixed$
|
|
596
|
-
declare class TypeOfExprTsDsl extends Mixed$
|
|
600
|
+
declare const Mixed$49: MixinCtor<abstract new () => TsDsl<ts.TypeOfExpression>, OperatorMethods>;
|
|
601
|
+
declare class TypeOfExprTsDsl extends Mixed$49 {
|
|
597
602
|
readonly '~dsl' = "TypeOfExprTsDsl";
|
|
598
603
|
protected _expr: TypeOfExpr;
|
|
599
604
|
constructor(expr: TypeOfExpr);
|
|
@@ -602,10 +607,10 @@ declare class TypeOfExprTsDsl extends Mixed$47 {
|
|
|
602
607
|
}
|
|
603
608
|
//#endregion
|
|
604
609
|
//#region src/ts-dsl/stmt/return.d.ts
|
|
605
|
-
type ReturnExpr = NodeName
|
|
610
|
+
type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
606
611
|
type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
|
|
607
|
-
declare const Mixed$
|
|
608
|
-
declare class ReturnTsDsl extends Mixed$
|
|
612
|
+
declare const Mixed$48: abstract new () => TsDsl<ts.ReturnStatement>;
|
|
613
|
+
declare class ReturnTsDsl extends Mixed$48 {
|
|
609
614
|
readonly '~dsl' = "ReturnTsDsl";
|
|
610
615
|
protected _returnExpr?: Ref<ReturnExpr>;
|
|
611
616
|
constructor(expr?: ReturnExpr);
|
|
@@ -615,7 +620,7 @@ declare class ReturnTsDsl extends Mixed$46 {
|
|
|
615
620
|
//#endregion
|
|
616
621
|
//#region src/ts-dsl/mixins/type-expr.d.ts
|
|
617
622
|
interface TypeExprMethods extends Node {
|
|
618
|
-
/** Creates an indexed-access type (e.g
|
|
623
|
+
/** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
|
|
619
624
|
idx(this: Parameters<typeof f.type.idx>[0], ...args: DropFirst<Parameters<typeof f.type.idx>>): ReturnType<typeof f.type.idx>;
|
|
620
625
|
/** Shorthand: builds `keyof T`. */
|
|
621
626
|
keyof(this: MaybeTsDsl<TypeTsDsl>): ReturnType<typeof f.type.operator>;
|
|
@@ -632,10 +637,10 @@ interface TypeExprMethods extends Node {
|
|
|
632
637
|
}
|
|
633
638
|
//#endregion
|
|
634
639
|
//#region src/ts-dsl/type/attr.d.ts
|
|
635
|
-
type Base$1 = NodeName
|
|
636
|
-
type Right = NodeName
|
|
637
|
-
declare const Mixed$
|
|
638
|
-
declare class TypeAttrTsDsl extends Mixed$
|
|
640
|
+
type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
|
|
641
|
+
type Right = NodeName | ts.Identifier;
|
|
642
|
+
declare const Mixed$47: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
|
|
643
|
+
declare class TypeAttrTsDsl extends Mixed$47 {
|
|
639
644
|
readonly '~dsl' = "TypeAttrTsDsl";
|
|
640
645
|
scope: NodeScope;
|
|
641
646
|
protected _base?: Ref<Base$1>;
|
|
@@ -656,22 +661,22 @@ declare class TypeAttrTsDsl extends Mixed$45 {
|
|
|
656
661
|
}
|
|
657
662
|
//#endregion
|
|
658
663
|
//#region src/ts-dsl/type/expr.d.ts
|
|
659
|
-
type TypeExprExpr = NodeName
|
|
664
|
+
type TypeExprExpr = NodeName | TypeAttrTsDsl;
|
|
660
665
|
type TypeExprFn = (t: TypeExprTsDsl) => void;
|
|
661
|
-
type TypeExprCtor = (nameOrFn?: NodeName
|
|
662
|
-
declare const Mixed$
|
|
663
|
-
declare class TypeExprTsDsl extends Mixed$
|
|
666
|
+
type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
|
|
667
|
+
declare const Mixed$46: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
|
|
668
|
+
declare class TypeExprTsDsl extends Mixed$46 {
|
|
664
669
|
readonly '~dsl' = "TypeExprTsDsl";
|
|
665
670
|
scope: NodeScope;
|
|
666
671
|
protected _exprInput?: Ref<TypeExprExpr>;
|
|
667
672
|
constructor();
|
|
668
673
|
constructor(fn: TypeExprFn);
|
|
669
|
-
constructor(name: NodeName
|
|
670
|
-
constructor(name: NodeName
|
|
674
|
+
constructor(name: NodeName);
|
|
675
|
+
constructor(name: NodeName, fn?: TypeExprFn);
|
|
671
676
|
analyze(ctx: AnalysisContext): void;
|
|
672
677
|
/** Returns true when all required builder calls are present. */
|
|
673
678
|
get isValid(): boolean;
|
|
674
|
-
/** Accesses a nested type (e.g
|
|
679
|
+
/** Accesses a nested type (e.g., `Foo.Bar`). */
|
|
675
680
|
attr(right: string | ts.Identifier | TypeAttrTsDsl): this;
|
|
676
681
|
toAst(): ts.TypeReferenceNode;
|
|
677
682
|
$validate(): asserts this is this & {
|
|
@@ -684,8 +689,8 @@ declare class TypeExprTsDsl extends Mixed$44 {
|
|
|
684
689
|
type Base = string | MaybeTsDsl<ts.TypeNode>;
|
|
685
690
|
type Index = string | number | MaybeTsDsl<ts.TypeNode>;
|
|
686
691
|
type TypeIdxCtor = (base: Base, index: Index) => TypeIdxTsDsl;
|
|
687
|
-
declare const Mixed$
|
|
688
|
-
declare class TypeIdxTsDsl extends Mixed$
|
|
692
|
+
declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.IndexedAccessTypeNode>, TypeExprMethods>;
|
|
693
|
+
declare class TypeIdxTsDsl extends Mixed$45 {
|
|
689
694
|
readonly '~dsl' = "TypeIdxTsDsl";
|
|
690
695
|
scope: NodeScope;
|
|
691
696
|
protected _base: Base;
|
|
@@ -708,7 +713,7 @@ declare class TypeIdxTsDsl extends Mixed$43 {
|
|
|
708
713
|
type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
|
|
709
714
|
type Type$3 = string | MaybeTsDsl<ts.TypeNode>;
|
|
710
715
|
type TypeOperatorCtor = () => TypeOperatorTsDsl;
|
|
711
|
-
declare const Mixed$
|
|
716
|
+
declare const Mixed$44: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
712
717
|
/**
|
|
713
718
|
* Builds a TypeScript `TypeOperatorNode`, such as:
|
|
714
719
|
*
|
|
@@ -721,7 +726,7 @@ declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
|
721
726
|
*
|
|
722
727
|
* The node will throw during render if required fields are missing.
|
|
723
728
|
*/
|
|
724
|
-
declare class TypeOperatorTsDsl extends Mixed$
|
|
729
|
+
declare class TypeOperatorTsDsl extends Mixed$44 {
|
|
725
730
|
readonly '~dsl' = "TypeOperatorTsDsl";
|
|
726
731
|
scope: NodeScope;
|
|
727
732
|
protected _op?: Op;
|
|
@@ -747,13 +752,13 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
|
|
|
747
752
|
}
|
|
748
753
|
//#endregion
|
|
749
754
|
//#region src/ts-dsl/type/query.d.ts
|
|
750
|
-
type TypeQueryExpr =
|
|
755
|
+
type TypeQueryExpr = NodeName | MaybeTsDsl<TypeTsDsl | ts.Expression>;
|
|
751
756
|
type TypeQueryCtor = (expr: TypeQueryExpr) => TypeQueryTsDsl;
|
|
752
|
-
declare const Mixed$
|
|
753
|
-
declare class TypeQueryTsDsl extends Mixed$
|
|
757
|
+
declare const Mixed$43: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode>, TypeExprMethods>;
|
|
758
|
+
declare class TypeQueryTsDsl extends Mixed$43 {
|
|
754
759
|
readonly '~dsl' = "TypeQueryTsDsl";
|
|
755
760
|
scope: NodeScope;
|
|
756
|
-
protected _expr: TypeQueryExpr
|
|
761
|
+
protected _expr: Ref<TypeQueryExpr>;
|
|
757
762
|
constructor(expr: TypeQueryExpr);
|
|
758
763
|
analyze(ctx: AnalysisContext): void;
|
|
759
764
|
toAst(): ts.TypeQueryNode;
|
|
@@ -766,28 +771,28 @@ type Factory<T extends Ctor> = {
|
|
|
766
771
|
set(fn: T): void;
|
|
767
772
|
};
|
|
768
773
|
declare const f: {
|
|
769
|
-
/** Factory for creating `as` type assertion expressions (e.g
|
|
770
|
-
attr: Factory<AttrCtor>; /** Factory for creating await expressions (e.g
|
|
771
|
-
await: Factory<AwaitCtor>; /** Factory for creating function or method call expressions (e.g
|
|
772
|
-
call: Factory<CallCtor>; /** Factory for creating new expressions (e.g
|
|
774
|
+
/** 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
|
+
attr: Factory<AttrCtor>; /** Factory for creating await expressions (e.g., `await promise`). */
|
|
776
|
+
await: Factory<AwaitCtor>; /** Factory for creating function or method call expressions (e.g., `fn(arg)`). */
|
|
777
|
+
call: Factory<CallCtor>; /** Factory for creating new expressions (e.g., `new ClassName()`). */
|
|
773
778
|
new: Factory<NewCtor>; /** Factory for creating return statements. */
|
|
774
779
|
return: Factory<ReturnCtor>; /** Factories for creating type nodes. */
|
|
775
780
|
type: {
|
|
776
|
-
/** Factory for creating basic type references or type expressions (e.g
|
|
777
|
-
idx: Factory<TypeIdxCtor>; /** Factory for creating type operator nodes (e.g
|
|
778
|
-
operator: Factory<TypeOperatorCtor>; /** Factory for creating type query nodes (e.g
|
|
781
|
+
/** 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
|
+
idx: Factory<TypeIdxCtor>; /** Factory for creating type operator nodes (e.g., `readonly T`, `keyof T`, `unique T`). */
|
|
783
|
+
operator: Factory<TypeOperatorCtor>; /** Factory for creating type query nodes (e.g., `typeof Foo`). */
|
|
779
784
|
query: Factory<TypeQueryCtor>;
|
|
780
|
-
}; /** Factory for creating `typeof` expressions (e.g
|
|
785
|
+
}; /** Factory for creating `typeof` expressions (e.g., `typeof value`). */
|
|
781
786
|
typeofExpr: Factory<TypeOfExprCtor>;
|
|
782
787
|
};
|
|
783
788
|
//#endregion
|
|
784
789
|
//#region src/ts-dsl/mixins/expr.d.ts
|
|
785
790
|
interface ExprMethods extends Node {
|
|
786
|
-
/** Accesses a property on the current expression (e.g
|
|
791
|
+
/** Accesses a property on the current expression (e.g., `this.foo`). */
|
|
787
792
|
attr(...args: DropFirst<Parameters<typeof f.attr>>): ReturnType<typeof f.attr>;
|
|
788
|
-
/** Awaits the current expression (e.g
|
|
793
|
+
/** Awaits the current expression (e.g., `await expr`). */
|
|
789
794
|
await(): ReturnType<typeof f.await>;
|
|
790
|
-
/** Calls the current expression (e.g
|
|
795
|
+
/** Calls the current expression (e.g., `fn(arg1, arg2)`). */
|
|
791
796
|
call(...args: DropFirst<Parameters<typeof f.call>>): ReturnType<typeof f.call>;
|
|
792
797
|
/** Produces a `return` statement returning the current expression. */
|
|
793
798
|
return(): ReturnType<typeof f.return>;
|
|
@@ -795,10 +800,10 @@ interface ExprMethods extends Node {
|
|
|
795
800
|
//#endregion
|
|
796
801
|
//#region src/ts-dsl/expr/call.d.ts
|
|
797
802
|
type CallArgs = ReadonlyArray<CallCallee | undefined>;
|
|
798
|
-
type CallCallee = NodeName
|
|
803
|
+
type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
|
|
799
804
|
type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
|
|
800
|
-
declare const Mixed$
|
|
801
|
-
declare class CallTsDsl extends Mixed$
|
|
805
|
+
declare const Mixed$42: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
806
|
+
declare class CallTsDsl extends Mixed$42 {
|
|
802
807
|
readonly '~dsl' = "CallTsDsl";
|
|
803
808
|
protected _callee: Ref<CallCallee>;
|
|
804
809
|
constructor(callee: CallCallee, ...args: CallArgs);
|
|
@@ -879,7 +884,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
879
884
|
structuralParents?: Map<TsDsl, NodeRelationship>;
|
|
880
885
|
symbol?: Symbol;
|
|
881
886
|
toAst(): T;
|
|
882
|
-
readonly '~brand'
|
|
887
|
+
readonly '~brand' = "heyapi.node";
|
|
883
888
|
/** Branding property to identify the DSL class at runtime. */
|
|
884
889
|
abstract readonly '~dsl': AnyString;
|
|
885
890
|
/** Conditionally applies a callback to this builder. */
|
|
@@ -895,7 +900,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
895
900
|
length: number;
|
|
896
901
|
}): TsDsl | undefined;
|
|
897
902
|
protected $maybeId<T extends string | ts.Expression>(expr: T): T extends string ? ts.Identifier : T;
|
|
898
|
-
protected $name(name: Ref<NodeName
|
|
903
|
+
protected $name(name: Ref<NodeName>): string;
|
|
899
904
|
protected $node<I>(value: I): NodeOfMaybe<I>;
|
|
900
905
|
protected $type<I>(value: I, args?: ReadonlyArray<ts.TypeNode>): TypeOfMaybe<I>;
|
|
901
906
|
private _name?;
|
|
@@ -909,6 +914,34 @@ declare abstract class TypeTsDsl<T extends ts.LiteralTypeNode | ts.QualifiedName
|
|
|
909
914
|
type TypeOfMaybe<I> = undefined extends I ? TypeOf<NonNullable<FromRef<I>>> | undefined : TypeOf<FromRef<I>>;
|
|
910
915
|
type TypeOf<I> = I extends ReadonlyArray<infer U> ? ReadonlyArray<TypeOf<U>> : I extends string ? ts.TypeNode : I extends boolean ? ts.LiteralTypeNode : I extends TsDsl<infer N> ? N : I extends ts.TypeNode ? I : never;
|
|
911
916
|
//#endregion
|
|
917
|
+
//#region src/ts-dsl/expr/postfix.d.ts
|
|
918
|
+
type PostfixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
919
|
+
type PostfixOp = ts.PostfixUnaryOperator;
|
|
920
|
+
declare const Mixed$41: abstract new () => TsDsl<ts.PostfixUnaryExpression>;
|
|
921
|
+
declare class PostfixTsDsl extends Mixed$41 {
|
|
922
|
+
readonly '~dsl' = "PostfixTsDsl";
|
|
923
|
+
protected _expr?: PostfixExpr;
|
|
924
|
+
protected _op?: PostfixOp;
|
|
925
|
+
constructor(expr?: PostfixExpr, op?: PostfixOp);
|
|
926
|
+
analyze(ctx: AnalysisContext): void;
|
|
927
|
+
/** Returns true when all required builder calls are present. */
|
|
928
|
+
get isValid(): boolean;
|
|
929
|
+
/** Sets the operator to MinusMinusToken for decrement (`--`). */
|
|
930
|
+
dec(): this;
|
|
931
|
+
/** Sets the operand (the expression being postfixed). */
|
|
932
|
+
expr(expr: PostfixExpr): this;
|
|
933
|
+
/** Sets the operator to PlusPlusToken for increment (`++`). */
|
|
934
|
+
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
|
|
912
945
|
//#region src/ts-dsl/layout/doc.d.ts
|
|
913
946
|
type DocMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
914
947
|
type DocFn = (d: DocTsDsl) => void;
|
|
@@ -920,7 +953,7 @@ declare class DocTsDsl extends TsDsl<ts.Node> {
|
|
|
920
953
|
analyze(ctx: AnalysisContext): void;
|
|
921
954
|
add(lines: DocLines): this;
|
|
922
955
|
apply<T extends ts.Node>(node: T): T;
|
|
923
|
-
toAst():
|
|
956
|
+
toAst(): ts.Identifier;
|
|
924
957
|
}
|
|
925
958
|
//#endregion
|
|
926
959
|
//#region src/ts-dsl/layout/hint.d.ts
|
|
@@ -934,7 +967,7 @@ declare class HintTsDsl extends TsDsl<ts.Node> {
|
|
|
934
967
|
analyze(ctx: AnalysisContext): void;
|
|
935
968
|
add(lines: HintLines): this;
|
|
936
969
|
apply<T extends ts.Node>(node: T): T;
|
|
937
|
-
toAst():
|
|
970
|
+
toAst(): ts.Identifier;
|
|
938
971
|
}
|
|
939
972
|
//#endregion
|
|
940
973
|
//#region src/ts-dsl/mixins/do.d.ts
|
|
@@ -949,8 +982,8 @@ interface DoMethods extends Node {
|
|
|
949
982
|
//#endregion
|
|
950
983
|
//#region src/ts-dsl/stmt/if.d.ts
|
|
951
984
|
type IfCondition = string | MaybeTsDsl<ts.Expression>;
|
|
952
|
-
declare const Mixed$
|
|
953
|
-
declare class IfTsDsl extends Mixed$
|
|
985
|
+
declare const Mixed$40: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
|
|
986
|
+
declare class IfTsDsl extends Mixed$40 {
|
|
954
987
|
readonly '~dsl' = "IfTsDsl";
|
|
955
988
|
protected _condition?: IfCondition;
|
|
956
989
|
protected _else?: Array<DoExpr>;
|
|
@@ -1046,6 +1079,34 @@ interface TsLiteral extends TsNodeBase {
|
|
|
1046
1079
|
}
|
|
1047
1080
|
declare function createLiteral(value: TsLiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsLiteral;
|
|
1048
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
|
|
1049
1110
|
//#region src/ts-dsl/layout/note.d.ts
|
|
1050
1111
|
type NoteMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
1051
1112
|
type NoteFn = (d: NoteTsDsl) => void;
|
|
@@ -1057,14 +1118,14 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
|
1057
1118
|
analyze(ctx: AnalysisContext): void;
|
|
1058
1119
|
add(lines: NoteLines): this;
|
|
1059
1120
|
apply<T extends ts.Node>(node: T): T;
|
|
1060
|
-
toAst():
|
|
1121
|
+
toAst(): ts.Identifier;
|
|
1061
1122
|
}
|
|
1062
1123
|
//#endregion
|
|
1063
1124
|
//#region src/ts-dsl/mixins/value.d.ts
|
|
1064
1125
|
type ValueExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1065
1126
|
interface ValueMethods extends Node {
|
|
1066
1127
|
$value(): ts.Expression | undefined;
|
|
1067
|
-
/** Sets the initializer expression (e.g
|
|
1128
|
+
/** Sets the initializer expression (e.g., `= expr`). */
|
|
1068
1129
|
assign(expr: ValueExpr): this;
|
|
1069
1130
|
}
|
|
1070
1131
|
//#endregion
|
|
@@ -1076,7 +1137,7 @@ interface PatternMethods extends Node {
|
|
|
1076
1137
|
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
1077
1138
|
/** Defines an object binding pattern. */
|
|
1078
1139
|
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
1079
|
-
/** Adds a spread element (e.g
|
|
1140
|
+
/** Adds a spread element (e.g., `...args`, `...options`) to the pattern. */
|
|
1080
1141
|
spread(name: string): this;
|
|
1081
1142
|
}
|
|
1082
1143
|
//#endregion
|
|
@@ -1084,12 +1145,12 @@ interface PatternMethods extends Node {
|
|
|
1084
1145
|
interface DecoratorMethods extends Node {
|
|
1085
1146
|
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
1086
1147
|
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
1087
|
-
/** Adds a decorator (e.g
|
|
1088
|
-
decorator(name: NodeName
|
|
1148
|
+
/** Adds a decorator (e.g., `@sealed({ in: 'root' })`). */
|
|
1149
|
+
decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
1089
1150
|
}
|
|
1090
1151
|
//#endregion
|
|
1091
1152
|
//#region src/ts-dsl/decl/param.d.ts
|
|
1092
|
-
type ParamName = NodeName
|
|
1153
|
+
type ParamName = NodeName | ParamFn;
|
|
1093
1154
|
type ParamFn = (p: ParamTsDsl) => void;
|
|
1094
1155
|
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
1095
1156
|
declare const Mixed$38: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
@@ -1107,15 +1168,27 @@ declare class ParamTsDsl extends Mixed$38 {
|
|
|
1107
1168
|
private missingRequiredCalls;
|
|
1108
1169
|
}
|
|
1109
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
|
|
1110
1183
|
//#region src/ts-dsl/type/param.d.ts
|
|
1111
|
-
type TypeParamExpr = NodeName
|
|
1112
|
-
declare const Mixed$
|
|
1113
|
-
declare class TypeParamTsDsl extends Mixed$
|
|
1184
|
+
type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
1185
|
+
declare const Mixed$36: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
|
|
1186
|
+
declare class TypeParamTsDsl extends Mixed$36 {
|
|
1114
1187
|
readonly '~dsl' = "TypeParamTsDsl";
|
|
1115
1188
|
scope: NodeScope;
|
|
1116
1189
|
protected constraint?: Ref<TypeParamExpr>;
|
|
1117
1190
|
protected defaultValue?: Ref<TypeParamExpr>;
|
|
1118
|
-
constructor(name?: NodeName
|
|
1191
|
+
constructor(name?: NodeName, fn?: (name: TypeParamTsDsl) => void);
|
|
1119
1192
|
analyze(ctx: AnalysisContext): void;
|
|
1120
1193
|
/** Sets the parameter default value. */
|
|
1121
1194
|
default(value: TypeParamExpr): this;
|
|
@@ -1127,10 +1200,10 @@ declare class TypeParamTsDsl extends Mixed$37 {
|
|
|
1127
1200
|
interface TypeParamsMethods extends Node {
|
|
1128
1201
|
/** Returns the type parameters as an array of ts.TypeParameterDeclaration nodes. */
|
|
1129
1202
|
$generics(): ReadonlyArray<ts.TypeParameterDeclaration> | undefined;
|
|
1130
|
-
/** Adds a single type parameter (e.g
|
|
1203
|
+
/** Adds a single type parameter (e.g., `T` in `Array<T>`). */
|
|
1131
1204
|
generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
|
|
1132
|
-
/** Adds type parameters (e.g
|
|
1133
|
-
generics(...args: ReadonlyArray<NodeName
|
|
1205
|
+
/** Adds type parameters (e.g., `Map<string, T>`). */
|
|
1206
|
+
generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
|
|
1134
1207
|
}
|
|
1135
1208
|
//#endregion
|
|
1136
1209
|
//#region src/ts-dsl/mixins/modifiers.d.ts
|
|
@@ -1243,13 +1316,13 @@ interface DocMethods extends Node {
|
|
|
1243
1316
|
}
|
|
1244
1317
|
//#endregion
|
|
1245
1318
|
//#region src/ts-dsl/decl/field.d.ts
|
|
1246
|
-
type FieldType = NodeName
|
|
1247
|
-
declare const Mixed$
|
|
1248
|
-
declare class FieldTsDsl extends Mixed$
|
|
1319
|
+
type FieldType = NodeName | TypeTsDsl;
|
|
1320
|
+
declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
|
|
1321
|
+
declare class FieldTsDsl extends Mixed$35 {
|
|
1249
1322
|
readonly '~dsl' = "FieldTsDsl";
|
|
1250
1323
|
readonly nameSanitizer: (name: string) => string;
|
|
1251
1324
|
protected _type?: TypeTsDsl;
|
|
1252
|
-
constructor(name: NodeName
|
|
1325
|
+
constructor(name: NodeName, fn?: (f: FieldTsDsl) => void);
|
|
1253
1326
|
analyze(ctx: AnalysisContext): void;
|
|
1254
1327
|
/** Sets the field type. */
|
|
1255
1328
|
type(type: FieldType): this;
|
|
@@ -1267,8 +1340,8 @@ interface ParamMethods extends Node {
|
|
|
1267
1340
|
}
|
|
1268
1341
|
//#endregion
|
|
1269
1342
|
//#region src/ts-dsl/decl/init.d.ts
|
|
1270
|
-
declare const Mixed$
|
|
1271
|
-
declare class InitTsDsl extends Mixed$
|
|
1343
|
+
declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
|
|
1344
|
+
declare class InitTsDsl extends Mixed$34 {
|
|
1272
1345
|
readonly '~dsl' = "InitTsDsl";
|
|
1273
1346
|
constructor(fn?: (i: InitTsDsl) => void);
|
|
1274
1347
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1280,41 +1353,41 @@ interface TypeReturnsMethods extends Node {
|
|
|
1280
1353
|
/** Returns the return type node. */
|
|
1281
1354
|
$returns(): ts.TypeNode | undefined;
|
|
1282
1355
|
/** Sets the return type. */
|
|
1283
|
-
returns(type: NodeName
|
|
1356
|
+
returns(type: NodeName | TypeTsDsl): this;
|
|
1284
1357
|
}
|
|
1285
1358
|
//#endregion
|
|
1286
1359
|
//#region src/ts-dsl/decl/method.d.ts
|
|
1287
|
-
declare const Mixed$
|
|
1288
|
-
declare class MethodTsDsl extends Mixed$
|
|
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 {
|
|
1289
1362
|
readonly '~dsl' = "MethodTsDsl";
|
|
1290
1363
|
readonly nameSanitizer: (name: string) => string;
|
|
1291
|
-
constructor(name: NodeName
|
|
1364
|
+
constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
|
|
1292
1365
|
analyze(ctx: AnalysisContext): void;
|
|
1293
1366
|
toAst(): ts.MethodDeclaration;
|
|
1294
1367
|
}
|
|
1295
1368
|
//#endregion
|
|
1296
1369
|
//#region src/ts-dsl/decl/class.d.ts
|
|
1297
1370
|
type Body = Array<MaybeTsDsl<ts.ClassElement | ts.Node>>;
|
|
1298
|
-
declare const Mixed$
|
|
1299
|
-
declare class ClassTsDsl extends Mixed$
|
|
1371
|
+
declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
|
|
1372
|
+
declare class ClassTsDsl extends Mixed$32 {
|
|
1300
1373
|
readonly '~dsl' = "ClassTsDsl";
|
|
1301
1374
|
readonly nameSanitizer: (name: string) => string;
|
|
1302
|
-
protected baseClass?: Ref<NodeName
|
|
1375
|
+
protected baseClass?: Ref<NodeName>;
|
|
1303
1376
|
protected body: Body;
|
|
1304
|
-
constructor(name: NodeName
|
|
1377
|
+
constructor(name: NodeName);
|
|
1305
1378
|
analyze(ctx: AnalysisContext): void;
|
|
1306
1379
|
/** Returns true if the class has any members. */
|
|
1307
1380
|
get hasBody(): boolean;
|
|
1308
1381
|
/** Adds one or more class members (fields, methods, etc.). */
|
|
1309
1382
|
do(...items: Body): this;
|
|
1310
1383
|
/** Records a base class to extend from. */
|
|
1311
|
-
extends(base?: NodeName
|
|
1384
|
+
extends(base?: NodeName): this;
|
|
1312
1385
|
/** Adds a class field. */
|
|
1313
|
-
field(name: NodeName
|
|
1386
|
+
field(name: NodeName, fn?: (f: FieldTsDsl) => void): this;
|
|
1314
1387
|
/** Adds a class constructor. */
|
|
1315
1388
|
init(fn?: InitTsDsl | ((i: InitTsDsl) => void)): this;
|
|
1316
1389
|
/** Adds a class method. */
|
|
1317
|
-
method(name: NodeName
|
|
1390
|
+
method(name: NodeName, fn?: (m: MethodTsDsl) => void): this;
|
|
1318
1391
|
/** Inserts an empty line between members for formatting. */
|
|
1319
1392
|
newline(): this;
|
|
1320
1393
|
toAst(): ts.ClassDeclaration;
|
|
@@ -1323,11 +1396,11 @@ declare class ClassTsDsl extends Mixed$33 {
|
|
|
1323
1396
|
}
|
|
1324
1397
|
//#endregion
|
|
1325
1398
|
//#region src/ts-dsl/decl/decorator.d.ts
|
|
1326
|
-
declare const Mixed$
|
|
1327
|
-
declare class DecoratorTsDsl extends Mixed$
|
|
1399
|
+
declare const Mixed$31: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
|
|
1400
|
+
declare class DecoratorTsDsl extends Mixed$31 {
|
|
1328
1401
|
readonly '~dsl' = "DecoratorTsDsl";
|
|
1329
1402
|
readonly nameSanitizer: (name: string) => string;
|
|
1330
|
-
constructor(name: NodeName
|
|
1403
|
+
constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
|
|
1331
1404
|
analyze(ctx: AnalysisContext): void;
|
|
1332
1405
|
toAst(): ts.Decorator;
|
|
1333
1406
|
}
|
|
@@ -1335,11 +1408,11 @@ declare class DecoratorTsDsl extends Mixed$32 {
|
|
|
1335
1408
|
//#region src/ts-dsl/decl/member.d.ts
|
|
1336
1409
|
type Value$2 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1337
1410
|
type ValueFn$1 = Value$2 | ((m: EnumMemberTsDsl) => void);
|
|
1338
|
-
declare const Mixed$
|
|
1339
|
-
declare class EnumMemberTsDsl extends Mixed$
|
|
1411
|
+
declare const Mixed$30: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
|
|
1412
|
+
declare class EnumMemberTsDsl extends Mixed$30 {
|
|
1340
1413
|
readonly '~dsl' = "EnumMemberTsDsl";
|
|
1341
1414
|
private _value?;
|
|
1342
|
-
constructor(name: NodeName
|
|
1415
|
+
constructor(name: NodeName, value?: ValueFn$1);
|
|
1343
1416
|
analyze(ctx: AnalysisContext): void;
|
|
1344
1417
|
/** Sets the enum member value. */
|
|
1345
1418
|
value(value?: Value$2): this;
|
|
@@ -1349,12 +1422,12 @@ declare class EnumMemberTsDsl extends Mixed$31 {
|
|
|
1349
1422
|
//#region src/ts-dsl/decl/enum.d.ts
|
|
1350
1423
|
type Value$1 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1351
1424
|
type ValueFn = Value$1 | ((m: EnumMemberTsDsl) => void);
|
|
1352
|
-
declare const Mixed$
|
|
1353
|
-
declare class EnumTsDsl extends Mixed$
|
|
1425
|
+
declare const Mixed$29: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
|
|
1426
|
+
declare class EnumTsDsl extends Mixed$29 {
|
|
1354
1427
|
readonly '~dsl' = "EnumTsDsl";
|
|
1355
1428
|
readonly nameSanitizer: (name: string) => string;
|
|
1356
1429
|
private _members;
|
|
1357
|
-
constructor(name: NodeName
|
|
1430
|
+
constructor(name: NodeName, fn?: (e: EnumTsDsl) => void);
|
|
1358
1431
|
analyze(ctx: AnalysisContext): void;
|
|
1359
1432
|
/** Adds an enum member. */
|
|
1360
1433
|
member(name: string, value?: ValueFn): this;
|
|
@@ -1365,15 +1438,15 @@ declare class EnumTsDsl extends Mixed$30 {
|
|
|
1365
1438
|
//#endregion
|
|
1366
1439
|
//#region src/ts-dsl/decl/func.d.ts
|
|
1367
1440
|
type FuncMode = 'arrow' | 'decl' | 'expr';
|
|
1368
|
-
declare const Mixed$
|
|
1369
|
-
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$
|
|
1441
|
+
declare const Mixed$28: 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>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
|
|
1442
|
+
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
|
|
1370
1443
|
readonly '~dsl' = "FuncTsDsl";
|
|
1371
1444
|
readonly nameSanitizer: (name: string) => string;
|
|
1372
1445
|
protected mode?: FuncMode;
|
|
1373
1446
|
constructor();
|
|
1374
1447
|
constructor(fn: (f: ImplFuncTsDsl<'arrow'>) => void);
|
|
1375
|
-
constructor(name: NodeName
|
|
1376
|
-
constructor(name: NodeName
|
|
1448
|
+
constructor(name: NodeName);
|
|
1449
|
+
constructor(name: NodeName, fn: (f: ImplFuncTsDsl<'decl'>) => void);
|
|
1377
1450
|
analyze(ctx: AnalysisContext): void;
|
|
1378
1451
|
/** Returns true when all required builder calls are present. */
|
|
1379
1452
|
get isValid(): boolean;
|
|
@@ -1390,27 +1463,27 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$29 {
|
|
|
1390
1463
|
declare const FuncTsDsl: {
|
|
1391
1464
|
new (): FuncTsDsl<"arrow">;
|
|
1392
1465
|
new (fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
|
|
1393
|
-
new (name: NodeName
|
|
1394
|
-
new (name: NodeName
|
|
1466
|
+
new (name: NodeName): FuncTsDsl<"decl">;
|
|
1467
|
+
new (name: NodeName, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
1395
1468
|
} & typeof ImplFuncTsDsl;
|
|
1396
1469
|
type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
|
|
1397
1470
|
//#endregion
|
|
1398
1471
|
//#region src/ts-dsl/decl/getter.d.ts
|
|
1399
|
-
declare const Mixed$
|
|
1400
|
-
declare class GetterTsDsl extends Mixed$
|
|
1472
|
+
declare const Mixed$27: 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>;
|
|
1473
|
+
declare class GetterTsDsl extends Mixed$27 {
|
|
1401
1474
|
readonly '~dsl' = "GetterTsDsl";
|
|
1402
1475
|
readonly nameSanitizer: (name: string) => string;
|
|
1403
|
-
constructor(name: NodeName
|
|
1476
|
+
constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
|
|
1404
1477
|
analyze(ctx: AnalysisContext): void;
|
|
1405
1478
|
toAst(): ts.GetAccessorDeclaration;
|
|
1406
1479
|
}
|
|
1407
1480
|
//#endregion
|
|
1408
1481
|
//#region src/ts-dsl/decl/pattern.d.ts
|
|
1409
|
-
declare const Mixed$
|
|
1482
|
+
declare const Mixed$26: abstract new () => TsDsl<ts.BindingName>;
|
|
1410
1483
|
/**
|
|
1411
|
-
* Builds binding patterns (e.g
|
|
1484
|
+
* Builds binding patterns (e.g., `{ foo, bar }`, `[a, b, ...rest]`).
|
|
1412
1485
|
*/
|
|
1413
|
-
declare class PatternTsDsl extends Mixed$
|
|
1486
|
+
declare class PatternTsDsl extends Mixed$26 {
|
|
1414
1487
|
readonly '~dsl' = "PatternTsDsl";
|
|
1415
1488
|
protected pattern?: {
|
|
1416
1489
|
kind: 'array';
|
|
@@ -1423,11 +1496,11 @@ declare class PatternTsDsl extends Mixed$27 {
|
|
|
1423
1496
|
analyze(ctx: AnalysisContext): void;
|
|
1424
1497
|
/** Returns true when all required builder calls are present. */
|
|
1425
1498
|
get isValid(): boolean;
|
|
1426
|
-
/** Defines an array pattern (e.g
|
|
1499
|
+
/** Defines an array pattern (e.g., `[a, b, c]`). */
|
|
1427
1500
|
array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
|
|
1428
|
-
/** Defines an object pattern (e.g
|
|
1501
|
+
/** Defines an object pattern (e.g., `{ a, b: alias }`). */
|
|
1429
1502
|
object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
|
|
1430
|
-
/** Adds a spread element (e.g
|
|
1503
|
+
/** Adds a spread element (e.g., `...rest`, `...options`, `...args`). */
|
|
1431
1504
|
spread(name: string): this;
|
|
1432
1505
|
toAst(): ts.ObjectBindingPattern | ts.ArrayBindingPattern;
|
|
1433
1506
|
$validate(): asserts this is this & {
|
|
@@ -1444,11 +1517,11 @@ declare class PatternTsDsl extends Mixed$27 {
|
|
|
1444
1517
|
}
|
|
1445
1518
|
//#endregion
|
|
1446
1519
|
//#region src/ts-dsl/decl/setter.d.ts
|
|
1447
|
-
declare const Mixed$
|
|
1448
|
-
declare class SetterTsDsl extends Mixed$
|
|
1520
|
+
declare const Mixed$25: 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>;
|
|
1521
|
+
declare class SetterTsDsl extends Mixed$25 {
|
|
1449
1522
|
readonly '~dsl' = "SetterTsDsl";
|
|
1450
1523
|
readonly nameSanitizer: (name: string) => string;
|
|
1451
|
-
constructor(name: NodeName
|
|
1524
|
+
constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
|
|
1452
1525
|
analyze(ctx: AnalysisContext): void;
|
|
1453
1526
|
toAst(): ts.SetAccessorDeclaration;
|
|
1454
1527
|
}
|
|
@@ -1466,8 +1539,8 @@ interface LayoutMethods extends Node {
|
|
|
1466
1539
|
}
|
|
1467
1540
|
//#endregion
|
|
1468
1541
|
//#region src/ts-dsl/expr/array.d.ts
|
|
1469
|
-
declare const Mixed$
|
|
1470
|
-
declare class ArrayTsDsl extends Mixed$
|
|
1542
|
+
declare const Mixed$24: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, LayoutMethods>, ExprMethods>, AsMethods>;
|
|
1543
|
+
declare class ArrayTsDsl extends Mixed$24 {
|
|
1471
1544
|
readonly '~dsl' = "ArrayTsDsl";
|
|
1472
1545
|
protected _elements: Array<{
|
|
1473
1546
|
expr: MaybeTsDsl<ts.Expression>;
|
|
@@ -1488,19 +1561,19 @@ declare class ArrayTsDsl extends Mixed$25 {
|
|
|
1488
1561
|
}
|
|
1489
1562
|
//#endregion
|
|
1490
1563
|
//#region src/ts-dsl/expr/expr.d.ts
|
|
1491
|
-
type Id = NodeName
|
|
1492
|
-
declare const Mixed$
|
|
1493
|
-
declare class ExprTsDsl extends Mixed$
|
|
1564
|
+
type Id = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1565
|
+
declare const Mixed$23: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
1566
|
+
declare class ExprTsDsl extends Mixed$23 {
|
|
1494
1567
|
readonly '~dsl' = "ExprTsDsl";
|
|
1495
1568
|
protected _exprInput: Ref<Id>;
|
|
1496
1569
|
constructor(id: Id);
|
|
1497
1570
|
analyze(ctx: AnalysisContext): void;
|
|
1498
|
-
toAst():
|
|
1571
|
+
toAst(): ts.Expression;
|
|
1499
1572
|
}
|
|
1500
1573
|
//#endregion
|
|
1501
1574
|
//#region src/ts-dsl/expr/id.d.ts
|
|
1502
|
-
declare const Mixed$
|
|
1503
|
-
declare class IdTsDsl extends Mixed$
|
|
1575
|
+
declare const Mixed$22: abstract new () => TsDsl<ts.Identifier>;
|
|
1576
|
+
declare class IdTsDsl extends Mixed$22 {
|
|
1504
1577
|
readonly '~dsl' = "IdTsDsl";
|
|
1505
1578
|
constructor(name: string);
|
|
1506
1579
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1557,13 +1630,13 @@ declare const ts$1: {
|
|
|
1557
1630
|
};
|
|
1558
1631
|
//#endregion
|
|
1559
1632
|
//#region src/ts-dsl/expr/literal.d.ts
|
|
1560
|
-
declare const Mixed$
|
|
1561
|
-
declare class LiteralTsDsl extends Mixed$
|
|
1633
|
+
declare const Mixed$21: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral>, AsMethods>;
|
|
1634
|
+
declare class LiteralTsDsl extends Mixed$21 {
|
|
1562
1635
|
readonly '~dsl' = "LiteralTsDsl";
|
|
1563
1636
|
protected value: ts$1.LiteralValue;
|
|
1564
1637
|
constructor(value: ts$1.LiteralValue);
|
|
1565
1638
|
analyze(ctx: AnalysisContext): void;
|
|
1566
|
-
toAst():
|
|
1639
|
+
toAst(): ts.BigIntLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral;
|
|
1567
1640
|
}
|
|
1568
1641
|
//#endregion
|
|
1569
1642
|
//#region src/ts-dsl/mixins/hint.d.ts
|
|
@@ -1573,8 +1646,8 @@ interface HintMethods extends Node {
|
|
|
1573
1646
|
}
|
|
1574
1647
|
//#endregion
|
|
1575
1648
|
//#region src/ts-dsl/expr/prop.d.ts
|
|
1576
|
-
type Expr$1 = NodeName
|
|
1577
|
-
type Stmt$1 = NodeName
|
|
1649
|
+
type Expr$1 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1650
|
+
type Stmt$1 = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1578
1651
|
type ObjectPropKind = 'computed' | 'getter' | 'prop' | 'setter' | 'spread';
|
|
1579
1652
|
type Meta = {
|
|
1580
1653
|
kind: 'computed';
|
|
@@ -1592,8 +1665,8 @@ type Meta = {
|
|
|
1592
1665
|
kind: 'spread';
|
|
1593
1666
|
name?: undefined;
|
|
1594
1667
|
};
|
|
1595
|
-
declare const Mixed$
|
|
1596
|
-
declare class ObjectPropTsDsl extends Mixed$
|
|
1668
|
+
declare const Mixed$20: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
|
|
1669
|
+
declare class ObjectPropTsDsl extends Mixed$20 {
|
|
1597
1670
|
readonly '~dsl' = "ObjectPropTsDsl";
|
|
1598
1671
|
protected _value?: Ref<Expr$1 | Stmt$1>;
|
|
1599
1672
|
protected _meta: Meta;
|
|
@@ -1603,7 +1676,7 @@ declare class ObjectPropTsDsl extends Mixed$21 {
|
|
|
1603
1676
|
analyze(ctx: AnalysisContext): void;
|
|
1604
1677
|
get isValid(): boolean;
|
|
1605
1678
|
value(value: Expr$1 | Stmt$1 | ((p: ObjectPropTsDsl) => void)): this;
|
|
1606
|
-
toAst():
|
|
1679
|
+
toAst(): ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment;
|
|
1607
1680
|
$validate(): asserts this is this & {
|
|
1608
1681
|
_value: Expr$1 | Stmt$1;
|
|
1609
1682
|
kind: ObjectPropKind;
|
|
@@ -1612,12 +1685,12 @@ declare class ObjectPropTsDsl extends Mixed$21 {
|
|
|
1612
1685
|
}
|
|
1613
1686
|
//#endregion
|
|
1614
1687
|
//#region src/ts-dsl/expr/object.d.ts
|
|
1615
|
-
type Expr = NodeName
|
|
1616
|
-
type Stmt = NodeName
|
|
1688
|
+
type Expr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1689
|
+
type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1617
1690
|
type ExprFn = Expr | ((p: ObjectPropTsDsl) => void);
|
|
1618
1691
|
type StmtFn = Stmt | ((p: ObjectPropTsDsl) => void);
|
|
1619
|
-
declare const Mixed$
|
|
1620
|
-
declare class ObjectTsDsl extends Mixed$
|
|
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 {
|
|
1621
1694
|
readonly '~dsl' = "ObjectTsDsl";
|
|
1622
1695
|
protected _props: Map<string, ObjectPropTsDsl>;
|
|
1623
1696
|
protected _spreadCounter: number;
|
|
@@ -1625,9 +1698,9 @@ declare class ObjectTsDsl extends Mixed$20 {
|
|
|
1625
1698
|
analyze(ctx: AnalysisContext): void;
|
|
1626
1699
|
/** Returns composite key for the property. */
|
|
1627
1700
|
private _propKey;
|
|
1628
|
-
/** Adds a computed property (e.g
|
|
1701
|
+
/** Adds a computed property (e.g., `{ [expr]: value }`), or removes if null. */
|
|
1629
1702
|
computed(name: string, expr: ExprFn | null): this;
|
|
1630
|
-
/** Adds a getter property (e.g
|
|
1703
|
+
/** Adds a getter property (e.g., `{ get foo() { ... } }`), or removes if null. */
|
|
1631
1704
|
getter(name: string, stmt: StmtFn | null): this;
|
|
1632
1705
|
/** Returns true if object has at least one property or spread. */
|
|
1633
1706
|
hasProps(): boolean;
|
|
@@ -1637,39 +1710,13 @@ declare class ObjectTsDsl extends Mixed$20 {
|
|
|
1637
1710
|
prop(name: string, expr: ExprFn | null): this;
|
|
1638
1711
|
/** Adds multiple properties. */
|
|
1639
1712
|
props(...props: ReadonlyArray<ObjectPropTsDsl>): this;
|
|
1640
|
-
/** Adds a setter property (e.g
|
|
1713
|
+
/** Adds a setter property (e.g., `{ set foo(v) { ... } }`), or removes if null. */
|
|
1641
1714
|
setter(name: string, stmt: StmtFn | null): this;
|
|
1642
|
-
/** Adds a spread property (e.g
|
|
1715
|
+
/** Adds a spread property (e.g., `{ ...options }`). */
|
|
1643
1716
|
spread(expr: ExprFn): this;
|
|
1644
1717
|
toAst(): ts.ObjectLiteralExpression;
|
|
1645
1718
|
}
|
|
1646
1719
|
//#endregion
|
|
1647
|
-
//#region src/ts-dsl/expr/prefix.d.ts
|
|
1648
|
-
declare const Mixed$19: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
|
|
1649
|
-
declare class PrefixTsDsl extends Mixed$19 {
|
|
1650
|
-
readonly '~dsl' = "PrefixTsDsl";
|
|
1651
|
-
protected _expr?: string | MaybeTsDsl<ts.Expression>;
|
|
1652
|
-
protected _op?: ts.PrefixUnaryOperator;
|
|
1653
|
-
constructor(expr?: string | MaybeTsDsl<ts.Expression>, op?: ts.PrefixUnaryOperator);
|
|
1654
|
-
analyze(ctx: AnalysisContext): void;
|
|
1655
|
-
/** Returns true when all required builder calls are present. */
|
|
1656
|
-
get isValid(): boolean;
|
|
1657
|
-
/** Sets the operand (the expression being prefixed). */
|
|
1658
|
-
expr(expr: string | MaybeTsDsl<ts.Expression>): this;
|
|
1659
|
-
/** Sets the operator to MinusToken for negation (`-`). */
|
|
1660
|
-
neg(): this;
|
|
1661
|
-
/** Sets the operator to ExclamationToken for logical NOT (`!`). */
|
|
1662
|
-
not(): this;
|
|
1663
|
-
/** Sets the operator (e.g. `ts.SyntaxKind.ExclamationToken` for `!`). */
|
|
1664
|
-
op(op: ts.PrefixUnaryOperator): this;
|
|
1665
|
-
toAst(): ts.PrefixUnaryExpression;
|
|
1666
|
-
$validate(): asserts this is this & {
|
|
1667
|
-
_expr: string | MaybeTsDsl<ts.Expression>;
|
|
1668
|
-
_op: ts.PrefixUnaryOperator;
|
|
1669
|
-
};
|
|
1670
|
-
private missingRequiredCalls;
|
|
1671
|
-
}
|
|
1672
|
-
//#endregion
|
|
1673
1720
|
//#region src/ts-dsl/expr/regexp.d.ts
|
|
1674
1721
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
|
|
1675
1722
|
type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
|
|
@@ -1683,21 +1730,9 @@ declare class RegExpTsDsl extends Mixed$18 {
|
|
|
1683
1730
|
toAst(): ts.RegularExpressionLiteral;
|
|
1684
1731
|
}
|
|
1685
1732
|
//#endregion
|
|
1686
|
-
//#region src/ts-dsl/expr/template.d.ts
|
|
1687
|
-
type TemplatePart = NodeName$1 | MaybeTsDsl<ts.Expression>;
|
|
1688
|
-
declare const Mixed$17: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
|
|
1689
|
-
declare class TemplateTsDsl extends Mixed$17 {
|
|
1690
|
-
readonly '~dsl' = "TemplateTsDsl";
|
|
1691
|
-
protected parts: Array<Ref<TemplatePart>>;
|
|
1692
|
-
constructor(value?: TemplatePart);
|
|
1693
|
-
analyze(ctx: AnalysisContext): void;
|
|
1694
|
-
add(value: TemplatePart): this;
|
|
1695
|
-
toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
|
|
1696
|
-
}
|
|
1697
|
-
//#endregion
|
|
1698
1733
|
//#region src/ts-dsl/expr/ternary.d.ts
|
|
1699
|
-
declare const Mixed$
|
|
1700
|
-
declare class TernaryTsDsl extends Mixed$
|
|
1734
|
+
declare const Mixed$17: abstract new () => TsDsl<ts.ConditionalExpression>;
|
|
1735
|
+
declare class TernaryTsDsl extends Mixed$17 {
|
|
1701
1736
|
readonly '~dsl' = "TernaryTsDsl";
|
|
1702
1737
|
protected _condition?: string | MaybeTsDsl<ts.Expression>;
|
|
1703
1738
|
protected _then?: string | MaybeTsDsl<ts.Expression>;
|
|
@@ -1722,21 +1757,88 @@ declare class TernaryTsDsl extends Mixed$16 {
|
|
|
1722
1757
|
declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
|
|
1723
1758
|
readonly '~dsl' = "NewlineTsDsl";
|
|
1724
1759
|
analyze(ctx: AnalysisContext): void;
|
|
1725
|
-
toAst():
|
|
1760
|
+
toAst(): ts.Identifier;
|
|
1726
1761
|
}
|
|
1727
1762
|
//#endregion
|
|
1728
1763
|
//#region src/ts-dsl/stmt/block.d.ts
|
|
1729
|
-
declare const Mixed$
|
|
1730
|
-
declare class BlockTsDsl extends Mixed$
|
|
1764
|
+
declare const Mixed$16: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
|
|
1765
|
+
declare class BlockTsDsl extends Mixed$16 {
|
|
1731
1766
|
readonly '~dsl' = "BlockTsDsl";
|
|
1732
1767
|
constructor(...items: Array<DoExpr>);
|
|
1733
1768
|
analyze(ctx: AnalysisContext): void;
|
|
1734
1769
|
toAst(): ts.Block;
|
|
1735
1770
|
}
|
|
1736
1771
|
//#endregion
|
|
1772
|
+
//#region src/ts-dsl/stmt/var.d.ts
|
|
1773
|
+
declare const Mixed$15: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
|
|
1774
|
+
declare class VarTsDsl extends Mixed$15 {
|
|
1775
|
+
readonly '~dsl' = "VarTsDsl";
|
|
1776
|
+
readonly nameSanitizer: (name: string) => string;
|
|
1777
|
+
protected kind: ts.NodeFlags;
|
|
1778
|
+
protected _type?: TypeTsDsl;
|
|
1779
|
+
constructor(name?: NodeName);
|
|
1780
|
+
analyze(ctx: AnalysisContext): void;
|
|
1781
|
+
/** Returns true when all required builder calls are present. */
|
|
1782
|
+
get isValid(): boolean;
|
|
1783
|
+
const(): this;
|
|
1784
|
+
let(): this;
|
|
1785
|
+
/** Sets the variable type. */
|
|
1786
|
+
type(type: string | TypeTsDsl): this;
|
|
1787
|
+
var(): this;
|
|
1788
|
+
toAst(): ts.VariableStatement;
|
|
1789
|
+
$validate(): asserts this;
|
|
1790
|
+
private missingRequiredCalls;
|
|
1791
|
+
}
|
|
1792
|
+
//#endregion
|
|
1793
|
+
//#region src/ts-dsl/stmt/for.d.ts
|
|
1794
|
+
type ForMode = 'for' | 'in' | 'of';
|
|
1795
|
+
type ForCondition = MaybeTsDsl<ts.Expression>;
|
|
1796
|
+
type ForIterable = MaybeTsDsl<ts.Expression>;
|
|
1797
|
+
declare const Mixed$14: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ForStatement>, LayoutMethods>, DoMethods>;
|
|
1798
|
+
declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$14 {
|
|
1799
|
+
readonly '~dsl' = "ForTsDsl";
|
|
1800
|
+
protected _await?: boolean;
|
|
1801
|
+
protected _condition?: ForCondition;
|
|
1802
|
+
protected _iterableOrUpdate?: ForIterable;
|
|
1803
|
+
protected _mode: ForMode;
|
|
1804
|
+
protected _variableOrInit?: VarTsDsl;
|
|
1805
|
+
constructor();
|
|
1806
|
+
analyze(ctx: AnalysisContext): void;
|
|
1807
|
+
/** Returns true when all required builder calls are present. */
|
|
1808
|
+
get isValid(): boolean;
|
|
1809
|
+
/** Enables async iteration (`for await...of`). Can only be called on for...of. */
|
|
1810
|
+
await(): ForTsDsl<'of'>;
|
|
1811
|
+
/** Sets the condition (e.g., `i < n`). */
|
|
1812
|
+
condition(condition: ForCondition): this;
|
|
1813
|
+
/** Sets the iteration variable (e.g., `$.const('item')`). */
|
|
1814
|
+
each(variable: VarTsDsl): this;
|
|
1815
|
+
/** Sets the object to iterate over and switches to for...in. */
|
|
1816
|
+
in(iterable?: ForIterable): ForTsDsl<'in'>;
|
|
1817
|
+
/** Sets the initialization (e.g., `let i = 0`). */
|
|
1818
|
+
init(init: VarTsDsl): this;
|
|
1819
|
+
/** Sets the iterable to iterate over. */
|
|
1820
|
+
iterable(iterable: ForIterable): this;
|
|
1821
|
+
/** Sets the iterable to iterate over and switches to for...of. */
|
|
1822
|
+
of(iterable?: ForIterable): ForTsDsl<'of'>;
|
|
1823
|
+
/** Sets the update expression (e.g., `i++`). */
|
|
1824
|
+
update(update: ForIterable): this;
|
|
1825
|
+
toAst(): M extends 'for' ? ts.ForStatement : M extends 'of' ? ts.ForOfStatement : ts.ForInStatement;
|
|
1826
|
+
$validate(): asserts this is this & {
|
|
1827
|
+
_iterableOrUpdate: ForIterable;
|
|
1828
|
+
_variableOrInit: VarTsDsl;
|
|
1829
|
+
};
|
|
1830
|
+
private missingRequiredCalls;
|
|
1831
|
+
}
|
|
1832
|
+
declare const ForTsDsl: {
|
|
1833
|
+
new (variableOrInit?: VarTsDsl): ForTsDsl<ForMode>;
|
|
1834
|
+
new (variableOrInit: VarTsDsl, condition: ForCondition, iterableOrUpdate?: ForIterable): ForTsDsl<"for">;
|
|
1835
|
+
new <T extends ForMode>(variableOrInit: VarTsDsl, mode: T, iterableOrUpdate?: ForIterable): ForTsDsl<T>;
|
|
1836
|
+
} & typeof ImplForTsDsl;
|
|
1837
|
+
type ForTsDsl<M extends ForMode = 'for'> = ImplForTsDsl<M>;
|
|
1838
|
+
//#endregion
|
|
1737
1839
|
//#region src/ts-dsl/stmt/stmt.d.ts
|
|
1738
|
-
declare const Mixed$
|
|
1739
|
-
declare class StmtTsDsl extends Mixed$
|
|
1840
|
+
declare const Mixed$13: abstract new () => TsDsl<ts.Statement>;
|
|
1841
|
+
declare class StmtTsDsl extends Mixed$13 {
|
|
1740
1842
|
readonly '~dsl' = "StmtTsDsl";
|
|
1741
1843
|
protected _inner: ts.Expression | ts.Statement | TsDsl<any>;
|
|
1742
1844
|
constructor(inner: ts.Expression | ts.Statement | TsDsl<any>);
|
|
@@ -1745,8 +1847,8 @@ declare class StmtTsDsl extends Mixed$14 {
|
|
|
1745
1847
|
}
|
|
1746
1848
|
//#endregion
|
|
1747
1849
|
//#region src/ts-dsl/stmt/throw.d.ts
|
|
1748
|
-
declare const Mixed$
|
|
1749
|
-
declare class ThrowTsDsl extends Mixed$
|
|
1850
|
+
declare const Mixed$12: abstract new () => TsDsl<ts.ThrowStatement>;
|
|
1851
|
+
declare class ThrowTsDsl extends Mixed$12 {
|
|
1750
1852
|
readonly '~dsl' = "ThrowTsDsl";
|
|
1751
1853
|
protected error: string | MaybeTsDsl<ts.Expression>;
|
|
1752
1854
|
protected msg?: string | MaybeTsDsl<ts.Expression>;
|
|
@@ -1758,11 +1860,11 @@ declare class ThrowTsDsl extends Mixed$13 {
|
|
|
1758
1860
|
}
|
|
1759
1861
|
//#endregion
|
|
1760
1862
|
//#region src/ts-dsl/stmt/try.d.ts
|
|
1761
|
-
declare const Mixed$
|
|
1762
|
-
declare class TryTsDsl extends Mixed$
|
|
1863
|
+
declare const Mixed$11: abstract new () => TsDsl<ts.TryStatement>;
|
|
1864
|
+
declare class TryTsDsl extends Mixed$11 {
|
|
1763
1865
|
readonly '~dsl' = "TryTsDsl";
|
|
1764
1866
|
protected _catch?: Array<DoExpr>;
|
|
1765
|
-
protected _catchArg?: NodeName
|
|
1867
|
+
protected _catchArg?: NodeName;
|
|
1766
1868
|
protected _finally?: Array<DoExpr>;
|
|
1767
1869
|
protected _try?: Array<DoExpr>;
|
|
1768
1870
|
constructor(...tryBlock: Array<DoExpr>);
|
|
@@ -1770,7 +1872,7 @@ declare class TryTsDsl extends Mixed$12 {
|
|
|
1770
1872
|
/** Returns true when all required builder calls are present. */
|
|
1771
1873
|
get isValid(): boolean;
|
|
1772
1874
|
catch(...items: Array<DoExpr>): this;
|
|
1773
|
-
catchArg(arg: NodeName
|
|
1875
|
+
catchArg(arg: NodeName): this;
|
|
1774
1876
|
finally(...items: Array<DoExpr>): this;
|
|
1775
1877
|
try(...items: Array<DoExpr>): this;
|
|
1776
1878
|
toAst(): ts.TryStatement;
|
|
@@ -1780,27 +1882,6 @@ declare class TryTsDsl extends Mixed$12 {
|
|
|
1780
1882
|
private missingRequiredCalls;
|
|
1781
1883
|
}
|
|
1782
1884
|
//#endregion
|
|
1783
|
-
//#region src/ts-dsl/stmt/var.d.ts
|
|
1784
|
-
declare const Mixed$11: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
|
|
1785
|
-
declare class VarTsDsl extends Mixed$11 {
|
|
1786
|
-
readonly '~dsl' = "VarTsDsl";
|
|
1787
|
-
readonly nameSanitizer: (name: string) => string;
|
|
1788
|
-
protected kind: ts.NodeFlags;
|
|
1789
|
-
protected _type?: TypeTsDsl;
|
|
1790
|
-
constructor(name?: NodeName$1);
|
|
1791
|
-
analyze(ctx: AnalysisContext): void;
|
|
1792
|
-
/** Returns true when all required builder calls are present. */
|
|
1793
|
-
get isValid(): boolean;
|
|
1794
|
-
const(): this;
|
|
1795
|
-
let(): this;
|
|
1796
|
-
/** Sets the variable type. */
|
|
1797
|
-
type(type: string | TypeTsDsl): this;
|
|
1798
|
-
var(): this;
|
|
1799
|
-
toAst(): ts.VariableStatement;
|
|
1800
|
-
$validate(): asserts this;
|
|
1801
|
-
private missingRequiredCalls;
|
|
1802
|
-
}
|
|
1803
|
-
//#endregion
|
|
1804
1885
|
//#region src/ts-dsl/token.d.ts
|
|
1805
1886
|
declare class TokenTsDsl<K extends ts.SyntaxKind = never> extends TsDsl<ts.Token<K>> {
|
|
1806
1887
|
readonly '~dsl' = "TokenTsDsl";
|
|
@@ -1836,7 +1917,7 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1836
1917
|
readonly nameSanitizer: (name: string) => string;
|
|
1837
1918
|
scope: NodeScope;
|
|
1838
1919
|
protected value?: Value;
|
|
1839
|
-
constructor(name: NodeName
|
|
1920
|
+
constructor(name: NodeName, fn?: (t: TypeAliasTsDsl) => void);
|
|
1840
1921
|
analyze(ctx: AnalysisContext): void;
|
|
1841
1922
|
/** Returns true when all required builder calls are present. */
|
|
1842
1923
|
get isValid(): boolean;
|
|
@@ -1850,7 +1931,7 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1850
1931
|
}
|
|
1851
1932
|
//#endregion
|
|
1852
1933
|
//#region src/ts-dsl/type/and.d.ts
|
|
1853
|
-
type Type$2 = NodeName
|
|
1934
|
+
type Type$2 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
1854
1935
|
declare const Mixed$9: abstract new () => TsDsl<ts.IntersectionTypeNode>;
|
|
1855
1936
|
declare class TypeAndTsDsl extends Mixed$9 {
|
|
1856
1937
|
readonly '~dsl' = "TypeAndTsDsl";
|
|
@@ -1895,7 +1976,7 @@ declare class TypeMappedTsDsl extends Mixed$6 {
|
|
|
1895
1976
|
protected readonlyToken?: TokenTsDsl<ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.MinusToken | ts.SyntaxKind.PlusToken>;
|
|
1896
1977
|
protected _key?: string | MaybeTsDsl<ts.TypeNode>;
|
|
1897
1978
|
protected _type?: string | MaybeTsDsl<ts.TypeNode>;
|
|
1898
|
-
constructor(name?: NodeName
|
|
1979
|
+
constructor(name?: NodeName);
|
|
1899
1980
|
analyze(ctx: AnalysisContext): void;
|
|
1900
1981
|
/** Returns true when all required builder calls are present. */
|
|
1901
1982
|
get isValid(): boolean;
|
|
@@ -1928,7 +2009,7 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
|
|
|
1928
2009
|
scope: NodeScope;
|
|
1929
2010
|
protected _key?: TypeIdxSigType;
|
|
1930
2011
|
protected _type?: TypeIdxSigType;
|
|
1931
|
-
constructor(name: NodeName
|
|
2012
|
+
constructor(name: NodeName, fn?: (i: TypeIdxSigTsDsl) => void);
|
|
1932
2013
|
/** Element kind. */
|
|
1933
2014
|
get kind(): TypeIdxSigKind;
|
|
1934
2015
|
/** Index signature parameter name. */
|
|
@@ -1949,14 +2030,14 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
|
|
|
1949
2030
|
}
|
|
1950
2031
|
//#endregion
|
|
1951
2032
|
//#region src/ts-dsl/type/prop.d.ts
|
|
1952
|
-
type TypePropType = NodeName
|
|
2033
|
+
type TypePropType = NodeName | MaybeTsDsl<ts.TypeNode>;
|
|
1953
2034
|
type TypePropKind = 'prop';
|
|
1954
2035
|
declare const Mixed$4: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeElement>, ReadonlyMethods>, OptionalMethods>, DocMethods>;
|
|
1955
2036
|
declare class TypePropTsDsl extends Mixed$4 {
|
|
1956
2037
|
readonly '~dsl' = "TypePropTsDsl";
|
|
1957
2038
|
scope: NodeScope;
|
|
1958
2039
|
protected _type?: Ref<TypePropType>;
|
|
1959
|
-
constructor(name: NodeName
|
|
2040
|
+
constructor(name: NodeName, fn: (p: TypePropTsDsl) => void);
|
|
1960
2041
|
/** Element kind. */
|
|
1961
2042
|
get kind(): TypePropKind;
|
|
1962
2043
|
/** Property name. */
|
|
@@ -1994,7 +2075,7 @@ declare class TypeObjectTsDsl extends Mixed$3 {
|
|
|
1994
2075
|
}
|
|
1995
2076
|
//#endregion
|
|
1996
2077
|
//#region src/ts-dsl/type/or.d.ts
|
|
1997
|
-
type Type$1 = NodeName
|
|
2078
|
+
type Type$1 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
1998
2079
|
declare const Mixed$2: abstract new () => TsDsl<ts.UnionTypeNode>;
|
|
1999
2080
|
declare class TypeOrTsDsl extends Mixed$2 {
|
|
2000
2081
|
readonly '~dsl' = "TypeOrTsDsl";
|
|
@@ -2060,10 +2141,10 @@ declare const regexp: {
|
|
|
2060
2141
|
//#endregion
|
|
2061
2142
|
//#region src/ts-dsl/utils/render-utils.d.ts
|
|
2062
2143
|
type ModuleExport = Omit<ExportModule, 'from'> & {
|
|
2063
|
-
/** Module specifier for re-exports, e.g
|
|
2144
|
+
/** Module specifier for re-exports, e.g., `./foo`. */modulePath: string;
|
|
2064
2145
|
};
|
|
2065
2146
|
type ModuleImport = Omit<ImportModule, 'from'> & {
|
|
2066
|
-
/** Module specifier for imports, e.g
|
|
2147
|
+
/** Module specifier for imports, e.g., `./foo`. */modulePath: string;
|
|
2067
2148
|
};
|
|
2068
2149
|
//#endregion
|
|
2069
2150
|
//#region src/ts-dsl/utils/render.d.ts
|
|
@@ -2152,21 +2233,27 @@ declare const reserved: {
|
|
|
2152
2233
|
};
|
|
2153
2234
|
//#endregion
|
|
2154
2235
|
//#region src/ts-dsl/index.d.ts
|
|
2155
|
-
declare const $: ((id:
|
|
2156
|
-
/** Creates an array literal expression (e.g
|
|
2157
|
-
as: (expr:
|
|
2158
|
-
attr: (left:
|
|
2159
|
-
await: (expr:
|
|
2160
|
-
binary: (base:
|
|
2161
|
-
block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g
|
|
2162
|
-
call: (callee:
|
|
2163
|
-
class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2164
|
-
const: (name?:
|
|
2165
|
-
|
|
2236
|
+
declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl) & {
|
|
2237
|
+
/** 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: AsExpr, type: AsType) => AsTsDsl; /** Creates a property access expression (e.g., `obj.foo`). */
|
|
2239
|
+
attr: (left: AttrLeft, right: _hey_api_codegen_core0.NodeName) => AttrTsDsl; /** Creates an await expression (e.g., `await promise`). */
|
|
2240
|
+
await: (expr: AwaitExpr) => AwaitTsDsl; /** Creates a binary expression (e.g., `a + b`). */
|
|
2241
|
+
binary: (base: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: (ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) | undefined) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
|
|
2242
|
+
block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g., `fn(arg)`). */
|
|
2243
|
+
call: (callee: CallCallee, ...args: (CallCallee | undefined)[]) => CallTsDsl; /** Creates a class declaration or expression. */
|
|
2244
|
+
class: (name: _hey_api_codegen_core0.NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2245
|
+
const: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a postfix decrement expression (`i--`). */
|
|
2246
|
+
dec: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates a decorator expression (e.g., `@decorator`). */
|
|
2247
|
+
decorator: (name: _hey_api_codegen_core0.NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2166
2248
|
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
|
|
2167
|
-
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2168
|
-
expr: (id:
|
|
2169
|
-
field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /**
|
|
2249
|
+
enum: (name: _hey_api_codegen_core0.NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2250
|
+
expr: (id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl; /** Creates a field declaration in a class or object. */
|
|
2251
|
+
field: (name: _hey_api_codegen_core0.NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Creates a for loop (for, for...of, for...in, or for await...of). */
|
|
2252
|
+
for: {
|
|
2253
|
+
(variableOrInit?: VarTsDsl): ForTsDsl<ForMode>;
|
|
2254
|
+
(variableOrInit: VarTsDsl, condition: ForCondition, iterableOrUpdate?: ForIterable): ForTsDsl<"for">;
|
|
2255
|
+
<T extends ForMode>(variableOrInit: VarTsDsl, mode: T, iterableOrUpdate?: ForIterable): ForTsDsl<T>;
|
|
2256
|
+
}; /** Converts a runtime value into a corresponding expression node. */
|
|
2170
2257
|
fromValue: (input: unknown, options?: {
|
|
2171
2258
|
layout?: "pretty";
|
|
2172
2259
|
} | undefined) => TsDsl<ts.Expression>; /** Creates a function expression or declaration. */
|
|
@@ -2177,25 +2264,26 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2177
2264
|
(name: string, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
2178
2265
|
(name?: string, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
|
|
2179
2266
|
}; /** Creates a getter method declaration. */
|
|
2180
|
-
getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2181
|
-
hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g
|
|
2267
|
+
getter: (name: _hey_api_codegen_core0.NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2268
|
+
hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g., `foo`). */
|
|
2182
2269
|
id: (name: string) => IdTsDsl; /** Creates an if statement. */
|
|
2183
|
-
if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates
|
|
2270
|
+
if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates a postfix increment expression (`i++`). */
|
|
2271
|
+
inc: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates an initialization block or statement. */
|
|
2184
2272
|
init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
|
|
2185
2273
|
lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
|
|
2186
|
-
let: (name?:
|
|
2274
|
+
let: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
|
|
2187
2275
|
literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
|
|
2188
|
-
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. */
|
|
2189
|
-
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2190
|
-
neg: (expr?:
|
|
2191
|
-
new: (expr:
|
|
2276
|
+
member: (name: _hey_api_codegen_core0.NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2277
|
+
method: (name: _hey_api_codegen_core0.NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2278
|
+
neg: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g., `new ClassName()`). */
|
|
2279
|
+
new: (expr: NewExpr, ...args: (NewExpr | undefined)[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
|
|
2192
2280
|
newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
|
|
2193
|
-
not: (expr?:
|
|
2281
|
+
not: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
|
|
2194
2282
|
note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
|
|
2195
2283
|
object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
|
|
2196
|
-
param: (name:
|
|
2197
|
-
pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g
|
|
2198
|
-
prefix: (expr?:
|
|
2284
|
+
param: (name: ParamName, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
|
|
2285
|
+
pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g., `-x`, `!x`, `~x`). */
|
|
2286
|
+
prefix: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g., `{ foo: bar }`). */
|
|
2199
2287
|
prop: (meta: {
|
|
2200
2288
|
kind: "computed";
|
|
2201
2289
|
name: string;
|
|
@@ -2211,36 +2299,36 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2211
2299
|
} | {
|
|
2212
2300
|
kind: "spread";
|
|
2213
2301
|
name?: undefined;
|
|
2214
|
-
}) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g
|
|
2302
|
+
}) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g., `/foo/gi`). */
|
|
2215
2303
|
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. */
|
|
2216
|
-
return: (expr?:
|
|
2217
|
-
setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2304
|
+
return: (expr?: ReturnExpr | undefined) => ReturnTsDsl; /** Creates a setter method declaration. */
|
|
2305
|
+
setter: (name: _hey_api_codegen_core0.NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2218
2306
|
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2219
|
-
template: (value?:
|
|
2307
|
+
template: (value?: TemplatePart | undefined) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
|
|
2220
2308
|
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2221
|
-
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g
|
|
2309
|
+
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
|
|
2222
2310
|
token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
|
|
2223
|
-
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g
|
|
2224
|
-
type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2225
|
-
/** Creates a type alias declaration (e.g
|
|
2226
|
-
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g
|
|
2227
|
-
attr: (right:
|
|
2228
|
-
expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2229
|
-
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g
|
|
2230
|
-
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g
|
|
2231
|
-
idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl; /** Creates a literal type node (e.g
|
|
2232
|
-
literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g
|
|
2233
|
-
mapped: (name?:
|
|
2234
|
-
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g
|
|
2235
|
-
operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g
|
|
2236
|
-
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g
|
|
2237
|
-
param: (name?:
|
|
2238
|
-
query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g
|
|
2239
|
-
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g
|
|
2311
|
+
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2312
|
+
type: ((name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2313
|
+
/** Creates a type alias declaration (e.g., `type Foo = Bar`). */alias: (name: _hey_api_codegen_core0.NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g., `A & B`). */
|
|
2314
|
+
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g., Foo.Bar). */
|
|
2315
|
+
attr: (right: _hey_api_codegen_core0.NodeName | ts.Identifier) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2316
|
+
expr: (name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2317
|
+
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g., `(a: string) => number`). */
|
|
2318
|
+
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
|
|
2319
|
+
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
|
+
literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g., `{ [K in keyof T]: U }`). */
|
|
2321
|
+
mapped: (name?: _hey_api_codegen_core0.NodeName | undefined) => TypeMappedTsDsl; /** Creates a type literal node (e.g., { foo: string }). */
|
|
2322
|
+
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g., `readonly T`, `keyof T`, `unique T`). */
|
|
2323
|
+
operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g., `A | B | C`). */
|
|
2324
|
+
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g., `<T>`). */
|
|
2325
|
+
param: (name?: _hey_api_codegen_core0.NodeName | undefined, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g., `typeof Foo`). */
|
|
2326
|
+
query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
|
|
2327
|
+
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g., [A, B, C]). */
|
|
2240
2328
|
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl;
|
|
2241
|
-
}; /** Creates a `typeof` expression (e.g
|
|
2329
|
+
}; /** Creates a `typeof` expression (e.g., `typeof value`). */
|
|
2242
2330
|
typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
|
|
2243
|
-
var: (name?:
|
|
2331
|
+
var: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
|
|
2244
2332
|
};
|
|
2245
2333
|
type DollarTsDsl = {
|
|
2246
2334
|
/**
|
|
@@ -2293,7 +2381,7 @@ type IApi$4 = {
|
|
|
2293
2381
|
};
|
|
2294
2382
|
//#endregion
|
|
2295
2383
|
//#region src/plugins/@faker-js/faker/types.d.ts
|
|
2296
|
-
type UserConfig$
|
|
2384
|
+
type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
2297
2385
|
/**
|
|
2298
2386
|
* Casing convention for generated names.
|
|
2299
2387
|
*
|
|
@@ -2340,7 +2428,7 @@ type UserConfig$25 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2340
2428
|
*/
|
|
2341
2429
|
seed?: number;
|
|
2342
2430
|
};
|
|
2343
|
-
type Config$
|
|
2431
|
+
type Config$23 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2344
2432
|
/**
|
|
2345
2433
|
* Casing convention for generated names.
|
|
2346
2434
|
*/
|
|
@@ -2359,7 +2447,7 @@ type Config$22 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Ex
|
|
|
2359
2447
|
*/
|
|
2360
2448
|
seed?: number;
|
|
2361
2449
|
};
|
|
2362
|
-
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$
|
|
2450
|
+
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$26, Config$23, IApi$4>;
|
|
2363
2451
|
//#endregion
|
|
2364
2452
|
//#region src/plugins/@faker-js/faker/resolvers/types.d.ts
|
|
2365
2453
|
type Expression = ReturnType<typeof $.expr>;
|
|
@@ -2466,7 +2554,7 @@ type Client$8<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn
|
|
|
2466
2554
|
} : {
|
|
2467
2555
|
sse: { [K in HttpMethod]: SseFn };
|
|
2468
2556
|
});
|
|
2469
|
-
interface Config$
|
|
2557
|
+
interface Config$22 {
|
|
2470
2558
|
/**
|
|
2471
2559
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2472
2560
|
* added to the request payload as defined by its `security` array.
|
|
@@ -2509,7 +2597,7 @@ interface Config$21 {
|
|
|
2509
2597
|
requestValidator?: (data: unknown) => Promise<unknown>;
|
|
2510
2598
|
/**
|
|
2511
2599
|
* A function transforming response data before it's returned. This is useful
|
|
2512
|
-
* for post-processing data, e.g
|
|
2600
|
+
* for post-processing data, e.g., converting ISO strings into Date objects.
|
|
2513
2601
|
*/
|
|
2514
2602
|
responseTransformer?: (data: unknown) => Promise<unknown>;
|
|
2515
2603
|
/**
|
|
@@ -2521,7 +2609,7 @@ interface Config$21 {
|
|
|
2521
2609
|
}
|
|
2522
2610
|
//#endregion
|
|
2523
2611
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
2524
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$
|
|
2612
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$22, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
2525
2613
|
/**
|
|
2526
2614
|
* Fetch API implementation. You can use this option to provide a custom
|
|
2527
2615
|
* fetch instance.
|
|
@@ -2612,7 +2700,7 @@ interface Middleware$4<Req, Res, Err, Options> {
|
|
|
2612
2700
|
//#endregion
|
|
2613
2701
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
2614
2702
|
type ResponseStyle$3 = 'data' | 'fields';
|
|
2615
|
-
interface Config$
|
|
2703
|
+
interface Config$21<T extends ClientOptions$6 = ClientOptions$6> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$22, 'headers'> {
|
|
2616
2704
|
/**
|
|
2617
2705
|
* Base URL for all requests made by this client.
|
|
2618
2706
|
*/
|
|
@@ -2641,7 +2729,7 @@ interface Config$20<T extends ClientOptions$6 = ClientOptions$6> extends Omit<Re
|
|
|
2641
2729
|
*/
|
|
2642
2730
|
throwOnError?: T['throwOnError'];
|
|
2643
2731
|
}
|
|
2644
|
-
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2732
|
+
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$21<{
|
|
2645
2733
|
responseStyle: TResponseStyle;
|
|
2646
2734
|
throwOnError: ThrowOnError;
|
|
2647
2735
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2698,7 +2786,7 @@ type BuildUrlFn$6 = <TData extends {
|
|
|
2698
2786
|
query?: Record<string, unknown>;
|
|
2699
2787
|
url: string;
|
|
2700
2788
|
}>(options: TData & Options$7<TData>) => string;
|
|
2701
|
-
type Client$7 = Client$8<RequestFn$6, Config$
|
|
2789
|
+
type Client$7 = Client$8<RequestFn$6, Config$21, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2702
2790
|
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2703
2791
|
requestOptions: RequestOptionsFn;
|
|
2704
2792
|
};
|
|
@@ -2713,7 +2801,7 @@ type OmitKeys$6<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2713
2801
|
type Options$7<TData extends TDataShape$6 = TDataShape$6, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$6<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2714
2802
|
//#endregion
|
|
2715
2803
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2716
|
-
interface Config$
|
|
2804
|
+
interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$22 {
|
|
2717
2805
|
/**
|
|
2718
2806
|
* Axios implementation. You can use this option to provide either an
|
|
2719
2807
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -2739,7 +2827,7 @@ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Cr
|
|
|
2739
2827
|
*/
|
|
2740
2828
|
throwOnError?: T['throwOnError'];
|
|
2741
2829
|
}
|
|
2742
|
-
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2830
|
+
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
|
|
2743
2831
|
throwOnError: ThrowOnError;
|
|
2744
2832
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2745
2833
|
/**
|
|
@@ -2775,7 +2863,7 @@ type BuildUrlFn$5 = <TData extends {
|
|
|
2775
2863
|
query?: Record<string, unknown>;
|
|
2776
2864
|
url: string;
|
|
2777
2865
|
}>(options: TData & Options$6<TData>) => string;
|
|
2778
|
-
type Client$6 = Client$8<RequestFn$5, Config$
|
|
2866
|
+
type Client$6 = Client$8<RequestFn$5, Config$20, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2779
2867
|
instance: AxiosInstance;
|
|
2780
2868
|
};
|
|
2781
2869
|
interface TDataShape$5 {
|
|
@@ -2789,7 +2877,7 @@ type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2789
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'>);
|
|
2790
2878
|
//#endregion
|
|
2791
2879
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2792
|
-
type UserConfig$
|
|
2880
|
+
type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
2793
2881
|
/**
|
|
2794
2882
|
* Throw an error instead of returning it in the response?
|
|
2795
2883
|
*
|
|
@@ -2797,7 +2885,7 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
|
2797
2885
|
*/
|
|
2798
2886
|
throwOnError?: boolean;
|
|
2799
2887
|
};
|
|
2800
|
-
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$
|
|
2888
|
+
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
|
|
2801
2889
|
//#endregion
|
|
2802
2890
|
//#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
|
|
2803
2891
|
type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -2820,7 +2908,7 @@ interface Middleware$3<Req, Res, Err, Options> {
|
|
|
2820
2908
|
//#endregion
|
|
2821
2909
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
2822
2910
|
type ResponseStyle$2 = 'data' | 'fields';
|
|
2823
|
-
interface Config$
|
|
2911
|
+
interface Config$19<T extends ClientOptions$4 = ClientOptions$4> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
2824
2912
|
/**
|
|
2825
2913
|
* Base URL for all requests made by this client.
|
|
2826
2914
|
*/
|
|
@@ -2861,7 +2949,7 @@ interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Re
|
|
|
2861
2949
|
*/
|
|
2862
2950
|
throwOnError?: T['throwOnError'];
|
|
2863
2951
|
}
|
|
2864
|
-
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2952
|
+
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
|
|
2865
2953
|
responseStyle: TResponseStyle;
|
|
2866
2954
|
throwOnError: ThrowOnError;
|
|
2867
2955
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2910,7 +2998,7 @@ type BuildUrlFn$4 = <TData extends {
|
|
|
2910
2998
|
query?: Record<string, unknown>;
|
|
2911
2999
|
url: string;
|
|
2912
3000
|
}>(options: TData & Options$5<TData>) => string;
|
|
2913
|
-
type Client$5 = Client$8<RequestFn$4, Config$
|
|
3001
|
+
type Client$5 = Client$8<RequestFn$4, Config$19, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
2914
3002
|
interceptors: Middleware$3<Request, Response, unknown, ResolvedRequestOptions$3>;
|
|
2915
3003
|
};
|
|
2916
3004
|
interface TDataShape$4 {
|
|
@@ -2924,7 +3012,7 @@ type OmitKeys$4<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2924
3012
|
type Options$5<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$4<RequestOptions$4<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2925
3013
|
//#endregion
|
|
2926
3014
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
2927
|
-
type UserConfig$
|
|
3015
|
+
type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
2928
3016
|
/**
|
|
2929
3017
|
* Throw an error instead of returning it in the response?
|
|
2930
3018
|
*
|
|
@@ -2932,7 +3020,7 @@ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
|
2932
3020
|
*/
|
|
2933
3021
|
throwOnError?: boolean;
|
|
2934
3022
|
};
|
|
2935
|
-
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$
|
|
3023
|
+
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
|
|
2936
3024
|
//#endregion
|
|
2937
3025
|
//#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
|
|
2938
3026
|
type ErrInterceptor$2<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
|
|
@@ -2954,7 +3042,7 @@ interface Middleware$2<Res, Err, Options> {
|
|
|
2954
3042
|
}
|
|
2955
3043
|
//#endregion
|
|
2956
3044
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
2957
|
-
interface Config$
|
|
3045
|
+
interface Config$18<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
2958
3046
|
/**
|
|
2959
3047
|
* Base URL for all requests made by this client.
|
|
2960
3048
|
*/
|
|
@@ -2982,7 +3070,7 @@ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
2982
3070
|
*/
|
|
2983
3071
|
throwOnError?: T['throwOnError'];
|
|
2984
3072
|
}
|
|
2985
|
-
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3073
|
+
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
|
|
2986
3074
|
throwOnError: ThrowOnError;
|
|
2987
3075
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2988
3076
|
/**
|
|
@@ -3027,7 +3115,7 @@ type BuildUrlFn$3 = <TData extends {
|
|
|
3027
3115
|
query?: Record<string, unknown>;
|
|
3028
3116
|
url: string;
|
|
3029
3117
|
}>(options: TData & Options$4<TData>) => string;
|
|
3030
|
-
type Client$4 = Client$8<RequestFn$3, Config$
|
|
3118
|
+
type Client$4 = Client$8<RequestFn$3, Config$18, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
3031
3119
|
interceptors: Middleware$2<Response, unknown, ResolvedRequestOptions$2>;
|
|
3032
3120
|
};
|
|
3033
3121
|
interface TDataShape$3 {
|
|
@@ -3041,7 +3129,7 @@ type OmitKeys$3<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3041
3129
|
type Options$4<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$3<RequestOptions$3<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3042
3130
|
//#endregion
|
|
3043
3131
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
3044
|
-
type UserConfig$
|
|
3132
|
+
type UserConfig$23 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
3045
3133
|
/**
|
|
3046
3134
|
* Throw an error instead of returning it in the response?
|
|
3047
3135
|
*
|
|
@@ -3049,13 +3137,13 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
|
3049
3137
|
*/
|
|
3050
3138
|
throwOnError?: boolean;
|
|
3051
3139
|
};
|
|
3052
|
-
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$
|
|
3140
|
+
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
|
|
3053
3141
|
//#endregion
|
|
3054
3142
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
3055
3143
|
type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
|
|
3056
3144
|
type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> };
|
|
3057
3145
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
3058
|
-
interface Config$
|
|
3146
|
+
interface Config$17<T extends ClientOptions$2 = ClientOptions$2> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$22, 'querySerializer'> {
|
|
3059
3147
|
/**
|
|
3060
3148
|
* Base URL for all requests made by this client.
|
|
3061
3149
|
*/
|
|
@@ -3069,7 +3157,7 @@ interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Fe
|
|
|
3069
3157
|
*/
|
|
3070
3158
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
3071
3159
|
}
|
|
3072
|
-
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$
|
|
3160
|
+
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$17, WithRefs<{
|
|
3073
3161
|
path?: FetchOptions$1<unknown>['query'];
|
|
3074
3162
|
query?: FetchOptions$1<unknown>['query'];
|
|
3075
3163
|
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3113,15 +3201,15 @@ interface TDataShape$2 {
|
|
|
3113
3201
|
}
|
|
3114
3202
|
type BuildUrlOptions<TData extends Omit<TDataShape$2, 'headers'> = Omit<TDataShape$2, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$3<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
|
|
3115
3203
|
type BuildUrlFn$2 = <TData extends Omit<TDataShape$2, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
3116
|
-
type Client$3 = Client$8<RequestFn$2, Config$
|
|
3204
|
+
type Client$3 = Client$8<RequestFn$2, Config$17, MethodFn$2, BuildUrlFn$2, SseFn$2>;
|
|
3117
3205
|
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3118
3206
|
type Options$3<TComposable extends Composable = '$fetch', TData extends TDataShape$2 = TDataShape$2, ResT = unknown, DefaultT = undefined> = OmitKeys$2<RequestOptions$2<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
|
|
3119
3207
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
3120
3208
|
type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
|
|
3121
3209
|
//#endregion
|
|
3122
3210
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
3123
|
-
type UserConfig$
|
|
3124
|
-
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$
|
|
3211
|
+
type UserConfig$22 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
3212
|
+
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
|
|
3125
3213
|
//#endregion
|
|
3126
3214
|
//#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
|
|
3127
3215
|
type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -3144,7 +3232,7 @@ interface Middleware$1<Req, Res, Err, Options> {
|
|
|
3144
3232
|
//#endregion
|
|
3145
3233
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
3146
3234
|
type ResponseStyle$1 = 'data' | 'fields';
|
|
3147
|
-
interface Config$
|
|
3235
|
+
interface Config$16<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
3148
3236
|
/**
|
|
3149
3237
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
3150
3238
|
*/
|
|
@@ -3245,7 +3333,7 @@ interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Re
|
|
|
3245
3333
|
*/
|
|
3246
3334
|
timeout?: number;
|
|
3247
3335
|
}
|
|
3248
|
-
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3336
|
+
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$16<{
|
|
3249
3337
|
responseStyle: TResponseStyle;
|
|
3250
3338
|
throwOnError: ThrowOnError;
|
|
3251
3339
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3294,7 +3382,7 @@ type BuildUrlFn$1 = <TData extends {
|
|
|
3294
3382
|
query?: Record<string, unknown>;
|
|
3295
3383
|
url: string;
|
|
3296
3384
|
}>(options: TData & Options$2<TData>) => string;
|
|
3297
|
-
type Client$2 = Client$8<RequestFn$1, Config$
|
|
3385
|
+
type Client$2 = Client$8<RequestFn$1, Config$16, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
3298
3386
|
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
3299
3387
|
};
|
|
3300
3388
|
interface TDataShape$1 {
|
|
@@ -3308,7 +3396,7 @@ type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3308
3396
|
type Options$2<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3309
3397
|
//#endregion
|
|
3310
3398
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
3311
|
-
type UserConfig$
|
|
3399
|
+
type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
3312
3400
|
/**
|
|
3313
3401
|
* Throw an error instead of returning it in the response?
|
|
3314
3402
|
*
|
|
@@ -3316,7 +3404,7 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
|
3316
3404
|
*/
|
|
3317
3405
|
throwOnError?: boolean;
|
|
3318
3406
|
};
|
|
3319
|
-
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$
|
|
3407
|
+
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
|
|
3320
3408
|
//#endregion
|
|
3321
3409
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
3322
3410
|
interface PluginHandler {
|
|
@@ -3379,7 +3467,7 @@ declare namespace Client {
|
|
|
3379
3467
|
}
|
|
3380
3468
|
//#endregion
|
|
3381
3469
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
3382
|
-
type UserConfig$
|
|
3470
|
+
type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
3383
3471
|
/**
|
|
3384
3472
|
* Throw an error instead of returning it in the response?
|
|
3385
3473
|
*
|
|
@@ -3387,7 +3475,7 @@ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
|
|
|
3387
3475
|
*/
|
|
3388
3476
|
throwOnError?: boolean;
|
|
3389
3477
|
};
|
|
3390
|
-
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$
|
|
3478
|
+
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
|
|
3391
3479
|
//#endregion
|
|
3392
3480
|
//#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
|
|
3393
3481
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -3430,7 +3518,7 @@ interface RetryOptions {
|
|
|
3430
3518
|
*/
|
|
3431
3519
|
statusCodes?: number[];
|
|
3432
3520
|
}
|
|
3433
|
-
interface Config$
|
|
3521
|
+
interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Options, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$22 {
|
|
3434
3522
|
/**
|
|
3435
3523
|
* Base URL for all requests made by this client.
|
|
3436
3524
|
*/
|
|
@@ -3477,7 +3565,7 @@ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Option
|
|
|
3477
3565
|
*/
|
|
3478
3566
|
timeout?: number;
|
|
3479
3567
|
}
|
|
3480
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3568
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
|
|
3481
3569
|
responseStyle: TResponseStyle;
|
|
3482
3570
|
throwOnError: ThrowOnError;
|
|
3483
3571
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3526,7 +3614,7 @@ type BuildUrlFn = <TData extends {
|
|
|
3526
3614
|
query?: Record<string, unknown>;
|
|
3527
3615
|
url: string;
|
|
3528
3616
|
}>(options: TData & Options$1<TData>) => string;
|
|
3529
|
-
type Client$1 = Client$8<RequestFn, Config$
|
|
3617
|
+
type Client$1 = Client$8<RequestFn, Config$15, MethodFn, BuildUrlFn, SseFn> & {
|
|
3530
3618
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3531
3619
|
};
|
|
3532
3620
|
interface TDataShape {
|
|
@@ -3540,7 +3628,7 @@ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3540
3628
|
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3541
3629
|
//#endregion
|
|
3542
3630
|
//#region src/plugins/@hey-api/client-ky/types.d.ts
|
|
3543
|
-
type UserConfig$
|
|
3631
|
+
type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
3544
3632
|
/**
|
|
3545
3633
|
* Throw an error instead of returning it in the response?
|
|
3546
3634
|
*
|
|
@@ -3548,18 +3636,18 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
|
3548
3636
|
*/
|
|
3549
3637
|
throwOnError?: boolean;
|
|
3550
3638
|
};
|
|
3551
|
-
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$
|
|
3639
|
+
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
|
|
3552
3640
|
//#endregion
|
|
3553
3641
|
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3554
|
-
type UserConfig$
|
|
3642
|
+
type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3555
3643
|
/**
|
|
3556
3644
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
3557
|
-
* valid JavaScript/TypeScript identifier, e.g
|
|
3645
|
+
* valid JavaScript/TypeScript identifier, e.g., if your schema name is
|
|
3558
3646
|
* "Foo-Bar", `name` value would be "FooBar".
|
|
3559
3647
|
*
|
|
3560
3648
|
* @default '{{name}}Schema'
|
|
3561
3649
|
*/
|
|
3562
|
-
nameBuilder?: string | ((name: string, schema:
|
|
3650
|
+
nameBuilder?: string | ((name: string, schema: OpenAPIV2.SchemaObject | OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject | OpenAPIV3_1.SchemaObject) => string);
|
|
3563
3651
|
/**
|
|
3564
3652
|
* Choose schema type to generate. Select 'form' if you don't want
|
|
3565
3653
|
* descriptions to reduce bundle size and you plan to use schemas
|
|
@@ -3569,7 +3657,7 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3569
3657
|
*/
|
|
3570
3658
|
type?: 'form' | 'json';
|
|
3571
3659
|
};
|
|
3572
|
-
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$
|
|
3660
|
+
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
|
|
3573
3661
|
//#endregion
|
|
3574
3662
|
//#region src/plugins/types.d.ts
|
|
3575
3663
|
type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-ky' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch';
|
|
@@ -3723,89 +3811,28 @@ interface UserOperationsConfig {
|
|
|
3723
3811
|
strategyDefaultTag?: string;
|
|
3724
3812
|
}
|
|
3725
3813
|
interface OperationsConfig {
|
|
3726
|
-
/**
|
|
3727
|
-
* Type of container for grouped operations.
|
|
3728
|
-
*
|
|
3729
|
-
* Ignored when `strategy` is `'flat'`.
|
|
3730
|
-
*
|
|
3731
|
-
* - `'class'` - Class with methods
|
|
3732
|
-
*/
|
|
3814
|
+
/** Type of container for grouped operations. */
|
|
3733
3815
|
container: 'class';
|
|
3734
|
-
/**
|
|
3735
|
-
* Customize container names.
|
|
3736
|
-
*
|
|
3737
|
-
* For `'single'` strategy, this sets the root container name.
|
|
3738
|
-
* For `'byTags'` strategy, this transforms tag names.
|
|
3739
|
-
*
|
|
3740
|
-
* @default 'Sdk' for `'single'` strategy
|
|
3741
|
-
*
|
|
3742
|
-
* @example
|
|
3743
|
-
* // Set root name for single strategy
|
|
3744
|
-
* containerName: 'MyApi'
|
|
3745
|
-
*
|
|
3746
|
-
* @example
|
|
3747
|
-
* // Transform tag names with suffix
|
|
3748
|
-
* containerName: '{{name}}Service'
|
|
3749
|
-
*
|
|
3750
|
-
* @example
|
|
3751
|
-
* // With casing
|
|
3752
|
-
* containerName: { name: '{{name}}Service', case: 'PascalCase' }
|
|
3753
|
-
*/
|
|
3816
|
+
/** Customize container names. */
|
|
3754
3817
|
containerName: NamingConfig;
|
|
3755
|
-
/**
|
|
3756
|
-
* Customize method/function names.
|
|
3757
|
-
*
|
|
3758
|
-
* Applied to the final segment of the path (the method name).
|
|
3759
|
-
*/
|
|
3818
|
+
/** Customize method/function names. */
|
|
3760
3819
|
methodName: NamingConfig;
|
|
3761
|
-
/**
|
|
3762
|
-
* How methods are attached to class containers.
|
|
3763
|
-
*
|
|
3764
|
-
* Only applies when `container` is `'class'`.
|
|
3765
|
-
*
|
|
3766
|
-
* - `'static'` - Static methods, no instantiation required
|
|
3767
|
-
* - `'instance'` - Instance methods, requires `new ClassName(config)`
|
|
3768
|
-
*/
|
|
3820
|
+
/** How methods are attached to class containers. */
|
|
3769
3821
|
methods: 'instance' | 'static';
|
|
3770
|
-
/**
|
|
3771
|
-
* How to derive nesting structure from operations.
|
|
3772
|
-
*
|
|
3773
|
-
* - `'operationId'` - Split operationId by delimiters (e.g., `users.list` → `Users.list()`)
|
|
3774
|
-
* - `'id'` - Use operation id as-is, no nesting
|
|
3775
|
-
* - Custom function for full control
|
|
3776
|
-
*/
|
|
3822
|
+
/** How to derive nesting structure from operations. */
|
|
3777
3823
|
nesting: 'operationId' | 'id' | OperationPathStrategy;
|
|
3778
|
-
/**
|
|
3779
|
-
* Delimiters for splitting operationId.
|
|
3780
|
-
*
|
|
3781
|
-
* Only applies when `nesting` is `'operationId'`.
|
|
3782
|
-
*/
|
|
3824
|
+
/** Delimiters for splitting operationId. */
|
|
3783
3825
|
nestingDelimiters: RegExp;
|
|
3784
|
-
/**
|
|
3785
|
-
* Customize nesting segment names.
|
|
3786
|
-
*
|
|
3787
|
-
* Applied to intermediate path segments (not the method name).
|
|
3788
|
-
*/
|
|
3826
|
+
/** Customize nesting segment names. */
|
|
3789
3827
|
segmentName: NamingConfig;
|
|
3790
|
-
/**
|
|
3791
|
-
* Grouping strategy.
|
|
3792
|
-
*
|
|
3793
|
-
* - `'flat'` - Standalone functions, no grouping
|
|
3794
|
-
* - `'byTags'` - One container per operation tag
|
|
3795
|
-
* - `'single'` - All operations in one container
|
|
3796
|
-
* - Custom function for full control
|
|
3797
|
-
*/
|
|
3828
|
+
/** Grouping strategy. */
|
|
3798
3829
|
strategy: OperationsStrategy;
|
|
3799
|
-
/**
|
|
3800
|
-
* Default container name for operations without tags.
|
|
3801
|
-
*
|
|
3802
|
-
* Only applies when `strategy` is `'byTags'`.
|
|
3803
|
-
*/
|
|
3830
|
+
/** Default container name for operations without tags. */
|
|
3804
3831
|
strategyDefaultTag: string;
|
|
3805
3832
|
}
|
|
3806
3833
|
//#endregion
|
|
3807
3834
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
3808
|
-
type UserConfig$
|
|
3835
|
+
type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
3809
3836
|
/**
|
|
3810
3837
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3811
3838
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -3828,7 +3855,7 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
3828
3855
|
client?: PluginClientNames | boolean;
|
|
3829
3856
|
/**
|
|
3830
3857
|
* Generate code examples for SDK operations and attach them to the
|
|
3831
|
-
* input source (e.g
|
|
3858
|
+
* input source (e.g., via `x-codeSamples`).
|
|
3832
3859
|
*
|
|
3833
3860
|
* Set to `false` to disable example generation entirely, or provide an
|
|
3834
3861
|
* object for fine-grained control over the output and post-processing.
|
|
@@ -3981,7 +4008,7 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
3981
4008
|
*/
|
|
3982
4009
|
response?: 'body' | 'response';
|
|
3983
4010
|
};
|
|
3984
|
-
type Config$
|
|
4011
|
+
type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
3985
4012
|
/**
|
|
3986
4013
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3987
4014
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -4001,14 +4028,8 @@ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
4001
4028
|
*
|
|
4002
4029
|
* @default true
|
|
4003
4030
|
*/
|
|
4004
|
-
client: PluginClientNames | false;
|
|
4005
|
-
/**
|
|
4006
|
-
* Configuration for generating SDK code examples.
|
|
4007
|
-
*/
|
|
4008
|
-
examples: ExamplesConfig;
|
|
4009
|
-
/**
|
|
4010
|
-
* Define the structure of generated SDK operations.
|
|
4011
|
-
*/
|
|
4031
|
+
client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
|
|
4032
|
+
examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
|
|
4012
4033
|
operations: OperationsConfig;
|
|
4013
4034
|
/**
|
|
4014
4035
|
* Define how request parameters are structured in generated SDK methods.
|
|
@@ -4069,7 +4090,7 @@ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
4069
4090
|
*/
|
|
4070
4091
|
response: 'body' | 'response';
|
|
4071
4092
|
};
|
|
4072
|
-
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$
|
|
4093
|
+
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$17, Config$14>;
|
|
4073
4094
|
//#endregion
|
|
4074
4095
|
//#region src/plugins/@hey-api/transformers/types.d.ts
|
|
4075
4096
|
interface BaseTransformer extends DollarTsDsl {
|
|
@@ -4077,7 +4098,7 @@ interface BaseTransformer extends DollarTsDsl {
|
|
|
4077
4098
|
schema: IR$1.SchemaObject;
|
|
4078
4099
|
}
|
|
4079
4100
|
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4080
|
-
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$
|
|
4101
|
+
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$16, 'name'>;
|
|
4081
4102
|
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4082
4103
|
}) => Array<TsDsl<ts.Expression>> | undefined;
|
|
4083
4104
|
/**
|
|
@@ -4085,7 +4106,7 @@ type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
|
4085
4106
|
* If undefined is returned, the default type will be used.
|
|
4086
4107
|
*/
|
|
4087
4108
|
type TypeTransformer = (ctx: BaseTransformer) => MaybeTsDsl<ts.TypeNode> | undefined;
|
|
4088
|
-
type UserConfig$
|
|
4109
|
+
type UserConfig$16 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
4089
4110
|
/**
|
|
4090
4111
|
* Convert long integers into BigInt values?
|
|
4091
4112
|
*
|
|
@@ -4107,7 +4128,7 @@ type UserConfig$15 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
|
|
|
4107
4128
|
*/
|
|
4108
4129
|
typeTransformers?: ReadonlyArray<TypeTransformer>;
|
|
4109
4130
|
};
|
|
4110
|
-
type Config$
|
|
4131
|
+
type Config$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
4111
4132
|
/**
|
|
4112
4133
|
* Convert long integers into BigInt values?
|
|
4113
4134
|
*
|
|
@@ -4129,7 +4150,7 @@ type Config$12 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
|
|
|
4129
4150
|
*/
|
|
4130
4151
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
4131
4152
|
};
|
|
4132
|
-
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$
|
|
4153
|
+
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$16, Config$13>;
|
|
4133
4154
|
//#endregion
|
|
4134
4155
|
//#region src/plugins/@hey-api/typescript/shared/types.d.ts
|
|
4135
4156
|
type Type = MaybeTsDsl<TypeTsDsl>;
|
|
@@ -4518,7 +4539,7 @@ interface VoidResolverContext$2 extends BaseContext$2 {
|
|
|
4518
4539
|
//#endregion
|
|
4519
4540
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
4520
4541
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
4521
|
-
type UserConfig$
|
|
4542
|
+
type UserConfig$15 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & HeyApiTypeScriptResolvers & {
|
|
4522
4543
|
/**
|
|
4523
4544
|
* Casing convention for generated names.
|
|
4524
4545
|
*
|
|
@@ -4725,7 +4746,7 @@ type UserConfig$14 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plu
|
|
|
4725
4746
|
payload?: NameTransformer;
|
|
4726
4747
|
};
|
|
4727
4748
|
};
|
|
4728
|
-
type Config$
|
|
4749
|
+
type Config$12 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & HeyApiTypeScriptResolvers & {
|
|
4729
4750
|
/**
|
|
4730
4751
|
* Casing convention for generated names.
|
|
4731
4752
|
*/
|
|
@@ -4822,10 +4843,10 @@ type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$
|
|
|
4822
4843
|
payload: NameTransformer;
|
|
4823
4844
|
};
|
|
4824
4845
|
};
|
|
4825
|
-
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$
|
|
4846
|
+
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$15, Config$12, IApi$3>;
|
|
4826
4847
|
//#endregion
|
|
4827
4848
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
4828
|
-
type UserConfig$
|
|
4849
|
+
type UserConfig$14 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4829
4850
|
/**
|
|
4830
4851
|
* Casing convention for generated names.
|
|
4831
4852
|
*
|
|
@@ -4982,7 +5003,7 @@ type UserConfig$13 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
|
|
|
4982
5003
|
name?: NameTransformer;
|
|
4983
5004
|
};
|
|
4984
5005
|
};
|
|
4985
|
-
type Config$
|
|
5006
|
+
type Config$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4986
5007
|
/**
|
|
4987
5008
|
* Casing convention for generated names.
|
|
4988
5009
|
*/
|
|
@@ -5060,10 +5081,10 @@ type Config$10 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comm
|
|
|
5060
5081
|
meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
|
|
5061
5082
|
};
|
|
5062
5083
|
};
|
|
5063
|
-
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$
|
|
5084
|
+
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$14, Config$11>;
|
|
5064
5085
|
//#endregion
|
|
5065
5086
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
5066
|
-
type UserConfig$
|
|
5087
|
+
type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5067
5088
|
/**
|
|
5068
5089
|
* Casing convention for generated names.
|
|
5069
5090
|
*
|
|
@@ -5328,7 +5349,7 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5328
5349
|
name?: NameTransformer;
|
|
5329
5350
|
};
|
|
5330
5351
|
};
|
|
5331
|
-
type Config$
|
|
5352
|
+
type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5332
5353
|
/**
|
|
5333
5354
|
* Casing convention for generated names.
|
|
5334
5355
|
*/
|
|
@@ -5461,10 +5482,10 @@ type Config$9 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
|
|
|
5461
5482
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
5462
5483
|
};
|
|
5463
5484
|
};
|
|
5464
|
-
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5485
|
+
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10>;
|
|
5465
5486
|
//#endregion
|
|
5466
5487
|
//#region src/plugins/@tanstack/preact-query/types.d.ts
|
|
5467
|
-
type UserConfig$
|
|
5488
|
+
type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5468
5489
|
/**
|
|
5469
5490
|
* Casing convention for generated names.
|
|
5470
5491
|
*
|
|
@@ -5805,7 +5826,7 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
|
|
|
5805
5826
|
name?: NameTransformer;
|
|
5806
5827
|
};
|
|
5807
5828
|
};
|
|
5808
|
-
type Config$
|
|
5829
|
+
type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5809
5830
|
/**
|
|
5810
5831
|
* Casing convention for generated names.
|
|
5811
5832
|
*/
|
|
@@ -5953,10 +5974,10 @@ type Config$8 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
5953
5974
|
*/
|
|
5954
5975
|
useQuery: NamingOptions & FeatureToggle;
|
|
5955
5976
|
};
|
|
5956
|
-
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5977
|
+
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9>;
|
|
5957
5978
|
//#endregion
|
|
5958
5979
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
5959
|
-
type UserConfig$
|
|
5980
|
+
type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5960
5981
|
/**
|
|
5961
5982
|
* Casing convention for generated names.
|
|
5962
5983
|
*
|
|
@@ -6297,7 +6318,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
|
|
|
6297
6318
|
name?: NameTransformer;
|
|
6298
6319
|
};
|
|
6299
6320
|
};
|
|
6300
|
-
type Config$
|
|
6321
|
+
type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6301
6322
|
/**
|
|
6302
6323
|
* Casing convention for generated names.
|
|
6303
6324
|
*/
|
|
@@ -6445,10 +6466,10 @@ type Config$7 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
6445
6466
|
*/
|
|
6446
6467
|
useQuery: NamingOptions & FeatureToggle;
|
|
6447
6468
|
};
|
|
6448
|
-
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6469
|
+
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
|
|
6449
6470
|
//#endregion
|
|
6450
6471
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
6451
|
-
type UserConfig$
|
|
6472
|
+
type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6452
6473
|
/**
|
|
6453
6474
|
* Casing convention for generated names.
|
|
6454
6475
|
*
|
|
@@ -6714,7 +6735,7 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Pl
|
|
|
6714
6735
|
name?: NameTransformer;
|
|
6715
6736
|
};
|
|
6716
6737
|
};
|
|
6717
|
-
type Config$
|
|
6738
|
+
type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6718
6739
|
/**
|
|
6719
6740
|
* Casing convention for generated names.
|
|
6720
6741
|
*/
|
|
@@ -6847,10 +6868,10 @@ type Config$6 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6847
6868
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6848
6869
|
};
|
|
6849
6870
|
};
|
|
6850
|
-
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6871
|
+
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
|
|
6851
6872
|
//#endregion
|
|
6852
6873
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
6853
|
-
type UserConfig$
|
|
6874
|
+
type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6854
6875
|
/**
|
|
6855
6876
|
* Casing convention for generated names.
|
|
6856
6877
|
*
|
|
@@ -7115,7 +7136,7 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
|
|
|
7115
7136
|
name?: NameTransformer;
|
|
7116
7137
|
};
|
|
7117
7138
|
};
|
|
7118
|
-
type Config$
|
|
7139
|
+
type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7119
7140
|
/**
|
|
7120
7141
|
* Casing convention for generated names.
|
|
7121
7142
|
*/
|
|
@@ -7248,10 +7269,10 @@ type Config$5 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
7248
7269
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7249
7270
|
};
|
|
7250
7271
|
};
|
|
7251
|
-
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7272
|
+
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
|
|
7252
7273
|
//#endregion
|
|
7253
7274
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
7254
|
-
type UserConfig$
|
|
7275
|
+
type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7255
7276
|
/**
|
|
7256
7277
|
* Casing convention for generated names.
|
|
7257
7278
|
*
|
|
@@ -7519,7 +7540,7 @@ type UserConfig$7 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
|
|
|
7519
7540
|
name?: NameTransformer;
|
|
7520
7541
|
};
|
|
7521
7542
|
};
|
|
7522
|
-
type Config$
|
|
7543
|
+
type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7523
7544
|
/**
|
|
7524
7545
|
* Casing convention for generated names.
|
|
7525
7546
|
*/
|
|
@@ -7655,7 +7676,7 @@ type Config$4 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7655
7676
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7656
7677
|
};
|
|
7657
7678
|
};
|
|
7658
|
-
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7679
|
+
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
|
|
7659
7680
|
//#endregion
|
|
7660
7681
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7661
7682
|
type ValidatorArgs$2 = {
|
|
@@ -7670,7 +7691,7 @@ type IApi$2 = {
|
|
|
7670
7691
|
};
|
|
7671
7692
|
//#endregion
|
|
7672
7693
|
//#region src/plugins/arktype/types.d.ts
|
|
7673
|
-
type UserConfig$
|
|
7694
|
+
type UserConfig$7 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7674
7695
|
/**
|
|
7675
7696
|
* Casing convention for generated names.
|
|
7676
7697
|
*
|
|
@@ -7994,7 +8015,7 @@ type UserConfig$6 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
7994
8015
|
};
|
|
7995
8016
|
};
|
|
7996
8017
|
};
|
|
7997
|
-
type Config$
|
|
8018
|
+
type Config$4 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7998
8019
|
/**
|
|
7999
8020
|
* Casing convention for generated names.
|
|
8000
8021
|
*/
|
|
@@ -8099,15 +8120,168 @@ type Config$3 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
8099
8120
|
};
|
|
8100
8121
|
};
|
|
8101
8122
|
};
|
|
8102
|
-
type ArktypePlugin = DefinePlugin$1<UserConfig$
|
|
8123
|
+
type ArktypePlugin = DefinePlugin$1<UserConfig$7, Config$4, IApi$2>;
|
|
8103
8124
|
//#endregion
|
|
8104
8125
|
//#region src/plugins/fastify/types.d.ts
|
|
8105
|
-
type UserConfig$
|
|
8106
|
-
type FastifyPlugin = DefinePlugin$1<UserConfig$
|
|
8126
|
+
type UserConfig$6 = Plugin$1.Name<'fastify'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8127
|
+
type FastifyPlugin = DefinePlugin$1<UserConfig$6, UserConfig$6>;
|
|
8107
8128
|
//#endregion
|
|
8108
8129
|
//#region src/plugins/nestjs/types.d.ts
|
|
8109
|
-
type UserConfig$
|
|
8110
|
-
type NestJsPlugin = DefinePlugin$1<UserConfig$
|
|
8130
|
+
type UserConfig$5 = Plugin$1.Name<'nestjs'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8131
|
+
type NestJsPlugin = DefinePlugin$1<UserConfig$5, UserConfig$5>;
|
|
8132
|
+
//#endregion
|
|
8133
|
+
//#region src/plugins/orpc/contracts/types.d.ts
|
|
8134
|
+
interface UserContractsConfig {
|
|
8135
|
+
/**
|
|
8136
|
+
* Type of container for grouped contracts.
|
|
8137
|
+
*
|
|
8138
|
+
* Ignored when `strategy` is `'flat'`.
|
|
8139
|
+
*
|
|
8140
|
+
* - `'object'` - Object with properties
|
|
8141
|
+
*
|
|
8142
|
+
* @default 'object'
|
|
8143
|
+
*/
|
|
8144
|
+
container?: 'object';
|
|
8145
|
+
/**
|
|
8146
|
+
* Customize container names.
|
|
8147
|
+
*
|
|
8148
|
+
* For `'single'` strategy, this sets the root container name.
|
|
8149
|
+
* For `'byTags'` strategy, this transforms tag names.
|
|
8150
|
+
*
|
|
8151
|
+
* @default 'contract' for `'single'` strategy
|
|
8152
|
+
*
|
|
8153
|
+
* @example
|
|
8154
|
+
* // Set root name for single strategy
|
|
8155
|
+
* containerName: 'myContract'
|
|
8156
|
+
*
|
|
8157
|
+
* @example
|
|
8158
|
+
* // Transform tag names with suffix
|
|
8159
|
+
* containerName: '{{name}}Contract'
|
|
8160
|
+
*
|
|
8161
|
+
* @example
|
|
8162
|
+
* // With casing
|
|
8163
|
+
* containerName: { name: '{{name}}Contract', casing: 'camelCase' }
|
|
8164
|
+
*/
|
|
8165
|
+
containerName?: NamingRule;
|
|
8166
|
+
/**
|
|
8167
|
+
* Customize contract names.
|
|
8168
|
+
*
|
|
8169
|
+
* Applied to the final segment of the path (the contract name).
|
|
8170
|
+
*/
|
|
8171
|
+
contractName?: NamingRule;
|
|
8172
|
+
/**
|
|
8173
|
+
* How to derive nesting structure from operations.
|
|
8174
|
+
*
|
|
8175
|
+
* - `'operationId'` - Split operationId by delimiters (e.g., `users.list` → `Users.list()`)
|
|
8176
|
+
* - `'id'` - Use operation id as-is, no nesting
|
|
8177
|
+
* - Custom function for full control
|
|
8178
|
+
*
|
|
8179
|
+
* @default 'operationId'
|
|
8180
|
+
*/
|
|
8181
|
+
nesting?: 'operationId' | 'id' | OperationPathStrategy;
|
|
8182
|
+
/**
|
|
8183
|
+
* Delimiters for splitting operationId.
|
|
8184
|
+
*
|
|
8185
|
+
* Only applies when `nesting` is `'operationId'`.
|
|
8186
|
+
*
|
|
8187
|
+
* @default /[./]/
|
|
8188
|
+
*/
|
|
8189
|
+
nestingDelimiters?: RegExp;
|
|
8190
|
+
/**
|
|
8191
|
+
* Customize nesting segment names.
|
|
8192
|
+
*
|
|
8193
|
+
* Applied to intermediate path segments (not the contract name).
|
|
8194
|
+
*/
|
|
8195
|
+
segmentName?: NamingRule;
|
|
8196
|
+
/**
|
|
8197
|
+
* Grouping strategy.
|
|
8198
|
+
*
|
|
8199
|
+
* - `'flat'` - Standalone contracts, no grouping
|
|
8200
|
+
* - `'byTags'` - One container per operation tag
|
|
8201
|
+
* - `'single'` - All contracts in one container
|
|
8202
|
+
* - Custom function for full control
|
|
8203
|
+
*
|
|
8204
|
+
* @default 'single'
|
|
8205
|
+
*/
|
|
8206
|
+
strategy?: OperationsStrategy;
|
|
8207
|
+
/**
|
|
8208
|
+
* Default container name for operations without tags.
|
|
8209
|
+
*
|
|
8210
|
+
* Only applies when `strategy` is `'byTags'`.
|
|
8211
|
+
*
|
|
8212
|
+
* @default 'default'
|
|
8213
|
+
*/
|
|
8214
|
+
strategyDefaultTag?: string;
|
|
8215
|
+
}
|
|
8216
|
+
interface ContractsConfig {
|
|
8217
|
+
/** Type of container for grouped operations. */
|
|
8218
|
+
container: 'object';
|
|
8219
|
+
/** Customize container names. */
|
|
8220
|
+
containerName: NamingConfig;
|
|
8221
|
+
/** Customize contract names. */
|
|
8222
|
+
contractName: NamingConfig;
|
|
8223
|
+
/** How to derive nesting structure from operations. */
|
|
8224
|
+
nesting: 'operationId' | 'id' | OperationPathStrategy;
|
|
8225
|
+
/** Delimiters for splitting operationId. */
|
|
8226
|
+
nestingDelimiters: RegExp;
|
|
8227
|
+
/** Customize nesting segment names. */
|
|
8228
|
+
segmentName: NamingConfig;
|
|
8229
|
+
/** Grouping strategy. */
|
|
8230
|
+
strategy: OperationsStrategy;
|
|
8231
|
+
/** Default container name for operations without tags. */
|
|
8232
|
+
strategyDefaultTag: string;
|
|
8233
|
+
}
|
|
8234
|
+
//#endregion
|
|
8235
|
+
//#region src/plugins/orpc/types.d.ts
|
|
8236
|
+
type UserConfig$4 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
8237
|
+
/**
|
|
8238
|
+
* Define the structure of generated oRPC contracts.
|
|
8239
|
+
*
|
|
8240
|
+
* String shorthand:
|
|
8241
|
+
* - `'byTags'` – one container per operation tag
|
|
8242
|
+
* - `'flat'` – standalone functions, no container
|
|
8243
|
+
* - `'single'` – all operations in a single container
|
|
8244
|
+
* - custom function for full control
|
|
8245
|
+
*
|
|
8246
|
+
* Use the object form for advanced configuration.
|
|
8247
|
+
*
|
|
8248
|
+
* @default 'single'
|
|
8249
|
+
*/
|
|
8250
|
+
contracts?: OperationsStrategy | UserContractsConfig;
|
|
8251
|
+
/**
|
|
8252
|
+
* Validate input/output schemas.
|
|
8253
|
+
*
|
|
8254
|
+
* @default true
|
|
8255
|
+
*/
|
|
8256
|
+
validator?: PluginValidatorNames | boolean | {
|
|
8257
|
+
/**
|
|
8258
|
+
* The validator plugin to use for input schemas.
|
|
8259
|
+
*
|
|
8260
|
+
* Can be a validator plugin name or boolean (true to auto-select, false
|
|
8261
|
+
* to disable).
|
|
8262
|
+
*
|
|
8263
|
+
* @default true
|
|
8264
|
+
*/
|
|
8265
|
+
input?: PluginValidatorNames | boolean;
|
|
8266
|
+
/**
|
|
8267
|
+
* The validator plugin to use for output schemas.
|
|
8268
|
+
*
|
|
8269
|
+
* Can be a validator plugin name or boolean (true to auto-select, false
|
|
8270
|
+
* to disable).
|
|
8271
|
+
*
|
|
8272
|
+
* @default true
|
|
8273
|
+
*/
|
|
8274
|
+
output?: PluginValidatorNames | boolean;
|
|
8275
|
+
};
|
|
8276
|
+
};
|
|
8277
|
+
type Config$3 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
8278
|
+
/** Define the structure of generated oRPC contracts. */contracts: ContractsConfig; /** Validate input/output schemas. */
|
|
8279
|
+
validator: {
|
|
8280
|
+
/** The validator plugin to use for input schemas. */input: PluginValidatorNames | false; /** The validator plugin to use for output schemas. */
|
|
8281
|
+
output: PluginValidatorNames | false;
|
|
8282
|
+
};
|
|
8283
|
+
};
|
|
8284
|
+
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3>;
|
|
8111
8285
|
//#endregion
|
|
8112
8286
|
//#region src/plugins/swr/types.d.ts
|
|
8113
8287
|
type UserConfig$3 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
@@ -10090,7 +10264,7 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
|
|
|
10090
10264
|
*
|
|
10091
10265
|
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
10092
10266
|
*/
|
|
10093
|
-
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?:
|
|
10267
|
+
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger$1): Promise<ReadonlyArray<Context>>;
|
|
10094
10268
|
//#endregion
|
|
10095
10269
|
//#region src/config/plugins.d.ts
|
|
10096
10270
|
/**
|
|
@@ -10172,6 +10346,7 @@ declare module '@hey-api/shared' {
|
|
|
10172
10346
|
arktype: Plugins.Arktype.Types['Types'];
|
|
10173
10347
|
fastify: Plugins.Fastify.Types['Types'];
|
|
10174
10348
|
nestjs: Plugins.NestJs.Types['Types'];
|
|
10349
|
+
orpc: Plugins.Orpc.Types['Types'];
|
|
10175
10350
|
swr: Plugins.Swr.Types['Types'];
|
|
10176
10351
|
valibot: Plugins.Valibot.Types['Types'];
|
|
10177
10352
|
zod: Plugins.Zod.Types['Types'];
|
|
@@ -10243,6 +10418,9 @@ declare namespace Plugins {
|
|
|
10243
10418
|
namespace NestJs {
|
|
10244
10419
|
type Types = NestJsPlugin;
|
|
10245
10420
|
}
|
|
10421
|
+
namespace Orpc {
|
|
10422
|
+
type Types = OrpcPlugin;
|
|
10423
|
+
}
|
|
10246
10424
|
namespace PiniaColada {
|
|
10247
10425
|
type Types = PiniaColadaPlugin;
|
|
10248
10426
|
}
|