@hey-api/openapi-ts 0.94.4 → 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/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { n as UserConfig } from "./types-DAEl4_a4.mjs";
2
2
  import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
3
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, LinguistLanguages, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OpenApiV2_0_XTypes, OpenApiV3_0_XTypes, OpenApiV3_1_XTypes, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
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";
5
5
  import ts from "typescript";
6
6
  import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
7
7
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
@@ -11,6 +11,7 @@ import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsync
11
11
  import { Ref as Ref$1 } from "vue";
12
12
  import { FetchOptions, ResponseType, ofetch } from "ofetch";
13
13
  import ky, { Options } from "ky";
14
+ import { LinguistLanguages, OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from "@hey-api/spec-types";
14
15
 
15
16
  //#region src/plugins/@angular/common/httpRequests/types.d.ts
16
17
  interface UserHttpRequestsConfig {
@@ -409,15 +410,15 @@ type Arg$1 = NodeName | MaybeTsDsl<TypeTsDsl>;
409
410
  interface TypeArgsMethods extends Node {
410
411
  /** Returns the type arguments as an array of ts.TypeNode nodes. */
411
412
  $generics(): ReadonlyArray<ts.TypeNode> | undefined;
412
- /** Adds a single type argument (e.g. `string` in `Foo<string>`). */
413
+ /** Adds a single type argument (e.g., `string` in `Foo<string>`). */
413
414
  generic(arg: Arg$1): this;
414
- /** Adds type arguments (e.g. `Map<string, number>`). */
415
+ /** Adds type arguments (e.g., `Map<string, number>`). */
415
416
  generics(...args: ReadonlyArray<Arg$1>): this;
416
417
  }
417
418
  //#endregion
418
419
  //#region src/ts-dsl/mixins/as.d.ts
419
420
  interface AsMethods extends Node {
420
- /** Creates an `as` type assertion expression (e.g. `value as Type`). */
421
+ /** Creates an `as` type assertion expression (e.g., `value as Type`). */
421
422
  as(...args: DropFirst<Parameters<typeof f.as>>): ReturnType<typeof f.as>;
422
423
  }
423
424
  //#endregion
@@ -425,8 +426,8 @@ interface AsMethods extends Node {
425
426
  type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
426
427
  type AsType = NodeName | TypeTsDsl;
427
428
  type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
428
- declare const Mixed$52: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
429
- declare class AsTsDsl extends Mixed$52 {
429
+ declare const Mixed$54: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
430
+ declare class AsTsDsl extends Mixed$54 {
430
431
  readonly '~dsl' = "AsTsDsl";
431
432
  protected expr: Ref<AsExpr>;
432
433
  protected type: Ref<AsType>;
@@ -448,8 +449,8 @@ interface OptionalMethods extends Node {
448
449
  type Expr$3 = NodeName | MaybeTsDsl<ts.Expression>;
449
450
  type Op$1 = Operator | ts.BinaryOperator;
450
451
  type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
451
- declare const Mixed$51: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
452
- declare class BinaryTsDsl extends Mixed$51 {
452
+ declare const Mixed$53: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
453
+ declare class BinaryTsDsl extends Mixed$53 {
453
454
  readonly '~dsl' = "BinaryTsDsl";
454
455
  protected _base: Ref<Expr$3>;
455
456
  protected _expr?: Ref<Expr$3>;
@@ -460,7 +461,7 @@ declare class BinaryTsDsl extends Mixed$51 {
460
461
  get isValid(): boolean;
461
462
  /** Logical AND — `this && expr` */
462
463
  and(expr: Expr$3): this;
463
- /** Creates an assignment expression (e.g. `this = expr`). */
464
+ /** Creates an assignment expression (e.g., `this = expr`). */
464
465
  assign(expr: Expr$3): this;
465
466
  /** Nullish coalescing — `this ?? expr` */
466
467
  coalesce(expr: Expr$3): this;
@@ -508,7 +509,7 @@ type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
508
509
  interface OperatorMethods extends Node {
509
510
  /** Logical AND — `this && expr` */
510
511
  and(expr: Expr$2): BinaryTsDsl;
511
- /** Creates an assignment expression (e.g. `this = expr`). */
512
+ /** Creates an assignment expression (e.g., `this = expr`). */
512
513
  assign(expr: Expr$2): BinaryTsDsl;
513
514
  /** Nullish coalescing — `this ?? expr` */
514
515
  coalesce(expr: Expr$2): BinaryTsDsl;
@@ -545,20 +546,23 @@ interface OperatorMethods extends Node {
545
546
  //#region src/ts-dsl/expr/attr.d.ts
546
547
  type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
547
548
  type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
548
- declare const Mixed$50: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
549
- declare class AttrTsDsl extends Mixed$50 {
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 {
550
551
  readonly '~dsl' = "AttrTsDsl";
551
- protected left: Ref<AttrLeft>;
552
+ protected _computed: boolean;
553
+ protected _left: Ref<AttrLeft>;
552
554
  constructor(left: AttrLeft, right: NodeName);
553
555
  analyze(ctx: AnalysisContext): void;
556
+ /** Use computed property access (e.g., `obj[expr]`)? */
557
+ computed(condition?: boolean): this;
554
558
  toAst(): ts.PropertyAccessExpression | ts.ElementAccessExpression;
555
559
  }
556
560
  //#endregion
557
561
  //#region src/ts-dsl/expr/await.d.ts
558
562
  type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
559
563
  type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
560
- declare const Mixed$49: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
561
- declare class AwaitTsDsl extends Mixed$49 {
564
+ declare const Mixed$51: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
565
+ declare class AwaitTsDsl extends Mixed$51 {
562
566
  readonly '~dsl' = "AwaitTsDsl";
563
567
  protected _awaitExpr: Ref<AwaitExpr>;
564
568
  constructor(expr: AwaitExpr);
@@ -581,8 +585,8 @@ interface ArgsMethods extends Node {
581
585
  type NewArgs = ReadonlyArray<NewExpr | undefined>;
582
586
  type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
583
587
  type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
584
- declare const Mixed$48: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
585
- declare class NewTsDsl extends Mixed$48 {
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 {
586
590
  readonly '~dsl' = "NewTsDsl";
587
591
  protected _newExpr: Ref<NewExpr>;
588
592
  constructor(expr: NewExpr, ...args: NewArgs);
@@ -593,8 +597,8 @@ declare class NewTsDsl extends Mixed$48 {
593
597
  //#region src/ts-dsl/expr/typeof.d.ts
594
598
  type TypeOfExpr = string | MaybeTsDsl<ts.Expression>;
595
599
  type TypeOfExprCtor = (expr: TypeOfExpr) => TypeOfExprTsDsl;
596
- declare const Mixed$47: MixinCtor<abstract new () => TsDsl<ts.TypeOfExpression>, OperatorMethods>;
597
- declare class TypeOfExprTsDsl extends Mixed$47 {
600
+ declare const Mixed$49: MixinCtor<abstract new () => TsDsl<ts.TypeOfExpression>, OperatorMethods>;
601
+ declare class TypeOfExprTsDsl extends Mixed$49 {
598
602
  readonly '~dsl' = "TypeOfExprTsDsl";
599
603
  protected _expr: TypeOfExpr;
600
604
  constructor(expr: TypeOfExpr);
@@ -605,8 +609,8 @@ declare class TypeOfExprTsDsl extends Mixed$47 {
605
609
  //#region src/ts-dsl/stmt/return.d.ts
606
610
  type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
607
611
  type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
608
- declare const Mixed$46: abstract new () => TsDsl<ts.ReturnStatement>;
609
- declare class ReturnTsDsl extends Mixed$46 {
612
+ declare const Mixed$48: abstract new () => TsDsl<ts.ReturnStatement>;
613
+ declare class ReturnTsDsl extends Mixed$48 {
610
614
  readonly '~dsl' = "ReturnTsDsl";
611
615
  protected _returnExpr?: Ref<ReturnExpr>;
612
616
  constructor(expr?: ReturnExpr);
@@ -616,7 +620,7 @@ declare class ReturnTsDsl extends Mixed$46 {
616
620
  //#endregion
617
621
  //#region src/ts-dsl/mixins/type-expr.d.ts
618
622
  interface TypeExprMethods extends Node {
619
- /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
623
+ /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
620
624
  idx(this: Parameters<typeof f.type.idx>[0], ...args: DropFirst<Parameters<typeof f.type.idx>>): ReturnType<typeof f.type.idx>;
621
625
  /** Shorthand: builds `keyof T`. */
622
626
  keyof(this: MaybeTsDsl<TypeTsDsl>): ReturnType<typeof f.type.operator>;
@@ -635,8 +639,8 @@ interface TypeExprMethods extends Node {
635
639
  //#region src/ts-dsl/type/attr.d.ts
636
640
  type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
637
641
  type Right = NodeName | ts.Identifier;
638
- declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
639
- declare class TypeAttrTsDsl extends Mixed$45 {
642
+ declare const Mixed$47: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
643
+ declare class TypeAttrTsDsl extends Mixed$47 {
640
644
  readonly '~dsl' = "TypeAttrTsDsl";
641
645
  scope: NodeScope;
642
646
  protected _base?: Ref<Base$1>;
@@ -660,8 +664,8 @@ declare class TypeAttrTsDsl extends Mixed$45 {
660
664
  type TypeExprExpr = NodeName | TypeAttrTsDsl;
661
665
  type TypeExprFn = (t: TypeExprTsDsl) => void;
662
666
  type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
663
- declare const Mixed$44: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
664
- declare class TypeExprTsDsl extends Mixed$44 {
667
+ declare const Mixed$46: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
668
+ declare class TypeExprTsDsl extends Mixed$46 {
665
669
  readonly '~dsl' = "TypeExprTsDsl";
666
670
  scope: NodeScope;
667
671
  protected _exprInput?: Ref<TypeExprExpr>;
@@ -672,7 +676,7 @@ declare class TypeExprTsDsl extends Mixed$44 {
672
676
  analyze(ctx: AnalysisContext): void;
673
677
  /** Returns true when all required builder calls are present. */
674
678
  get isValid(): boolean;
675
- /** Accesses a nested type (e.g. `Foo.Bar`). */
679
+ /** Accesses a nested type (e.g., `Foo.Bar`). */
676
680
  attr(right: string | ts.Identifier | TypeAttrTsDsl): this;
677
681
  toAst(): ts.TypeReferenceNode;
678
682
  $validate(): asserts this is this & {
@@ -685,8 +689,8 @@ declare class TypeExprTsDsl extends Mixed$44 {
685
689
  type Base = string | MaybeTsDsl<ts.TypeNode>;
686
690
  type Index = string | number | MaybeTsDsl<ts.TypeNode>;
687
691
  type TypeIdxCtor = (base: Base, index: Index) => TypeIdxTsDsl;
688
- declare const Mixed$43: MixinCtor<abstract new () => TsDsl<ts.IndexedAccessTypeNode>, TypeExprMethods>;
689
- declare class TypeIdxTsDsl extends Mixed$43 {
692
+ declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.IndexedAccessTypeNode>, TypeExprMethods>;
693
+ declare class TypeIdxTsDsl extends Mixed$45 {
690
694
  readonly '~dsl' = "TypeIdxTsDsl";
691
695
  scope: NodeScope;
692
696
  protected _base: Base;
@@ -709,7 +713,7 @@ declare class TypeIdxTsDsl extends Mixed$43 {
709
713
  type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
710
714
  type Type$3 = string | MaybeTsDsl<ts.TypeNode>;
711
715
  type TypeOperatorCtor = () => TypeOperatorTsDsl;
712
- declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
716
+ declare const Mixed$44: abstract new () => TsDsl<ts.TypeOperatorNode>;
713
717
  /**
714
718
  * Builds a TypeScript `TypeOperatorNode`, such as:
715
719
  *
@@ -722,7 +726,7 @@ declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
722
726
  *
723
727
  * The node will throw during render if required fields are missing.
724
728
  */
725
- declare class TypeOperatorTsDsl extends Mixed$42 {
729
+ declare class TypeOperatorTsDsl extends Mixed$44 {
726
730
  readonly '~dsl' = "TypeOperatorTsDsl";
727
731
  scope: NodeScope;
728
732
  protected _op?: Op;
@@ -750,8 +754,8 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
750
754
  //#region src/ts-dsl/type/query.d.ts
751
755
  type TypeQueryExpr = NodeName | MaybeTsDsl<TypeTsDsl | ts.Expression>;
752
756
  type TypeQueryCtor = (expr: TypeQueryExpr) => TypeQueryTsDsl;
753
- declare const Mixed$41: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode>, TypeExprMethods>;
754
- declare class TypeQueryTsDsl extends Mixed$41 {
757
+ declare const Mixed$43: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode>, TypeExprMethods>;
758
+ declare class TypeQueryTsDsl extends Mixed$43 {
755
759
  readonly '~dsl' = "TypeQueryTsDsl";
756
760
  scope: NodeScope;
757
761
  protected _expr: Ref<TypeQueryExpr>;
@@ -767,28 +771,28 @@ type Factory<T extends Ctor> = {
767
771
  set(fn: T): void;
768
772
  };
769
773
  declare const f: {
770
- /** 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`). */
771
- attr: Factory<AttrCtor>; /** Factory for creating await expressions (e.g. `await promise`). */
772
- await: Factory<AwaitCtor>; /** Factory for creating function or method call expressions (e.g. `fn(arg)`). */
773
- call: Factory<CallCtor>; /** Factory for creating new expressions (e.g. `new ClassName()`). */
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()`). */
774
778
  new: Factory<NewCtor>; /** Factory for creating return statements. */
775
779
  return: Factory<ReturnCtor>; /** Factories for creating type nodes. */
776
780
  type: {
777
- /** 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]`). */
778
- idx: Factory<TypeIdxCtor>; /** Factory for creating type operator nodes (e.g. `readonly T`, `keyof T`, `unique T`). */
779
- operator: Factory<TypeOperatorCtor>; /** Factory for creating type query nodes (e.g. `typeof Foo`). */
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`). */
780
784
  query: Factory<TypeQueryCtor>;
781
- }; /** Factory for creating `typeof` expressions (e.g. `typeof value`). */
785
+ }; /** Factory for creating `typeof` expressions (e.g., `typeof value`). */
782
786
  typeofExpr: Factory<TypeOfExprCtor>;
783
787
  };
784
788
  //#endregion
785
789
  //#region src/ts-dsl/mixins/expr.d.ts
786
790
  interface ExprMethods extends Node {
787
- /** Accesses a property on the current expression (e.g. `this.foo`). */
791
+ /** Accesses a property on the current expression (e.g., `this.foo`). */
788
792
  attr(...args: DropFirst<Parameters<typeof f.attr>>): ReturnType<typeof f.attr>;
789
- /** Awaits the current expression (e.g. `await expr`). */
793
+ /** Awaits the current expression (e.g., `await expr`). */
790
794
  await(): ReturnType<typeof f.await>;
791
- /** Calls the current expression (e.g. `fn(arg1, arg2)`). */
795
+ /** Calls the current expression (e.g., `fn(arg1, arg2)`). */
792
796
  call(...args: DropFirst<Parameters<typeof f.call>>): ReturnType<typeof f.call>;
793
797
  /** Produces a `return` statement returning the current expression. */
794
798
  return(): ReturnType<typeof f.return>;
@@ -798,8 +802,8 @@ interface ExprMethods extends Node {
798
802
  type CallArgs = ReadonlyArray<CallCallee | undefined>;
799
803
  type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
800
804
  type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
801
- declare const Mixed$40: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
802
- declare class CallTsDsl extends Mixed$40 {
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 {
803
807
  readonly '~dsl' = "CallTsDsl";
804
808
  protected _callee: Ref<CallCallee>;
805
809
  constructor(callee: CallCallee, ...args: CallArgs);
@@ -910,6 +914,34 @@ declare abstract class TypeTsDsl<T extends ts.LiteralTypeNode | ts.QualifiedName
910
914
  type TypeOfMaybe<I> = undefined extends I ? TypeOf<NonNullable<FromRef<I>>> | undefined : TypeOf<FromRef<I>>;
911
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;
912
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
913
945
  //#region src/ts-dsl/layout/doc.d.ts
914
946
  type DocMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
915
947
  type DocFn = (d: DocTsDsl) => void;
@@ -950,8 +982,8 @@ interface DoMethods extends Node {
950
982
  //#endregion
951
983
  //#region src/ts-dsl/stmt/if.d.ts
952
984
  type IfCondition = string | MaybeTsDsl<ts.Expression>;
953
- declare const Mixed$39: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
954
- declare class IfTsDsl extends Mixed$39 {
985
+ declare const Mixed$40: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
986
+ declare class IfTsDsl extends Mixed$40 {
955
987
  readonly '~dsl' = "IfTsDsl";
956
988
  protected _condition?: IfCondition;
957
989
  protected _else?: Array<DoExpr>;
@@ -1047,6 +1079,34 @@ interface TsLiteral extends TsNodeBase {
1047
1079
  }
1048
1080
  declare function createLiteral(value: TsLiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsLiteral;
1049
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
1050
1110
  //#region src/ts-dsl/layout/note.d.ts
1051
1111
  type NoteMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
1052
1112
  type NoteFn = (d: NoteTsDsl) => void;
@@ -1065,7 +1125,7 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
1065
1125
  type ValueExpr = string | MaybeTsDsl<ts.Expression>;
1066
1126
  interface ValueMethods extends Node {
1067
1127
  $value(): ts.Expression | undefined;
1068
- /** Sets the initializer expression (e.g. `= expr`). */
1128
+ /** Sets the initializer expression (e.g., `= expr`). */
1069
1129
  assign(expr: ValueExpr): this;
1070
1130
  }
1071
1131
  //#endregion
@@ -1077,7 +1137,7 @@ interface PatternMethods extends Node {
1077
1137
  array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
1078
1138
  /** Defines an object binding pattern. */
1079
1139
  object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
1080
- /** Adds a spread element (e.g. `...args`, `...options`) to the pattern. */
1140
+ /** Adds a spread element (e.g., `...args`, `...options`) to the pattern. */
1081
1141
  spread(name: string): this;
1082
1142
  }
1083
1143
  //#endregion
@@ -1085,7 +1145,7 @@ interface PatternMethods extends Node {
1085
1145
  interface DecoratorMethods extends Node {
1086
1146
  /** Renders the decorators into an array of `ts.Decorator`s. */
1087
1147
  $decorators(): ReadonlyArray<ts.Decorator>;
1088
- /** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
1148
+ /** Adds a decorator (e.g., `@sealed({ in: 'root' })`). */
1089
1149
  decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
1090
1150
  }
1091
1151
  //#endregion
@@ -1140,9 +1200,9 @@ declare class TypeParamTsDsl extends Mixed$36 {
1140
1200
  interface TypeParamsMethods extends Node {
1141
1201
  /** Returns the type parameters as an array of ts.TypeParameterDeclaration nodes. */
1142
1202
  $generics(): ReadonlyArray<ts.TypeParameterDeclaration> | undefined;
1143
- /** Adds a single type parameter (e.g. `T` in `Array<T>`). */
1203
+ /** Adds a single type parameter (e.g., `T` in `Array<T>`). */
1144
1204
  generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
1145
- /** Adds type parameters (e.g. `Map<string, T>`). */
1205
+ /** Adds type parameters (e.g., `Map<string, T>`). */
1146
1206
  generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
1147
1207
  }
1148
1208
  //#endregion
@@ -1421,7 +1481,7 @@ declare class GetterTsDsl extends Mixed$27 {
1421
1481
  //#region src/ts-dsl/decl/pattern.d.ts
1422
1482
  declare const Mixed$26: abstract new () => TsDsl<ts.BindingName>;
1423
1483
  /**
1424
- * Builds binding patterns (e.g. `{ foo, bar }`, `[a, b, ...rest]`).
1484
+ * Builds binding patterns (e.g., `{ foo, bar }`, `[a, b, ...rest]`).
1425
1485
  */
1426
1486
  declare class PatternTsDsl extends Mixed$26 {
1427
1487
  readonly '~dsl' = "PatternTsDsl";
@@ -1436,11 +1496,11 @@ declare class PatternTsDsl extends Mixed$26 {
1436
1496
  analyze(ctx: AnalysisContext): void;
1437
1497
  /** Returns true when all required builder calls are present. */
1438
1498
  get isValid(): boolean;
1439
- /** Defines an array pattern (e.g. `[a, b, c]`). */
1499
+ /** Defines an array pattern (e.g., `[a, b, c]`). */
1440
1500
  array(...props: ReadonlyArray<string> | [ReadonlyArray<string>]): this;
1441
- /** Defines an object pattern (e.g. `{ a, b: alias }`). */
1501
+ /** Defines an object pattern (e.g., `{ a, b: alias }`). */
1442
1502
  object(...props: ReadonlyArray<MaybeArray<string> | Record<string, string>>): this;
1443
- /** Adds a spread element (e.g. `...rest`, `...options`, `...args`). */
1503
+ /** Adds a spread element (e.g., `...rest`, `...options`, `...args`). */
1444
1504
  spread(name: string): this;
1445
1505
  toAst(): ts.ObjectBindingPattern | ts.ArrayBindingPattern;
1446
1506
  $validate(): asserts this is this & {
@@ -1479,7 +1539,7 @@ interface LayoutMethods extends Node {
1479
1539
  }
1480
1540
  //#endregion
1481
1541
  //#region src/ts-dsl/expr/array.d.ts
1482
- declare const Mixed$24: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, LayoutMethods>, AsMethods>;
1542
+ declare const Mixed$24: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, LayoutMethods>, ExprMethods>, AsMethods>;
1483
1543
  declare class ArrayTsDsl extends Mixed$24 {
1484
1544
  readonly '~dsl' = "ArrayTsDsl";
1485
1545
  protected _elements: Array<{
@@ -1638,9 +1698,9 @@ declare class ObjectTsDsl extends Mixed$19 {
1638
1698
  analyze(ctx: AnalysisContext): void;
1639
1699
  /** Returns composite key for the property. */
1640
1700
  private _propKey;
1641
- /** Adds a computed property (e.g. `{ [expr]: value }`), or removes if null. */
1701
+ /** Adds a computed property (e.g., `{ [expr]: value }`), or removes if null. */
1642
1702
  computed(name: string, expr: ExprFn | null): this;
1643
- /** Adds a getter property (e.g. `{ get foo() { ... } }`), or removes if null. */
1703
+ /** Adds a getter property (e.g., `{ get foo() { ... } }`), or removes if null. */
1644
1704
  getter(name: string, stmt: StmtFn | null): this;
1645
1705
  /** Returns true if object has at least one property or spread. */
1646
1706
  hasProps(): boolean;
@@ -1650,44 +1710,18 @@ declare class ObjectTsDsl extends Mixed$19 {
1650
1710
  prop(name: string, expr: ExprFn | null): this;
1651
1711
  /** Adds multiple properties. */
1652
1712
  props(...props: ReadonlyArray<ObjectPropTsDsl>): this;
1653
- /** Adds a setter property (e.g. `{ set foo(v) { ... } }`), or removes if null. */
1713
+ /** Adds a setter property (e.g., `{ set foo(v) { ... } }`), or removes if null. */
1654
1714
  setter(name: string, stmt: StmtFn | null): this;
1655
- /** Adds a spread property (e.g. `{ ...options }`). */
1715
+ /** Adds a spread property (e.g., `{ ...options }`). */
1656
1716
  spread(expr: ExprFn): this;
1657
1717
  toAst(): ts.ObjectLiteralExpression;
1658
1718
  }
1659
1719
  //#endregion
1660
- //#region src/ts-dsl/expr/prefix.d.ts
1661
- declare const Mixed$18: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
1662
- declare class PrefixTsDsl extends Mixed$18 {
1663
- readonly '~dsl' = "PrefixTsDsl";
1664
- protected _expr?: string | MaybeTsDsl<ts.Expression>;
1665
- protected _op?: ts.PrefixUnaryOperator;
1666
- constructor(expr?: string | MaybeTsDsl<ts.Expression>, op?: ts.PrefixUnaryOperator);
1667
- analyze(ctx: AnalysisContext): void;
1668
- /** Returns true when all required builder calls are present. */
1669
- get isValid(): boolean;
1670
- /** Sets the operand (the expression being prefixed). */
1671
- expr(expr: string | MaybeTsDsl<ts.Expression>): this;
1672
- /** Sets the operator to MinusToken for negation (`-`). */
1673
- neg(): this;
1674
- /** Sets the operator to ExclamationToken for logical NOT (`!`). */
1675
- not(): this;
1676
- /** Sets the operator (e.g. `ts.SyntaxKind.ExclamationToken` for `!`). */
1677
- op(op: ts.PrefixUnaryOperator): this;
1678
- toAst(): ts.PrefixUnaryExpression;
1679
- $validate(): asserts this is this & {
1680
- _expr: string | MaybeTsDsl<ts.Expression>;
1681
- _op: ts.PrefixUnaryOperator;
1682
- };
1683
- private missingRequiredCalls;
1684
- }
1685
- //#endregion
1686
1720
  //#region src/ts-dsl/expr/regexp.d.ts
1687
1721
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
1688
1722
  type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
1689
- declare const Mixed$17: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1690
- declare class RegExpTsDsl extends Mixed$17 {
1723
+ declare const Mixed$18: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1724
+ declare class RegExpTsDsl extends Mixed$18 {
1691
1725
  readonly '~dsl' = "RegExpTsDsl";
1692
1726
  protected pattern: string;
1693
1727
  protected flags?: RegexFlags;
@@ -1697,8 +1731,8 @@ declare class RegExpTsDsl extends Mixed$17 {
1697
1731
  }
1698
1732
  //#endregion
1699
1733
  //#region src/ts-dsl/expr/ternary.d.ts
1700
- declare const Mixed$16: abstract new () => TsDsl<ts.ConditionalExpression>;
1701
- declare class TernaryTsDsl extends Mixed$16 {
1734
+ declare const Mixed$17: abstract new () => TsDsl<ts.ConditionalExpression>;
1735
+ declare class TernaryTsDsl extends Mixed$17 {
1702
1736
  readonly '~dsl' = "TernaryTsDsl";
1703
1737
  protected _condition?: string | MaybeTsDsl<ts.Expression>;
1704
1738
  protected _then?: string | MaybeTsDsl<ts.Expression>;
@@ -1727,17 +1761,84 @@ declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
1727
1761
  }
1728
1762
  //#endregion
1729
1763
  //#region src/ts-dsl/stmt/block.d.ts
1730
- declare const Mixed$15: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
1731
- declare class BlockTsDsl extends Mixed$15 {
1764
+ declare const Mixed$16: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
1765
+ declare class BlockTsDsl extends Mixed$16 {
1732
1766
  readonly '~dsl' = "BlockTsDsl";
1733
1767
  constructor(...items: Array<DoExpr>);
1734
1768
  analyze(ctx: AnalysisContext): void;
1735
1769
  toAst(): ts.Block;
1736
1770
  }
1737
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
1738
1839
  //#region src/ts-dsl/stmt/stmt.d.ts
1739
- declare const Mixed$14: abstract new () => TsDsl<ts.Statement>;
1740
- declare class StmtTsDsl extends Mixed$14 {
1840
+ declare const Mixed$13: abstract new () => TsDsl<ts.Statement>;
1841
+ declare class StmtTsDsl extends Mixed$13 {
1741
1842
  readonly '~dsl' = "StmtTsDsl";
1742
1843
  protected _inner: ts.Expression | ts.Statement | TsDsl<any>;
1743
1844
  constructor(inner: ts.Expression | ts.Statement | TsDsl<any>);
@@ -1746,8 +1847,8 @@ declare class StmtTsDsl extends Mixed$14 {
1746
1847
  }
1747
1848
  //#endregion
1748
1849
  //#region src/ts-dsl/stmt/throw.d.ts
1749
- declare const Mixed$13: abstract new () => TsDsl<ts.ThrowStatement>;
1750
- declare class ThrowTsDsl extends Mixed$13 {
1850
+ declare const Mixed$12: abstract new () => TsDsl<ts.ThrowStatement>;
1851
+ declare class ThrowTsDsl extends Mixed$12 {
1751
1852
  readonly '~dsl' = "ThrowTsDsl";
1752
1853
  protected error: string | MaybeTsDsl<ts.Expression>;
1753
1854
  protected msg?: string | MaybeTsDsl<ts.Expression>;
@@ -1759,8 +1860,8 @@ declare class ThrowTsDsl extends Mixed$13 {
1759
1860
  }
1760
1861
  //#endregion
1761
1862
  //#region src/ts-dsl/stmt/try.d.ts
1762
- declare const Mixed$12: abstract new () => TsDsl<ts.TryStatement>;
1763
- declare class TryTsDsl extends Mixed$12 {
1863
+ declare const Mixed$11: abstract new () => TsDsl<ts.TryStatement>;
1864
+ declare class TryTsDsl extends Mixed$11 {
1764
1865
  readonly '~dsl' = "TryTsDsl";
1765
1866
  protected _catch?: Array<DoExpr>;
1766
1867
  protected _catchArg?: NodeName;
@@ -1781,27 +1882,6 @@ declare class TryTsDsl extends Mixed$12 {
1781
1882
  private missingRequiredCalls;
1782
1883
  }
1783
1884
  //#endregion
1784
- //#region src/ts-dsl/stmt/var.d.ts
1785
- declare const Mixed$11: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
1786
- declare class VarTsDsl extends Mixed$11 {
1787
- readonly '~dsl' = "VarTsDsl";
1788
- readonly nameSanitizer: (name: string) => string;
1789
- protected kind: ts.NodeFlags;
1790
- protected _type?: TypeTsDsl;
1791
- constructor(name?: NodeName);
1792
- analyze(ctx: AnalysisContext): void;
1793
- /** Returns true when all required builder calls are present. */
1794
- get isValid(): boolean;
1795
- const(): this;
1796
- let(): this;
1797
- /** Sets the variable type. */
1798
- type(type: string | TypeTsDsl): this;
1799
- var(): this;
1800
- toAst(): ts.VariableStatement;
1801
- $validate(): asserts this;
1802
- private missingRequiredCalls;
1803
- }
1804
- //#endregion
1805
1885
  //#region src/ts-dsl/token.d.ts
1806
1886
  declare class TokenTsDsl<K extends ts.SyntaxKind = never> extends TsDsl<ts.Token<K>> {
1807
1887
  readonly '~dsl' = "TokenTsDsl";
@@ -2061,10 +2141,10 @@ declare const regexp: {
2061
2141
  //#endregion
2062
2142
  //#region src/ts-dsl/utils/render-utils.d.ts
2063
2143
  type ModuleExport = Omit<ExportModule, 'from'> & {
2064
- /** Module specifier for re-exports, e.g. `./foo`. */modulePath: string;
2144
+ /** Module specifier for re-exports, e.g., `./foo`. */modulePath: string;
2065
2145
  };
2066
2146
  type ModuleImport = Omit<ImportModule, 'from'> & {
2067
- /** Module specifier for imports, e.g. `./foo`. */modulePath: string;
2147
+ /** Module specifier for imports, e.g., `./foo`. */modulePath: string;
2068
2148
  };
2069
2149
  //#endregion
2070
2150
  //#region src/ts-dsl/utils/render.d.ts
@@ -2154,20 +2234,26 @@ declare const reserved: {
2154
2234
  //#endregion
2155
2235
  //#region src/ts-dsl/index.d.ts
2156
2236
  declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl) & {
2157
- /** 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`). */
2158
- as: (expr: AsExpr, type: AsType) => AsTsDsl; /** Creates a property access expression (e.g. `obj.foo`). */
2159
- attr: (left: AttrLeft, right: _hey_api_codegen_core0.NodeName) => AttrTsDsl; /** Creates an await expression (e.g. `await promise`). */
2160
- await: (expr: AwaitExpr) => AwaitTsDsl; /** Creates a binary expression (e.g. `a + b`). */
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`). */
2161
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 (`{ ... }`). */
2162
- block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g. `fn(arg)`). */
2242
+ block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g., `fn(arg)`). */
2163
2243
  call: (callee: CallCallee, ...args: (CallCallee | undefined)[]) => CallTsDsl; /** Creates a class declaration or expression. */
2164
2244
  class: (name: _hey_api_codegen_core0.NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
2165
- const: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a decorator expression (e.g. `@decorator`). */
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`). */
2166
2247
  decorator: (name: _hey_api_codegen_core0.NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
2167
2248
  doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
2168
2249
  enum: (name: _hey_api_codegen_core0.NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
2169
2250
  expr: (id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl; /** Creates a field declaration in a class or object. */
2170
- field: (name: _hey_api_codegen_core0.NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Converts a runtime value into a corresponding expression node. */
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. */
2171
2257
  fromValue: (input: unknown, options?: {
2172
2258
  layout?: "pretty";
2173
2259
  } | undefined) => TsDsl<ts.Expression>; /** Creates a function expression or declaration. */
@@ -2179,24 +2265,25 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2179
2265
  (name?: string, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
2180
2266
  }; /** Creates a getter method declaration. */
2181
2267
  getter: (name: _hey_api_codegen_core0.NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
2182
- hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g. `foo`). */
2268
+ hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g., `foo`). */
2183
2269
  id: (name: string) => IdTsDsl; /** Creates an if statement. */
2184
- if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates an initialization block or statement. */
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. */
2185
2272
  init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
2186
2273
  lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
2187
- let: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a literal value (e.g. string, number, boolean). */
2274
+ let: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
2188
2275
  literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
2189
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. */
2190
2277
  method: (name: _hey_api_codegen_core0.NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
2191
- neg: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g. `new ClassName()`). */
2278
+ neg: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g., `new ClassName()`). */
2192
2279
  new: (expr: NewExpr, ...args: (NewExpr | undefined)[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
2193
2280
  newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
2194
- not: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
2281
+ not: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
2195
2282
  note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
2196
2283
  object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
2197
2284
  param: (name: ParamName, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
2198
- pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
2199
- prefix: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g. `{ foo: bar }`). */
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 }`). */
2200
2287
  prop: (meta: {
2201
2288
  kind: "computed";
2202
2289
  name: string;
@@ -2212,34 +2299,34 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_c
2212
2299
  } | {
2213
2300
  kind: "spread";
2214
2301
  name?: undefined;
2215
- }) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g. `/foo/gi`). */
2302
+ }) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g., `/foo/gi`). */
2216
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. */
2217
2304
  return: (expr?: ReturnExpr | undefined) => ReturnTsDsl; /** Creates a setter method declaration. */
2218
2305
  setter: (name: _hey_api_codegen_core0.NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
2219
2306
  stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
2220
2307
  template: (value?: TemplatePart | undefined) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
2221
2308
  ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
2222
- throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g. `?`, `readonly`, `+`, `-`). */
2309
+ throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
2223
2310
  token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
2224
- try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
2311
+ try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
2225
2312
  type: ((name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
2226
- /** 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`). */
2227
- and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g. Foo.Bar). */
2228
- attr: (right: _hey_api_codegen_core0.NodeName | ts.Identifier) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
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>). */
2229
2316
  expr: (name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
2230
- fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g. `(a: string) => number`). */
2231
- func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
2232
- 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). */
2233
- literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
2234
- mapped: (name?: _hey_api_codegen_core0.NodeName | undefined) => TypeMappedTsDsl; /** Creates a type literal node (e.g. { foo: string }). */
2235
- object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
2236
- operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g. `A | B | C`). */
2237
- or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g. `<T>`). */
2238
- param: (name?: _hey_api_codegen_core0.NodeName | undefined, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g. `typeof Foo`). */
2239
- query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
2240
- template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g. [A, B, C]). */
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]). */
2241
2328
  tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl;
2242
- }; /** Creates a `typeof` expression (e.g. `typeof value`). */
2329
+ }; /** Creates a `typeof` expression (e.g., `typeof value`). */
2243
2330
  typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
2244
2331
  var: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
2245
2332
  };
@@ -2510,7 +2597,7 @@ interface Config$22 {
2510
2597
  requestValidator?: (data: unknown) => Promise<unknown>;
2511
2598
  /**
2512
2599
  * A function transforming response data before it's returned. This is useful
2513
- * for post-processing data, e.g. converting ISO strings into Date objects.
2600
+ * for post-processing data, e.g., converting ISO strings into Date objects.
2514
2601
  */
2515
2602
  responseTransformer?: (data: unknown) => Promise<unknown>;
2516
2603
  /**
@@ -3555,12 +3642,12 @@ type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
3555
3642
  type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
3556
3643
  /**
3557
3644
  * Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
3558
- * valid JavaScript/TypeScript identifier, e.g. if your schema name is
3645
+ * valid JavaScript/TypeScript identifier, e.g., if your schema name is
3559
3646
  * "Foo-Bar", `name` value would be "FooBar".
3560
3647
  *
3561
3648
  * @default '{{name}}Schema'
3562
3649
  */
3563
- nameBuilder?: string | ((name: string, schema: OpenApiV2_0_XTypes['SchemaObject'] | OpenApiV3_0_XTypes['ReferenceObject'] | OpenApiV3_0_XTypes['SchemaObject'] | OpenApiV3_1_XTypes['SchemaObject']) => string);
3650
+ nameBuilder?: string | ((name: string, schema: OpenAPIV2.SchemaObject | OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject | OpenAPIV3_1.SchemaObject) => string);
3564
3651
  /**
3565
3652
  * Choose schema type to generate. Select 'form' if you don't want
3566
3653
  * descriptions to reduce bundle size and you plan to use schemas
@@ -3768,7 +3855,7 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
3768
3855
  client?: PluginClientNames | boolean;
3769
3856
  /**
3770
3857
  * Generate code examples for SDK operations and attach them to the
3771
- * input source (e.g. via `x-codeSamples`).
3858
+ * input source (e.g., via `x-codeSamples`).
3772
3859
  *
3773
3860
  * Set to `false` to disable example generation entirely, or provide an
3774
3861
  * object for fine-grained control over the output and post-processing.