@hey-api/openapi-ts 0.96.1 → 0.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { n as UserConfig } from "./types-DAEl4_a4.mjs";
2
- 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";
1
+ import { n as UserConfig } from "./types-KzipN7UT.mjs";
2
+ import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
3
3
  import { BaseOutput, Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, utils } from "@hey-api/shared";
4
4
  import ts from "typescript";
5
5
  import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
@@ -629,7 +629,7 @@ declare class DocTsDsl extends TsDsl<ts.Node> {
629
629
  analyze(ctx: AnalysisContext): void;
630
630
  add(lines: DocLines): this;
631
631
  apply<T extends ts.Node>(node: T): T;
632
- toAst(): ts.Identifier;
632
+ toAst(): any;
633
633
  }
634
634
  //#endregion
635
635
  //#region src/ts-dsl/mixins/doc.d.ts
@@ -1156,7 +1156,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
1156
1156
  structuralParents?: Map<TsDsl, NodeRelationship>;
1157
1157
  symbol?: Symbol;
1158
1158
  toAst(): T;
1159
- readonly '~brand' = "heyapi.node";
1159
+ readonly '~brand': any;
1160
1160
  /** Branding property to identify the DSL class at runtime. */
1161
1161
  abstract readonly '~dsl': AnyString;
1162
1162
  /** Conditionally applies a callback to this builder. */
@@ -1225,27 +1225,7 @@ declare class HintTsDsl extends TsDsl<ts.Node> {
1225
1225
  analyze(ctx: AnalysisContext): void;
1226
1226
  add(lines: HintLines): this;
1227
1227
  apply<T extends ts.Node>(node: T): T;
1228
- toAst(): ts.Identifier;
1229
- }
1230
- //#endregion
1231
- //#region src/ts-dsl/stmt/if.d.ts
1232
- type IfCondition = NodeName | MaybeTsDsl<ts.Expression>;
1233
- declare const Mixed$37: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
1234
- declare class IfTsDsl extends Mixed$37 {
1235
- readonly '~dsl' = "IfTsDsl";
1236
- protected _condition?: IfCondition;
1237
- protected _else?: Array<DoExpr>;
1238
- constructor(condition?: IfCondition);
1239
- analyze(ctx: AnalysisContext): void;
1240
- /** Returns true when all required builder calls are present. */
1241
- get isValid(): boolean;
1242
- condition(condition: IfCondition): this;
1243
- otherwise(...items: Array<DoExpr>): this;
1244
- toAst(): ts.IfStatement;
1245
- $validate(): asserts this is this & {
1246
- _condition: IfCondition;
1247
- };
1248
- private missingRequiredCalls;
1228
+ toAst(): any;
1249
1229
  }
1250
1230
  //#endregion
1251
1231
  //#region src/ts-dsl/utils/lazy.d.ts
@@ -1330,8 +1310,8 @@ declare function createLiteral(value: TsLiteralValue, leadingComments?: Readonly
1330
1310
  //#region src/ts-dsl/expr/prefix.d.ts
1331
1311
  type PrefixExpr = string | MaybeTsDsl<ts.Expression>;
1332
1312
  type PrefixOp = ts.PrefixUnaryOperator;
1333
- declare const Mixed$36: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
1334
- declare class PrefixTsDsl extends Mixed$36 {
1313
+ declare const Mixed$37: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
1314
+ declare class PrefixTsDsl extends Mixed$37 {
1335
1315
  readonly '~dsl' = "PrefixTsDsl";
1336
1316
  protected _expr?: PrefixExpr;
1337
1317
  protected _op?: PrefixOp;
@@ -1366,25 +1346,13 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
1366
1346
  analyze(ctx: AnalysisContext): void;
1367
1347
  add(lines: NoteLines): this;
1368
1348
  apply<T extends ts.Node>(node: T): T;
1369
- toAst(): ts.Identifier;
1370
- }
1371
- //#endregion
1372
- //#region src/ts-dsl/expr/template.d.ts
1373
- type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
1374
- declare const Mixed$35: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
1375
- declare class TemplateTsDsl extends Mixed$35 {
1376
- readonly '~dsl' = "TemplateTsDsl";
1377
- protected parts: Array<Ref<TemplatePart>>;
1378
- constructor(value?: TemplatePart);
1379
- analyze(ctx: AnalysisContext): void;
1380
- add(value: TemplatePart): this;
1381
- toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
1349
+ toAst(): any;
1382
1350
  }
1383
1351
  //#endregion
1384
1352
  //#region src/ts-dsl/decl/field.d.ts
1385
1353
  type FieldType = NodeName | TypeTsDsl;
1386
- declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
1387
- declare class FieldTsDsl extends Mixed$34 {
1354
+ declare const Mixed$36: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
1355
+ declare class FieldTsDsl extends Mixed$36 {
1388
1356
  readonly '~dsl' = "FieldTsDsl";
1389
1357
  readonly nameSanitizer: (name: string) => string;
1390
1358
  protected _type?: TypeTsDsl;
@@ -1396,8 +1364,8 @@ declare class FieldTsDsl extends Mixed$34 {
1396
1364
  }
1397
1365
  //#endregion
1398
1366
  //#region src/ts-dsl/decl/init.d.ts
1399
- declare const Mixed$33: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
1400
- declare class InitTsDsl extends Mixed$33 {
1367
+ declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
1368
+ declare class InitTsDsl extends Mixed$35 {
1401
1369
  readonly '~dsl' = "InitTsDsl";
1402
1370
  constructor(fn?: (i: InitTsDsl) => void);
1403
1371
  analyze(ctx: AnalysisContext): void;
@@ -1406,8 +1374,8 @@ declare class InitTsDsl extends Mixed$33 {
1406
1374
  //#endregion
1407
1375
  //#region src/ts-dsl/decl/class.d.ts
1408
1376
  type Body = Array<MaybeTsDsl<ts.ClassElement | ts.Node>>;
1409
- declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
1410
- declare class ClassTsDsl extends Mixed$32 {
1377
+ declare const Mixed$34: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration>, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
1378
+ declare class ClassTsDsl extends Mixed$34 {
1411
1379
  readonly '~dsl' = "ClassTsDsl";
1412
1380
  readonly nameSanitizer: (name: string) => string;
1413
1381
  protected baseClass?: Ref<NodeName>;
@@ -1434,8 +1402,8 @@ declare class ClassTsDsl extends Mixed$32 {
1434
1402
  }
1435
1403
  //#endregion
1436
1404
  //#region src/ts-dsl/decl/decorator.d.ts
1437
- declare const Mixed$31: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
1438
- declare class DecoratorTsDsl extends Mixed$31 {
1405
+ declare const Mixed$33: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMethods>;
1406
+ declare class DecoratorTsDsl extends Mixed$33 {
1439
1407
  readonly '~dsl' = "DecoratorTsDsl";
1440
1408
  readonly nameSanitizer: (name: string) => string;
1441
1409
  constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
@@ -1446,8 +1414,8 @@ declare class DecoratorTsDsl extends Mixed$31 {
1446
1414
  //#region src/ts-dsl/decl/member.d.ts
1447
1415
  type Value$2 = string | number | MaybeTsDsl<ts.Expression>;
1448
1416
  type ValueFn$1 = Value$2 | ((m: EnumMemberTsDsl) => void);
1449
- declare const Mixed$30: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
1450
- declare class EnumMemberTsDsl extends Mixed$30 {
1417
+ declare const Mixed$32: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMethods>;
1418
+ declare class EnumMemberTsDsl extends Mixed$32 {
1451
1419
  readonly '~dsl' = "EnumMemberTsDsl";
1452
1420
  private _value?;
1453
1421
  constructor(name: NodeName, value?: ValueFn$1);
@@ -1460,8 +1428,8 @@ declare class EnumMemberTsDsl extends Mixed$30 {
1460
1428
  //#region src/ts-dsl/decl/enum.d.ts
1461
1429
  type Value$1 = string | number | MaybeTsDsl<ts.Expression>;
1462
1430
  type ValueFn = Value$1 | ((m: EnumMemberTsDsl) => void);
1463
- declare const Mixed$29: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
1464
- declare class EnumTsDsl extends Mixed$29 {
1431
+ declare const Mixed$31: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration>, ExportMethods>, DocMethods>, ConstMethods>;
1432
+ declare class EnumTsDsl extends Mixed$31 {
1465
1433
  readonly '~dsl' = "EnumTsDsl";
1466
1434
  readonly nameSanitizer: (name: string) => string;
1467
1435
  private _members;
@@ -1476,8 +1444,8 @@ declare class EnumTsDsl extends Mixed$29 {
1476
1444
  //#endregion
1477
1445
  //#region src/ts-dsl/decl/func.d.ts
1478
1446
  type FuncMode = 'arrow' | 'decl' | 'expr';
1479
- declare const Mixed$28: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
1480
- declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
1447
+ declare const Mixed$30: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction>, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
1448
+ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$30 {
1481
1449
  readonly '~dsl' = "FuncTsDsl";
1482
1450
  readonly nameSanitizer: (name: string) => string;
1483
1451
  protected mode?: FuncMode;
@@ -1507,8 +1475,8 @@ declare const FuncTsDsl: {
1507
1475
  type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
1508
1476
  //#endregion
1509
1477
  //#region src/ts-dsl/decl/getter.d.ts
1510
- 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>;
1511
- declare class GetterTsDsl extends Mixed$27 {
1478
+ declare const Mixed$29: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.GetAccessorDeclaration>, TypeReturnsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1479
+ declare class GetterTsDsl extends Mixed$29 {
1512
1480
  readonly '~dsl' = "GetterTsDsl";
1513
1481
  readonly nameSanitizer: (name: string) => string;
1514
1482
  constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
@@ -1517,11 +1485,11 @@ declare class GetterTsDsl extends Mixed$27 {
1517
1485
  }
1518
1486
  //#endregion
1519
1487
  //#region src/ts-dsl/decl/pattern.d.ts
1520
- declare const Mixed$26: abstract new () => TsDsl<ts.BindingName>;
1488
+ declare const Mixed$28: abstract new () => TsDsl<ts.BindingName>;
1521
1489
  /**
1522
1490
  * Builds binding patterns (e.g., `{ foo, bar }`, `[a, b, ...rest]`).
1523
1491
  */
1524
- declare class PatternTsDsl extends Mixed$26 {
1492
+ declare class PatternTsDsl extends Mixed$28 {
1525
1493
  readonly '~dsl' = "PatternTsDsl";
1526
1494
  protected pattern?: {
1527
1495
  kind: 'array';
@@ -1555,8 +1523,8 @@ declare class PatternTsDsl extends Mixed$26 {
1555
1523
  }
1556
1524
  //#endregion
1557
1525
  //#region src/ts-dsl/decl/setter.d.ts
1558
- 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>;
1559
- declare class SetterTsDsl extends Mixed$25 {
1526
+ declare const Mixed$27: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.SetAccessorDeclaration>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
1527
+ declare class SetterTsDsl extends Mixed$27 {
1560
1528
  readonly '~dsl' = "SetterTsDsl";
1561
1529
  readonly nameSanitizer: (name: string) => string;
1562
1530
  constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
@@ -1578,8 +1546,8 @@ interface LayoutMethods extends Node {
1578
1546
  //#endregion
1579
1547
  //#region src/ts-dsl/expr/array.d.ts
1580
1548
  type ArrayExpr = string | number | boolean | MaybeTsDsl<ts.Expression>;
1581
- declare const Mixed$24: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, SpreadMethods>, LayoutMethods>, ExprMethods>, AsMethods>;
1582
- declare class ArrayTsDsl extends Mixed$24 {
1549
+ declare const Mixed$26: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression>, SpreadMethods>, LayoutMethods>, ExprMethods>, AsMethods>;
1550
+ declare class ArrayTsDsl extends Mixed$26 {
1583
1551
  readonly '~dsl' = "ArrayTsDsl";
1584
1552
  protected _elements: Array<MaybeTsDsl<ts.Expression>>;
1585
1553
  constructor(...exprs: Array<ArrayExpr>);
@@ -1593,18 +1561,18 @@ declare class ArrayTsDsl extends Mixed$24 {
1593
1561
  //#endregion
1594
1562
  //#region src/ts-dsl/expr/expr.d.ts
1595
1563
  type Id = NodeName | MaybeTsDsl<ts.Expression>;
1596
- declare const Mixed$23: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, SpreadMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
1597
- declare class ExprTsDsl extends Mixed$23 {
1564
+ declare const Mixed$25: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, SpreadMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
1565
+ declare class ExprTsDsl extends Mixed$25 {
1598
1566
  readonly '~dsl' = "ExprTsDsl";
1599
1567
  protected _exprInput: Ref<Id>;
1600
1568
  constructor(id: Id);
1601
1569
  analyze(ctx: AnalysisContext): void;
1602
- toAst(): ts.Expression;
1570
+ toAst(): any;
1603
1571
  }
1604
1572
  //#endregion
1605
1573
  //#region src/ts-dsl/expr/id.d.ts
1606
- declare const Mixed$22: abstract new () => TsDsl<ts.Identifier>;
1607
- declare class IdTsDsl extends Mixed$22 {
1574
+ declare const Mixed$24: abstract new () => TsDsl<ts.Identifier>;
1575
+ declare class IdTsDsl extends Mixed$24 {
1608
1576
  readonly '~dsl' = "IdTsDsl";
1609
1577
  constructor(name: string);
1610
1578
  analyze(ctx: AnalysisContext): void;
@@ -1661,13 +1629,13 @@ declare const ts$1: {
1661
1629
  };
1662
1630
  //#endregion
1663
1631
  //#region src/ts-dsl/expr/literal.d.ts
1664
- declare const Mixed$21: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral>, AsMethods>;
1665
- declare class LiteralTsDsl extends Mixed$21 {
1632
+ declare const Mixed$23: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral>, AsMethods>;
1633
+ declare class LiteralTsDsl extends Mixed$23 {
1666
1634
  readonly '~dsl' = "LiteralTsDsl";
1667
1635
  protected value: ts$1.LiteralValue;
1668
1636
  constructor(value: ts$1.LiteralValue);
1669
1637
  analyze(ctx: AnalysisContext): void;
1670
- toAst(): ts.BigIntLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral;
1638
+ toAst(): any;
1671
1639
  }
1672
1640
  //#endregion
1673
1641
  //#region src/ts-dsl/mixins/hint.d.ts
@@ -1698,8 +1666,8 @@ type Meta = {
1698
1666
  kind: 'spread';
1699
1667
  name?: undefined;
1700
1668
  };
1701
- declare const Mixed$20: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
1702
- declare class ObjectPropTsDsl extends Mixed$20 {
1669
+ declare const Mixed$22: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
1670
+ declare class ObjectPropTsDsl extends Mixed$22 {
1703
1671
  readonly '~dsl' = "ObjectPropTsDsl";
1704
1672
  protected _value?: Ref<ObjectPropValue>;
1705
1673
  protected _meta: Meta;
@@ -1709,7 +1677,7 @@ declare class ObjectPropTsDsl extends Mixed$20 {
1709
1677
  get kind(): ObjectPropKind;
1710
1678
  get propName(): string | undefined;
1711
1679
  value(value: ObjectPropValue): this;
1712
- toAst(): ts.MethodDeclaration | ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment;
1680
+ toAst(): any;
1713
1681
  $validate(): asserts this is this & {
1714
1682
  _value: ObjectPropValue;
1715
1683
  kind: ObjectPropKind;
@@ -1720,8 +1688,8 @@ declare class ObjectPropTsDsl extends Mixed$20 {
1720
1688
  //#region src/ts-dsl/expr/object.d.ts
1721
1689
  type Expr = NodeName | MaybeTsDsl<ts.Expression>;
1722
1690
  type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
1723
- declare const Mixed$19: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
1724
- declare class ObjectTsDsl extends Mixed$19 {
1691
+ declare const Mixed$21: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
1692
+ declare class ObjectTsDsl extends Mixed$21 {
1725
1693
  readonly '~dsl' = "ObjectTsDsl";
1726
1694
  protected _props: Map<string, ObjectPropTsDsl>;
1727
1695
  protected _spreadCounter: number;
@@ -1753,8 +1721,8 @@ declare class ObjectTsDsl extends Mixed$19 {
1753
1721
  //#region src/ts-dsl/expr/regexp.d.ts
1754
1722
  type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
1755
1723
  type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
1756
- declare const Mixed$18: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1757
- declare class RegExpTsDsl extends Mixed$18 {
1724
+ declare const Mixed$20: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
1725
+ declare class RegExpTsDsl extends Mixed$20 {
1758
1726
  readonly '~dsl' = "RegExpTsDsl";
1759
1727
  protected pattern: string;
1760
1728
  protected flags?: RegexFlags;
@@ -1763,9 +1731,21 @@ declare class RegExpTsDsl extends Mixed$18 {
1763
1731
  toAst(): ts.RegularExpressionLiteral;
1764
1732
  }
1765
1733
  //#endregion
1734
+ //#region src/ts-dsl/expr/template.d.ts
1735
+ type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
1736
+ declare const Mixed$19: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
1737
+ declare class TemplateTsDsl extends Mixed$19 {
1738
+ readonly '~dsl' = "TemplateTsDsl";
1739
+ protected parts: Array<Ref<TemplatePart>>;
1740
+ constructor(value?: TemplatePart);
1741
+ analyze(ctx: AnalysisContext): void;
1742
+ add(value: TemplatePart): this;
1743
+ toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
1744
+ }
1745
+ //#endregion
1766
1746
  //#region src/ts-dsl/expr/ternary.d.ts
1767
- declare const Mixed$17: abstract new () => TsDsl<ts.ConditionalExpression>;
1768
- declare class TernaryTsDsl extends Mixed$17 {
1747
+ declare const Mixed$18: abstract new () => TsDsl<ts.ConditionalExpression>;
1748
+ declare class TernaryTsDsl extends Mixed$18 {
1769
1749
  readonly '~dsl' = "TernaryTsDsl";
1770
1750
  protected _condition?: string | MaybeTsDsl<ts.Expression>;
1771
1751
  protected _then?: string | MaybeTsDsl<ts.Expression>;
@@ -1790,12 +1770,12 @@ declare class TernaryTsDsl extends Mixed$17 {
1790
1770
  declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
1791
1771
  readonly '~dsl' = "NewlineTsDsl";
1792
1772
  analyze(ctx: AnalysisContext): void;
1793
- toAst(): ts.Identifier;
1773
+ toAst(): any;
1794
1774
  }
1795
1775
  //#endregion
1796
1776
  //#region src/ts-dsl/stmt/block.d.ts
1797
- declare const Mixed$16: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
1798
- declare class BlockTsDsl extends Mixed$16 {
1777
+ declare const Mixed$17: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block>, LayoutMethods>, DoMethods>;
1778
+ declare class BlockTsDsl extends Mixed$17 {
1799
1779
  readonly '~dsl' = "BlockTsDsl";
1800
1780
  constructor(...items: Array<DoExpr>);
1801
1781
  analyze(ctx: AnalysisContext): void;
@@ -1803,8 +1783,8 @@ declare class BlockTsDsl extends Mixed$16 {
1803
1783
  }
1804
1784
  //#endregion
1805
1785
  //#region src/ts-dsl/stmt/var.d.ts
1806
- declare const Mixed$15: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
1807
- declare class VarTsDsl extends Mixed$15 {
1786
+ declare const Mixed$16: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement>, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
1787
+ declare class VarTsDsl extends Mixed$16 {
1808
1788
  readonly '~dsl' = "VarTsDsl";
1809
1789
  readonly nameSanitizer: (name: string) => string;
1810
1790
  protected kind: ts.NodeFlags;
@@ -1827,8 +1807,8 @@ declare class VarTsDsl extends Mixed$15 {
1827
1807
  type ForMode = 'for' | 'in' | 'of';
1828
1808
  type ForCondition = MaybeTsDsl<ts.Expression>;
1829
1809
  type ForIterable = MaybeTsDsl<ts.Expression>;
1830
- declare const Mixed$14: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ForStatement>, LayoutMethods>, DoMethods>;
1831
- declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$14 {
1810
+ declare const Mixed$15: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ForStatement>, LayoutMethods>, DoMethods>;
1811
+ declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$15 {
1832
1812
  readonly '~dsl' = "ForTsDsl";
1833
1813
  protected _await?: boolean;
1834
1814
  protected _condition?: ForCondition;
@@ -1869,6 +1849,26 @@ declare const ForTsDsl: {
1869
1849
  } & typeof ImplForTsDsl;
1870
1850
  type ForTsDsl<M extends ForMode = 'for'> = ImplForTsDsl<M>;
1871
1851
  //#endregion
1852
+ //#region src/ts-dsl/stmt/if.d.ts
1853
+ type IfCondition = NodeName | MaybeTsDsl<ts.Expression>;
1854
+ declare const Mixed$14: MixinCtor<abstract new () => TsDsl<ts.IfStatement>, DoMethods>;
1855
+ declare class IfTsDsl extends Mixed$14 {
1856
+ readonly '~dsl' = "IfTsDsl";
1857
+ protected _condition?: IfCondition;
1858
+ protected _else?: Array<DoExpr>;
1859
+ constructor(condition?: IfCondition);
1860
+ analyze(ctx: AnalysisContext): void;
1861
+ /** Returns true when all required builder calls are present. */
1862
+ get isValid(): boolean;
1863
+ condition(condition: IfCondition): this;
1864
+ otherwise(...items: Array<DoExpr>): this;
1865
+ toAst(): ts.IfStatement;
1866
+ $validate(): asserts this is this & {
1867
+ _condition: IfCondition;
1868
+ };
1869
+ private missingRequiredCalls;
1870
+ }
1871
+ //#endregion
1872
1872
  //#region src/ts-dsl/stmt/stmt.d.ts
1873
1873
  declare const Mixed$13: abstract new () => TsDsl<ts.Statement>;
1874
1874
  declare class StmtTsDsl extends Mixed$13 {
@@ -2267,21 +2267,21 @@ declare const reserved: {
2267
2267
  };
2268
2268
  //#endregion
2269
2269
  //#region src/ts-dsl/index.d.ts
2270
- declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | NodeName) => ExprTsDsl) & {
2270
+ declare const $: ((id: any) => ExprTsDsl) & {
2271
2271
  /** Creates an array literal expression (e.g., `[1, 2, 3]`). */array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => ArrayTsDsl; /** Creates an `as` type assertion expression (e.g., `value as Type`). */
2272
- as: (expr: AsExpr, type: AsType) => AsTsDsl; /** Creates a property access expression (e.g., `obj.foo`). */
2273
- attr: (left: AttrLeft, right: NodeName) => AttrTsDsl; /** Creates an await expression (e.g., `await promise`). */
2274
- await: (expr: AwaitExpr) => AwaitTsDsl; /** Creates a binary expression (e.g., `a + b`). */
2275
- binary: (base: ts.Expression | TsDsl<ts.Expression> | NodeName, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: (ts.Expression | TsDsl<ts.Expression> | NodeName) | undefined) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
2272
+ as: (expr: any, type: any) => AsTsDsl; /** Creates a property access expression (e.g., `obj.foo`). */
2273
+ attr: (left: any, right: NodeName) => AttrTsDsl; /** Creates an await expression (e.g., `await promise`). */
2274
+ await: (expr: any) => AwaitTsDsl; /** Creates a binary expression (e.g., `a + b`). */
2275
+ binary: (base: any, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: any) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
2276
2276
  block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g., `fn(arg)`). */
2277
- call: (callee: CallCallee, ...args: (CallCallee | undefined)[]) => CallTsDsl; /** Creates a class declaration or expression. */
2277
+ call: (callee: any, ...args: any[]) => CallTsDsl; /** Creates a class declaration or expression. */
2278
2278
  class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
2279
- const: (name?: NodeName | undefined) => VarTsDsl; /** Creates a postfix decrement expression (`i--`). */
2279
+ const: (name?: any) => VarTsDsl; /** Creates a postfix decrement expression (`i--`). */
2280
2280
  dec: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates a decorator expression (e.g., `@decorator`). */
2281
2281
  decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
2282
2282
  doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
2283
2283
  enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
2284
- expr: (id: ts.Expression | TsDsl<ts.Expression> | NodeName) => ExprTsDsl; /** Creates a field declaration in a class or object. */
2284
+ expr: (id: any) => ExprTsDsl; /** Creates a field declaration in a class or object. */
2285
2285
  field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Creates a for loop (for, for...of, for...in, or for await...of). */
2286
2286
  for: {
2287
2287
  (variableOrInit?: VarTsDsl): ForTsDsl<ForMode>;
@@ -2301,21 +2301,21 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | NodeName) => ExprT
2301
2301
  getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
2302
2302
  hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g., `foo`). */
2303
2303
  id: (name: string) => IdTsDsl; /** Creates an if statement. */
2304
- if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates a postfix increment expression (`i++`). */
2304
+ if: (condition?: any) => IfTsDsl; /** Creates a postfix increment expression (`i++`). */
2305
2305
  inc: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates an initialization block or statement. */
2306
2306
  init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
2307
2307
  lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
2308
- let: (name?: NodeName | undefined) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
2308
+ let: (name?: any) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
2309
2309
  literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
2310
2310
  member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
2311
2311
  method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
2312
2312
  neg: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g., `new ClassName()`). */
2313
- new: (expr: NewExpr, ...args: (NewExpr | undefined)[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
2313
+ new: (expr: any, ...args: any[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
2314
2314
  newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
2315
2315
  not: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
2316
2316
  note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
2317
2317
  object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
2318
- param: (name: ParamName, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
2318
+ param: (name: any, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
2319
2319
  pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g., `-x`, `!x`, `~x`). */
2320
2320
  prefix: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g., `{ foo: bar }`). */
2321
2321
  prop: (meta: {
@@ -2338,11 +2338,11 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | NodeName) => ExprT
2338
2338
  name?: undefined;
2339
2339
  }) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g., `/foo/gi`). */
2340
2340
  regexp: (pattern: string, flags?: ("" | "g" | "i" | "m" | "s" | "u" | "y" | "uy" | "yu" | "su" | "sy" | "suy" | "syu" | "ys" | "us" | "usy" | "uys" | "ysu" | "yus" | "ms" | "mu" | "my" | "muy" | "myu" | "msu" | "msy" | "msuy" | "msyu" | "mys" | "mus" | "musy" | "muys" | "mysu" | "myus" | "ym" | "um" | "umy" | "uym" | "ymu" | "yum" | "sm" | "smu" | "smy" | "smuy" | "smyu" | "sym" | "sum" | "sumy" | "suym" | "symu" | "syum" | "yms" | "ysm" | "ums" | "umsy" | "umys" | "usm" | "usmy" | "usym" | "uyms" | "uysm" | "ymsu" | "ymus" | "ysmu" | "ysum" | "yums" | "yusm" | "im" | "is" | "iu" | "iy" | "iuy" | "iyu" | "isu" | "isy" | "isuy" | "isyu" | "iys" | "ius" | "iusy" | "iuys" | "iysu" | "iyus" | "ims" | "imu" | "imy" | "imuy" | "imyu" | "imsu" | "imsy" | "imsuy" | "imsyu" | "imys" | "imus" | "imusy" | "imuys" | "imysu" | "imyus" | "iym" | "ium" | "iumy" | "iuym" | "iymu" | "iyum" | "ism" | "ismu" | "ismy" | "ismuy" | "ismyu" | "isym" | "isum" | "isumy" | "isuym" | "isymu" | "isyum" | "iyms" | "iysm" | "iums" | "iumsy" | "iumys" | "iusm" | "iusmy" | "iusym" | "iuyms" | "iuysm" | "iymsu" | "iymus" | "iysmu" | "iysum" | "iyums" | "iyusm" | "yi" | "ui" | "uiy" | "uyi" | "yiu" | "yui" | "si" | "siu" | "siy" | "siuy" | "siyu" | "syi" | "sui" | "suiy" | "suyi" | "syiu" | "syui" | "yis" | "ysi" | "uis" | "uisy" | "uiys" | "usi" | "usiy" | "usyi" | "uyis" | "uysi" | "yisu" | "yius" | "ysiu" | "ysui" | "yuis" | "yusi" | "mi" | "mis" | "miu" | "miy" | "miuy" | "miyu" | "misu" | "misy" | "misuy" | "misyu" | "miys" | "mius" | "miusy" | "miuys" | "miysu" | "miyus" | "myi" | "mui" | "muiy" | "muyi" | "myiu" | "myui" | "msi" | "msiu" | "msiy" | "msiuy" | "msiyu" | "msyi" | "msui" | "msuiy" | "msuyi" | "msyiu" | "msyui" | "myis" | "mysi" | "muis" | "muisy" | "muiys" | "musi" | "musiy" | "musyi" | "muyis" | "muysi" | "myisu" | "myius" | "mysiu" | "mysui" | "myuis" | "myusi" | "yim" | "ymi" | "uim" | "uimy" | "uiym" | "umi" | "umiy" | "umyi" | "uyim" | "uymi" | "yimu" | "yium" | "ymiu" | "ymui" | "yuim" | "yumi" | "sim" | "simu" | "simy" | "simuy" | "simyu" | "siym" | "sium" | "siumy" | "siuym" | "siymu" | "siyum" | "smi" | "smiu" | "smiy" | "smiuy" | "smiyu" | "smyi" | "smui" | "smuiy" | "smuyi" | "smyiu" | "smyui" | "syim" | "symi" | "suim" | "suimy" | "suiym" | "sumi" | "sumiy" | "sumyi" | "suyim" | "suymi" | "syimu" | "syium" | "symiu" | "symui" | "syuim" | "syumi" | "yims" | "yism" | "ymis" | "ymsi" | "ysim" | "ysmi" | "uims" | "uimsy" | "uimys" | "uism" | "uismy" | "uisym" | "uiyms" | "uiysm" | "umis" | "umisy" | "umiys" | "umsi" | "umsiy" | "umsyi" | "umyis" | "umysi" | "usim" | "usimy" | "usiym" | "usmi" | "usmiy" | "usmyi" | "usyim" | "usymi" | "uyims" | "uyism" | "uymis" | "uymsi" | "uysim" | "uysmi" | "yimsu" | "yimus" | "yismu" | "yisum" | "yiums" | "yiusm" | "ymisu" | "ymius" | "ymsiu" | "ymsui" | "ymuis" | "ymusi" | "ysimu" | "ysium" | "ysmiu" | "ysmui" | "ysuim" | "ysumi" | "yuims" | "yuism" | "yumis" | "yumsi" | "yusim" | "yusmi" | "gi" | "gm" | "gs" | "gu" | "gy" | "guy" | "gyu" | "gsu" | "gsy" | "gsuy" | "gsyu" | "gys" | "gus" | "gusy" | "guys" | "gysu" | "gyus" | "gms" | "gmu" | "gmy" | "gmuy" | "gmyu" | "gmsu" | "gmsy" | "gmsuy" | "gmsyu" | "gmys" | "gmus" | "gmusy" | "gmuys" | "gmysu" | "gmyus" | "gym" | "gum" | "gumy" | "guym" | "gymu" | "gyum" | "gsm" | "gsmu" | "gsmy" | "gsmuy" | "gsmyu" | "gsym" | "gsum" | "gsumy" | "gsuym" | "gsymu" | "gsyum" | "gyms" | "gysm" | "gums" | "gumsy" | "gumys" | "gusm" | "gusmy" | "gusym" | "guyms" | "guysm" | "gymsu" | "gymus" | "gysmu" | "gysum" | "gyums" | "gyusm" | "gim" | "gis" | "giu" | "giy" | "giuy" | "giyu" | "gisu" | "gisy" | "gisuy" | "gisyu" | "giys" | "gius" | "giusy" | "giuys" | "giysu" | "giyus" | "gims" | "gimu" | "gimy" | "gimuy" | "gimyu" | "gimsu" | "gimsy" | "gimsuy" | "gimsyu" | "gimys" | "gimus" | "gimusy" | "gimuys" | "gimysu" | "gimyus" | "giym" | "gium" | "giumy" | "giuym" | "giymu" | "giyum" | "gism" | "gismu" | "gismy" | "gismuy" | "gismyu" | "gisym" | "gisum" | "gisumy" | "gisuym" | "gisymu" | "gisyum" | "giyms" | "giysm" | "giums" | "giumsy" | "giumys" | "giusm" | "giusmy" | "giusym" | "giuyms" | "giuysm" | "giymsu" | "giymus" | "giysmu" | "giysum" | "giyums" | "giyusm" | "gyi" | "gui" | "guiy" | "guyi" | "gyiu" | "gyui" | "gsi" | "gsiu" | "gsiy" | "gsiuy" | "gsiyu" | "gsyi" | "gsui" | "gsuiy" | "gsuyi" | "gsyiu" | "gsyui" | "gyis" | "gysi" | "guis" | "guisy" | "guiys" | "gusi" | "gusiy" | "gusyi" | "guyis" | "guysi" | "gyisu" | "gyius" | "gysiu" | "gysui" | "gyuis" | "gyusi" | "gmi" | "gmis" | "gmiu" | "gmiy" | "gmiuy" | "gmiyu" | "gmisu" | "gmisy" | "gmisuy" | "gmisyu" | "gmiys" | "gmius" | "gmiusy" | "gmiuys" | "gmiysu" | "gmiyus" | "gmyi" | "gmui" | "gmuiy" | "gmuyi" | "gmyiu" | "gmyui" | "gmsi" | "gmsiu" | "gmsiy" | "gmsiuy" | "gmsiyu" | "gmsyi" | "gmsui" | "gmsuiy" | "gmsuyi" | "gmsyiu" | "gmsyui" | "gmyis" | "gmysi" | "gmuis" | "gmuisy" | "gmuiys" | "gmusi" | "gmusiy" | "gmusyi" | "gmuyis" | "gmuysi" | "gmyisu" | "gmyius" | "gmysiu" | "gmysui" | "gmyuis" | "gmyusi" | "gyim" | "gymi" | "guim" | "guimy" | "guiym" | "gumi" | "gumiy" | "gumyi" | "guyim" | "guymi" | "gyimu" | "gyium" | "gymiu" | "gymui" | "gyuim" | "gyumi" | "gsim" | "gsimu" | "gsimy" | "gsimuy" | "gsimyu" | "gsiym" | "gsium" | "gsiumy" | "gsiuym" | "gsiymu" | "gsiyum" | "gsmi" | "gsmiu" | "gsmiy" | "gsmiuy" | "gsmiyu" | "gsmyi" | "gsmui" | "gsmuiy" | "gsmuyi" | "gsmyiu" | "gsmyui" | "gsyim" | "gsymi" | "gsuim" | "gsuimy" | "gsuiym" | "gsumi" | "gsumiy" | "gsumyi" | "gsuyim" | "gsuymi" | "gsyimu" | "gsyium" | "gsymiu" | "gsymui" | "gsyuim" | "gsyumi" | "gyims" | "gyism" | "gymis" | "gymsi" | "gysim" | "gysmi" | "guims" | "guimsy" | "guimys" | "guism" | "guismy" | "guisym" | "guiyms" | "guiysm" | "gumis" | "gumisy" | "gumiys" | "gumsi" | "gumsiy" | "gumsyi" | "gumyis" | "gumysi" | "gusim" | "gusimy" | "gusiym" | "gusmi" | "gusmiy" | "gusmyi" | "gusyim" | "gusymi" | "guyims" | "guyism" | "guymis" | "guymsi" | "guysim" | "guysmi" | "gyimsu" | "gyimus" | "gyismu" | "gyisum" | "gyiums" | "gyiusm" | "gymisu" | "gymius" | "gymsiu" | "gymsui" | "gymuis" | "gymusi" | "gysimu" | "gysium" | "gysmiu" | "gysmui" | "gysuim" | "gysumi" | "gyuims" | "gyuism" | "gyumis" | "gyumsi" | "gyusim" | "gyusmi" | "yg" | "ug" | "ugy" | "uyg" | "ygu" | "yug" | "sg" | "sgu" | "sgy" | "sguy" | "sgyu" | "syg" | "sug" | "sugy" | "suyg" | "sygu" | "syug" | "ygs" | "ysg" | "ugs" | "ugsy" | "ugys" | "usg" | "usgy" | "usyg" | "uygs" | "uysg" | "ygsu" | "ygus" | "ysgu" | "ysug" | "yugs" | "yusg" | "mg" | "mgs" | "mgu" | "mgy" | "mguy" | "mgyu" | "mgsu" | "mgsy" | "mgsuy" | "mgsyu" | "mgys" | "mgus" | "mgusy" | "mguys" | "mgysu" | "mgyus" | "myg" | "mug" | "mugy" | "muyg" | "mygu" | "myug" | "msg" | "msgu" | "msgy" | "msguy" | "msgyu" | "msyg" | "msug" | "msugy" | "msuyg" | "msygu" | "msyug" | "mygs" | "mysg" | "mugs" | "mugsy" | "mugys" | "musg" | "musgy" | "musyg" | "muygs" | "muysg" | "mygsu" | "mygus" | "mysgu" | "mysug" | "myugs" | "myusg" | "ygm" | "ymg" | "ugm" | "ugmy" | "ugym" | "umg" | "umgy" | "umyg" | "uygm" | "uymg" | "ygmu" | "ygum" | "ymgu" | "ymug" | "yugm" | "yumg" | "sgm" | "sgmu" | "sgmy" | "sgmuy" | "sgmyu" | "sgym" | "sgum" | "sgumy" | "sguym" | "sgymu" | "sgyum" | "smg" | "smgu" | "smgy" | "smguy" | "smgyu" | "smyg" | "smug" | "smugy" | "smuyg" | "smygu" | "smyug" | "sygm" | "symg" | "sugm" | "sugmy" | "sugym" | "sumg" | "sumgy" | "sumyg" | "suygm" | "suymg" | "sygmu" | "sygum" | "symgu" | "symug" | "syugm" | "syumg" | "ygms" | "ygsm" | "ymgs" | "ymsg" | "ysgm" | "ysmg" | "ugms" | "ugmsy" | "ugmys" | "ugsm" | "ugsmy" | "ugsym" | "ugyms" | "ugysm" | "umgs" | "umgsy" | "umgys" | "umsg" | "umsgy" | "umsyg" | "umygs" | "umysg" | "usgm" | "usgmy" | "usgym" | "usmg" | "usmgy" | "usmyg" | "usygm" | "usymg" | "uygms" | "uygsm" | "uymgs" | "uymsg" | "uysgm" | "uysmg" | "ygmsu" | "ygmus" | "ygsmu" | "ygsum" | "ygums" | "ygusm" | "ymgsu" | "ymgus" | "ymsgu" | "ymsug" | "ymugs" | "ymusg" | "ysgmu" | "ysgum" | "ysmgu" | "ysmug" | "ysugm" | "ysumg" | "yugms" | "yugsm" | "yumgs" | "yumsg" | "yusgm" | "yusmg" | "ig" | "igm" | "igs" | "igu" | "igy" | "iguy" | "igyu" | "igsu" | "igsy" | "igsuy" | "igsyu" | "igys" | "igus" | "igusy" | "iguys" | "igysu" | "igyus" | "igms" | "igmu" | "igmy" | "igmuy" | "igmyu" | "igmsu" | "igmsy" | "igmsuy" | "igmsyu" | "igmys" | "igmus" | "igmusy" | "igmuys" | "igmysu" | "igmyus" | "igym" | "igum" | "igumy" | "iguym" | "igymu" | "igyum" | "igsm" | "igsmu" | "igsmy" | "igsmuy" | "igsmyu" | "igsym" | "igsum" | "igsumy" | "igsuym" | "igsymu" | "igsyum" | "igyms" | "igysm" | "igums" | "igumsy" | "igumys" | "igusm" | "igusmy" | "igusym" | "iguyms" | "iguysm" | "igymsu" | "igymus" | "igysmu" | "igysum" | "igyums" | "igyusm" | "iyg" | "iug" | "iugy" | "iuyg" | "iygu" | "iyug" | "isg" | "isgu" | "isgy" | "isguy" | "isgyu" | "isyg" | "isug" | "isugy" | "isuyg" | "isygu" | "isyug" | "iygs" | "iysg" | "iugs" | "iugsy" | "iugys" | "iusg" | "iusgy" | "iusyg" | "iuygs" | "iuysg" | "iygsu" | "iygus" | "iysgu" | "iysug" | "iyugs" | "iyusg" | "img" | "imgs" | "imgu" | "imgy" | "imguy" | "imgyu" | "imgsu" | "imgsy" | "imgsuy" | "imgsyu" | "imgys" | "imgus" | "imgusy" | "imguys" | "imgysu" | "imgyus" | "imyg" | "imug" | "imugy" | "imuyg" | "imygu" | "imyug" | "imsg" | "imsgu" | "imsgy" | "imsguy" | "imsgyu" | "imsyg" | "imsug" | "imsugy" | "imsuyg" | "imsygu" | "imsyug" | "imygs" | "imysg" | "imugs" | "imugsy" | "imugys" | "imusg" | "imusgy" | "imusyg" | "imuygs" | "imuysg" | "imygsu" | "imygus" | "imysgu" | "imysug" | "imyugs" | "imyusg" | "iygm" | "iymg" | "iugm" | "iugmy" | "iugym" | "iumg" | "iumgy" | "iumyg" | "iuygm" | "iuymg" | "iygmu" | "iygum" | "iymgu" | "iymug" | "iyugm" | "iyumg" | "isgm" | "isgmu" | "isgmy" | "isgmuy" | "isgmyu" | "isgym" | "isgum" | "isgumy" | "isguym" | "isgymu" | "isgyum" | "ismg" | "ismgu" | "ismgy" | "ismguy" | "ismgyu" | "ismyg" | "ismug" | "ismugy" | "ismuyg" | "ismygu" | "ismyug" | "isygm" | "isymg" | "isugm" | "isugmy" | "isugym" | "isumg" | "isumgy" | "isumyg" | "isuygm" | "isuymg" | "isygmu" | "isygum" | "isymgu" | "isymug" | "isyugm" | "isyumg" | "iygms" | "iygsm" | "iymgs" | "iymsg" | "iysgm" | "iysmg" | "iugms" | "iugmsy" | "iugmys" | "iugsm" | "iugsmy" | "iugsym" | "iugyms" | "iugysm" | "iumgs" | "iumgsy" | "iumgys" | "iumsg" | "iumsgy" | "iumsyg" | "iumygs" | "iumysg" | "iusgm" | "iusgmy" | "iusgym" | "iusmg" | "iusmgy" | "iusmyg" | "iusygm" | "iusymg" | "iuygms" | "iuygsm" | "iuymgs" | "iuymsg" | "iuysgm" | "iuysmg" | "iygmsu" | "iygmus" | "iygsmu" | "iygsum" | "iygums" | "iygusm" | "iymgsu" | "iymgus" | "iymsgu" | "iymsug" | "iymugs" | "iymusg" | "iysgmu" | "iysgum" | "iysmgu" | "iysmug" | "iysugm" | "iysumg" | "iyugms" | "iyugsm" | "iyumgs" | "iyumsg" | "iyusgm" | "iyusmg" | "ygi" | "yig" | "ugi" | "ugiy" | "ugyi" | "uig" | "uigy" | "uiyg" | "uygi" | "uyig" | "ygiu" | "ygui" | "yigu" | "yiug" | "yugi" | "yuig" | "sgi" | "sgiu" | "sgiy" | "sgiuy" | "sgiyu" | "sgyi" | "sgui" | "sguiy" | "sguyi" | "sgyiu" | "sgyui" | "sig" | "sigu" | "sigy" | "siguy" | "sigyu" | "siyg" | "siug" | "siugy" | "siuyg" | "siygu" | "siyug" | "sygi" | "syig" | "sugi" | "sugiy" | "sugyi" | "suig" | "suigy" | "suiyg" | "suygi" | "suyig" | "sygiu" | "sygui" | "syigu" | "syiug" | "syugi" | "syuig" | "ygis" | "ygsi" | "yigs" | "yisg" | "ysgi" | "ysig" | "ugis" | "ugisy" | "ugiys" | "ugsi" | "ugsiy" | "ugsyi" | "ugyis" | "ugysi" | "uigs" | "uigsy" | "uigys" | "uisg" | "uisgy" | "uisyg" | "uiygs" | "uiysg" | "usgi" | "usgiy" | "usgyi" | "usig" | "usigy" | "usiyg" | "usygi" | "usyig" | "uygis" | "uygsi" | "uyigs" | "uyisg" | "uysgi" | "uysig" | "ygisu" | "ygius" | "ygsiu" | "ygsui" | "yguis" | "ygusi" | "yigsu" | "yigus" | "yisgu" | "yisug" | "yiugs" | "yiusg" | "ysgiu" | "ysgui" | "ysigu" | "ysiug" | "ysugi" | "ysuig" | "yugis" | "yugsi" | "yuigs" | "yuisg" | "yusgi" | "yusig" | "mgi" | "mgis" | "mgiu" | "mgiy" | "mgiuy" | "mgiyu" | "mgisu" | "mgisy" | "mgisuy" | "mgisyu" | "mgiys" | "mgius" | "mgiusy" | "mgiuys" | "mgiysu" | "mgiyus" | "mgyi" | "mgui" | "mguiy" | "mguyi" | "mgyiu" | "mgyui" | "mgsi" | "mgsiu" | "mgsiy" | "mgsiuy" | "mgsiyu" | "mgsyi" | "mgsui" | "mgsuiy" | "mgsuyi" | "mgsyiu" | "mgsyui" | "mgyis" | "mgysi" | "mguis" | "mguisy" | "mguiys" | "mgusi" | "mgusiy" | "mgusyi" | "mguyis" | "mguysi" | "mgyisu" | "mgyius" | "mgysiu" | "mgysui" | "mgyuis" | "mgyusi" | "mig" | "migs" | "migu" | "migy" | "miguy" | "migyu" | "migsu" | "migsy" | "migsuy" | "migsyu" | "migys" | "migus" | "migusy" | "miguys" | "migysu" | "migyus" | "miyg" | "miug" | "miugy" | "miuyg" | "miygu" | "miyug" | "misg" | "misgu" | "misgy" | "misguy" | "misgyu" | "misyg" | "misug" | "misugy" | "misuyg" | "misygu" | "misyug" | "miygs" | "miysg" | "miugs" | "miugsy" | "miugys" | "miusg" | "miusgy" | "miusyg" | "miuygs" | "miuysg" | "miygsu" | "miygus" | "miysgu" | "miysug" | "miyugs" | "miyusg" | "mygi" | "myig" | "mugi" | "mugiy" | "mugyi" | "muig" | "muigy" | "muiyg" | "muygi" | "muyig" | "mygiu" | "mygui" | "myigu" | "myiug" | "myugi" | "myuig" | "msgi" | "msgiu" | "msgiy" | "msgiuy" | "msgiyu" | "msgyi" | "msgui" | "msguiy" | "msguyi" | "msgyiu" | "msgyui" | "msig" | "msigu" | "msigy" | "msiguy" | "msigyu" | "msiyg" | "msiug" | "msiugy" | "msiuyg" | "msiygu" | "msiyug" | "msygi" | "msyig" | "msugi" | "msugiy" | "msugyi" | "msuig" | "msuigy" | "msuiyg" | "msuygi" | "msuyig" | "msygiu" | "msygui" | "msyigu" | "msyiug" | "msyugi" | "msyuig" | "mygis" | "mygsi" | "myigs" | "myisg" | "mysgi" | "mysig" | "mugis" | "mugisy" | "mugiys" | "mugsi" | "mugsiy" | "mugsyi" | "mugyis" | "mugysi" | "muigs" | "muigsy" | "muigys" | "muisg" | "muisgy" | "muisyg" | "muiygs" | "muiysg" | "musgi" | "musgiy" | "musgyi" | "musig" | "musigy" | "musiyg" | "musygi" | "musyig" | "muygis" | "muygsi" | "muyigs" | "muyisg" | "muysgi" | "muysig" | "mygisu" | "mygius" | "mygsiu" | "mygsui" | "myguis" | "mygusi" | "myigsu" | "myigus" | "myisgu" | "myisug" | "myiugs" | "myiusg" | "mysgiu" | "mysgui" | "mysigu" | "mysiug" | "mysugi" | "mysuig" | "myugis" | "myugsi" | "myuigs" | "myuisg" | "myusgi" | "myusig" | "ygim" | "ygmi" | "yigm" | "yimg" | "ymgi" | "ymig" | "ugim" | "ugimy" | "ugiym" | "ugmi" | "ugmiy" | "ugmyi" | "ugyim" | "ugymi" | "uigm" | "uigmy" | "uigym" | "uimg" | "uimgy" | "uimyg" | "uiygm" | "uiymg" | "umgi" | "umgiy" | "umgyi" | "umig" | "umigy" | "umiyg" | "umygi" | "umyig" | "uygim" | "uygmi" | "uyigm" | "uyimg" | "uymgi" | "uymig" | "ygimu" | "ygium" | "ygmiu" | "ygmui" | "yguim" | "ygumi" | "yigmu" | "yigum" | "yimgu" | "yimug" | "yiugm" | "yiumg" | "ymgiu" | "ymgui" | "ymigu" | "ymiug" | "ymugi" | "ymuig" | "yugim" | "yugmi" | "yuigm" | "yuimg" | "yumgi" | "yumig" | "sgim" | "sgimu" | "sgimy" | "sgimuy" | "sgimyu" | "sgiym" | "sgium" | "sgiumy" | "sgiuym" | "sgiymu" | "sgiyum" | "sgmi" | "sgmiu" | "sgmiy" | "sgmiuy" | "sgmiyu" | "sgmyi" | "sgmui" | "sgmuiy" | "sgmuyi" | "sgmyiu" | "sgmyui" | "sgyim" | "sgymi" | "sguim" | "sguimy" | "sguiym" | "sgumi" | "sgumiy" | "sgumyi" | "sguyim" | "sguymi" | "sgyimu" | "sgyium" | "sgymiu" | "sgymui" | "sgyuim" | "sgyumi" | "sigm" | "sigmu" | "sigmy" | "sigmuy" | "sigmyu" | "sigym" | "sigum" | "sigumy" | "siguym" | "sigymu" | "sigyum" | "simg" | "simgu" | "simgy" | "simguy" | "simgyu" | "simyg" | "simug" | "simugy" | "simuyg" | "simygu" | "simyug" | "siygm" | "siymg" | "siugm" | "siugmy" | "siugym" | "siumg" | "siumgy" | "siumyg" | "siuygm" | "siuymg" | "siygmu" | "siygum" | "siymgu" | "siymug" | "siyugm" | "siyumg" | "smgi" | "smgiu" | "smgiy" | "smgiuy" | "smgiyu" | "smgyi" | "smgui" | "smguiy" | "smguyi" | "smgyiu" | "smgyui" | "smig" | "smigu" | "smigy" | "smiguy" | "smigyu" | "smiyg" | "smiug" | "smiugy" | "smiuyg" | "smiygu" | "smiyug" | "smygi" | "smyig" | "smugi" | "smugiy" | "smugyi" | "smuig" | "smuigy" | "smuiyg" | "smuygi" | "smuyig" | "smygiu" | "smygui" | "smyigu" | "smyiug" | "smyugi" | "smyuig" | "sygim" | "sygmi" | "syigm" | "syimg" | "symgi" | "symig" | "sugim" | "sugimy" | "sugiym" | "sugmi" | "sugmiy" | "sugmyi" | "sugyim" | "sugymi" | "suigm" | "suigmy" | "suigym" | "suimg" | "suimgy" | "suimyg" | "suiygm" | "suiymg" | "sumgi" | "sumgiy" | "sumgyi" | "sumig" | "sumigy" | "sumiyg" | "sumygi" | "sumyig" | "suygim" | "suygmi" | "suyigm" | "suyimg" | "suymgi" | "suymig" | "sygimu" | "sygium" | "sygmiu" | "sygmui" | "syguim" | "sygumi" | "syigmu" | "syigum" | "syimgu" | "syimug" | "syiugm" | "syiumg" | "symgiu" | "symgui" | "symigu" | "symiug" | "symugi" | "symuig" | "syugim" | "syugmi" | "syuigm" | "syuimg" | "syumgi" | "syumig" | "ygims" | "ygism" | "ygmis" | "ygmsi" | "ygsim" | "ygsmi" | "yigms" | "yigsm" | "yimgs" | "yimsg" | "yisgm" | "yismg" | "ymgis" | "ymgsi" | "ymigs" | "ymisg" | "ymsgi" | "ymsig" | "ysgim" | "ysgmi" | "ysigm" | "ysimg" | "ysmgi" | "ysmig" | "ugims" | "ugimsy" | "ugimys" | "ugism" | "ugismy" | "ugisym" | "ugiyms" | "ugiysm" | "ugmis" | "ugmisy" | "ugmiys" | "ugmsi" | "ugmsiy" | "ugmsyi" | "ugmyis" | "ugmysi" | "ugsim" | "ugsimy" | "ugsiym" | "ugsmi" | "ugsmiy" | "ugsmyi" | "ugsyim" | "ugsymi" | "ugyims" | "ugyism" | "ugymis" | "ugymsi" | "ugysim" | "ugysmi" | "uigms" | "uigmsy" | "uigmys" | "uigsm" | "uigsmy" | "uigsym" | "uigyms" | "uigysm" | "uimgs" | "uimgsy" | "uimgys" | "uimsg" | "uimsgy" | "uimsyg" | "uimygs" | "uimysg" | "uisgm" | "uisgmy" | "uisgym" | "uismg" | "uismgy" | "uismyg" | "uisygm" | "uisymg" | "uiygms" | "uiygsm" | "uiymgs" | "uiymsg" | "uiysgm" | "uiysmg" | "umgis" | "umgisy" | "umgiys" | "umgsi" | "umgsiy" | "umgsyi" | "umgyis" | "umgysi" | "umigs" | "umigsy" | "umigys" | "umisg" | "umisgy" | "umisyg" | "umiygs" | "umiysg" | "umsgi" | "umsgiy" | "umsgyi" | "umsig" | "umsigy" | "umsiyg" | "umsygi" | "umsyig" | "umygis" | "umygsi" | "umyigs" | "umyisg" | "umysgi" | "umysig" | "usgim" | "usgimy" | "usgiym" | "usgmi" | "usgmiy" | "usgmyi" | "usgyim" | "usgymi" | "usigm" | "usigmy" | "usigym" | "usimg" | "usimgy" | "usimyg" | "usiygm" | "usiymg" | "usmgi" | "usmgiy" | "usmgyi" | "usmig" | "usmigy" | "usmiyg" | "usmygi" | "usmyig" | "usygim" | "usygmi" | "usyigm" | "usyimg" | "usymgi" | "usymig" | "uygims" | "uygism" | "uygmis" | "uygmsi" | "uygsim" | "uygsmi" | "uyigms" | "uyigsm" | "uyimgs" | "uyimsg" | "uyisgm" | "uyismg" | "uymgis" | "uymgsi" | "uymigs" | "uymisg" | "uymsgi" | "uymsig" | "uysgim" | "uysgmi" | "uysigm" | "uysimg" | "uysmgi" | "uysmig" | "ygimsu" | "ygimus" | "ygismu" | "ygisum" | "ygiums" | "ygiusm" | "ygmisu" | "ygmius" | "ygmsiu" | "ygmsui" | "ygmuis" | "ygmusi" | "ygsimu" | "ygsium" | "ygsmiu" | "ygsmui" | "ygsuim" | "ygsumi" | "yguims" | "yguism" | "ygumis" | "ygumsi" | "ygusim" | "ygusmi" | "yigmsu" | "yigmus" | "yigsmu" | "yigsum" | "yigums" | "yigusm" | "yimgsu" | "yimgus" | "yimsgu" | "yimsug" | "yimugs" | "yimusg" | "yisgmu" | "yisgum" | "yismgu" | "yismug" | "yisugm" | "yisumg" | "yiugms" | "yiugsm" | "yiumgs" | "yiumsg" | "yiusgm" | "yiusmg" | "ymgisu" | "ymgius" | "ymgsiu" | "ymgsui" | "ymguis" | "ymgusi" | "ymigsu" | "ymigus" | "ymisgu" | "ymisug" | "ymiugs" | "ymiusg" | "ymsgiu" | "ymsgui" | "ymsigu" | "ymsiug" | "ymsugi" | "ymsuig" | "ymugis" | "ymugsi" | "ymuigs" | "ymuisg" | "ymusgi" | "ymusig" | "ysgimu" | "ysgium" | "ysgmiu" | "ysgmui" | "ysguim" | "ysgumi" | "ysigmu" | "ysigum" | "ysimgu" | "ysimug" | "ysiugm" | "ysiumg" | "ysmgiu" | "ysmgui" | "ysmigu" | "ysmiug" | "ysmugi" | "ysmuig" | "ysugim" | "ysugmi" | "ysuigm" | "ysuimg" | "ysumgi" | "ysumig" | "yugims" | "yugism" | "yugmis" | "yugmsi" | "yugsim" | "yugsmi" | "yuigms" | "yuigsm" | "yuimgs" | "yuimsg" | "yuisgm" | "yuismg" | "yumgis" | "yumgsi" | "yumigs" | "yumisg" | "yumsgi" | "yumsig" | "yusgim" | "yusgmi" | "yusigm" | "yusimg" | "yusmgi" | "yusmig") | undefined) => RegExpTsDsl; /** Creates a return statement. */
2341
- return: (expr?: ReturnExpr | undefined) => ReturnTsDsl; /** Creates a setter method declaration. */
2341
+ return: (expr?: any) => ReturnTsDsl; /** Creates a setter method declaration. */
2342
2342
  setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Creates a spread element from an expression (e.g., `...expr`). */
2343
- spread: (expr: SpreadExpr) => SpreadTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
2343
+ spread: (expr: any) => SpreadTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
2344
2344
  stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
2345
- template: (value?: TemplatePart | undefined) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
2345
+ template: (value?: any) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
2346
2346
  ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
2347
2347
  throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
2348
2348
  token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
@@ -2350,24 +2350,24 @@ declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | NodeName) => ExprT
2350
2350
  type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
2351
2351
  /** Creates a type alias declaration (e.g., `type Foo = Bar`). */alias: (name: NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g., `A & B`). */
2352
2352
  and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g., Foo.Bar). */
2353
- attr: (right: NodeName | ts.Identifier) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
2353
+ attr: (right: any) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
2354
2354
  expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
2355
2355
  fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g., `(a: string) => number`). */
2356
2356
  func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
2357
2357
  idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl; /** Creates a literal type node (e.g., 'foo', 42, or true). */
2358
2358
  literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g., `{ [K in keyof T]: U }`). */
2359
- mapped: (name?: NodeName | undefined) => TypeMappedTsDsl; /** Creates a type literal node (e.g., { foo: string }). */
2359
+ mapped: (name?: any) => TypeMappedTsDsl; /** Creates a type literal node (e.g., { foo: string }). */
2360
2360
  object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g., `readonly T`, `keyof T`, `unique T`). */
2361
2361
  operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g., `A | B | C`). */
2362
2362
  or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g., `<T>`). */
2363
- param: (name?: NodeName | undefined, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g., `typeof Foo`). */
2364
- query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
2363
+ param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g., `typeof Foo`). */
2364
+ query: (expr: any) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
2365
2365
  template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g., [A, B, C]). */
2366
2366
  tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl; /** Creates a named tuple element (e.g., `[resolver?: R]`). */
2367
2367
  tupleMember: (name: NodeName) => TypeTupleMemberTsDsl;
2368
2368
  }; /** Creates a `typeof` expression (e.g., `typeof value`). */
2369
- typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
2370
- var: (name?: NodeName | undefined) => VarTsDsl;
2369
+ typeofExpr: (expr: any) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
2370
+ var: (name?: any) => VarTsDsl;
2371
2371
  };
2372
2372
  type DollarTsDsl = {
2373
2373
  /**
@@ -2706,7 +2706,11 @@ type ServerSentEventsResult<TData = unknown, TReturn = void, TNext = unknown> =
2706
2706
  };
2707
2707
  //#endregion
2708
2708
  //#region src/plugins/@hey-api/client-angular/bundle/utils.d.ts
2709
- type ErrInterceptor$4<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
2709
+ type ErrInterceptor$4<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
2710
+
2711
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
2712
+
2713
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
2710
2714
  type ReqInterceptor$4<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
2711
2715
  type ResInterceptor$4<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
2712
2716
  declare class Interceptors$4<Interceptor> {
@@ -2792,9 +2796,9 @@ type RequestResult$6<TData = unknown, TError = unknown, ThrowOnError extends boo
2792
2796
  response: HttpResponse<TData>;
2793
2797
  } | {
2794
2798
  data: undefined;
2795
- error: TError[keyof TError];
2796
- request: HttpRequest<unknown>;
2797
- response: HttpErrorResponse & {
2799
+ error: TError[keyof TError]; /** request may be undefined, because error may be from building the request object itself */
2800
+ request?: HttpRequest<unknown>; /** response may be undefined, because error may be from building the request object itself or from a network error */
2801
+ response?: HttpErrorResponse & {
2798
2802
  error: TError[keyof TError] | null;
2799
2803
  };
2800
2804
  }>;
@@ -2905,7 +2909,11 @@ type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
2905
2909
  type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
2906
2910
  //#endregion
2907
2911
  //#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
2908
- type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
2912
+ type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
2913
+
2914
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
2915
+
2916
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
2909
2917
  type ReqInterceptor$3<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
2910
2918
  type ResInterceptor$3<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
2911
2919
  declare class Interceptors$3<Interceptor> {
@@ -2999,8 +3007,8 @@ type RequestResult$4<TData = unknown, TError = unknown, ThrowOnError extends boo
2999
3007
  data: undefined;
3000
3008
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3001
3009
  }) & {
3002
- request: Request;
3003
- response: Response;
3010
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined, because error may be from building the request object itself or from a network error */
3011
+ response?: Response;
3004
3012
  }>;
3005
3013
  interface ClientOptions$4 {
3006
3014
  baseUrl?: string;
@@ -3041,7 +3049,9 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
3041
3049
  type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
3042
3050
  //#endregion
3043
3051
  //#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
3044
- type ErrInterceptor$2<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
3052
+ type ErrInterceptor$2<Err, Res, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3053
+
3054
+ response: Res | undefined, options: Options) => Err | Promise<Err>;
3045
3055
  type ReqInterceptor$2<Options> = (options: Options) => void | Promise<void>;
3046
3056
  type ResInterceptor$2<Res, Options> = (response: Res, options: Options) => Res | Promise<Res>;
3047
3057
  declare class Interceptors$2<Interceptor> {
@@ -3119,7 +3129,7 @@ type RequestResult$3<TData = unknown, TError = unknown, ThrowOnError extends boo
3119
3129
  data: undefined;
3120
3130
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3121
3131
  }) & {
3122
- response: Response;
3132
+ /** response may be undefined due to a network error where no response object is produced */response?: Response;
3123
3133
  }>;
3124
3134
  interface ClientOptions$3 {
3125
3135
  baseUrl?: string;
@@ -3231,7 +3241,11 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
3231
3241
  type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
3232
3242
  //#endregion
3233
3243
  //#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
3234
- type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
3244
+ type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3245
+
3246
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
3247
+
3248
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
3235
3249
  type ReqInterceptor$1<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
3236
3250
  type ResInterceptor$1<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
3237
3251
  declare class Interceptors$1<Interceptor> {
@@ -3385,8 +3399,8 @@ type RequestResult$1<TData = unknown, TError = unknown, ThrowOnError extends boo
3385
3399
  data: undefined;
3386
3400
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3387
3401
  }) & {
3388
- request: Request;
3389
- response: Response;
3402
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined due to a network error where no response object is produced */
3403
+ response?: Response;
3390
3404
  }>;
3391
3405
  interface ClientOptions$1 {
3392
3406
  baseUrl?: string;
@@ -3498,7 +3512,11 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
3498
3512
  type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
3499
3513
  //#endregion
3500
3514
  //#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
3501
- type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
3515
+ type ErrInterceptor<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
3516
+
3517
+ response: Res | undefined, /** request may be undefined, because error may be from building the request object itself */
3518
+
3519
+ request: Req | undefined, options: Options) => Err | Promise<Err>;
3502
3520
  type ReqInterceptor<Req, Options> = (request: Req, options: Options) => Req | Promise<Req>;
3503
3521
  type ResInterceptor<Res, Req, Options> = (response: Res, request: Req, options: Options) => Res | Promise<Res>;
3504
3522
  declare class Interceptors<Interceptor> {
@@ -3518,27 +3536,7 @@ interface Middleware<Req, Res, Err, Options> {
3518
3536
  //#endregion
3519
3537
  //#region src/plugins/@hey-api/client-ky/bundle/types.d.ts
3520
3538
  type ResponseStyle = 'data' | 'fields';
3521
- interface RetryOptions {
3522
- /**
3523
- * Maximum number of retry attempts
3524
- *
3525
- * @default 2
3526
- */
3527
- limit?: number;
3528
- /**
3529
- * HTTP methods to retry
3530
- *
3531
- * @default ['get', 'put', 'head', 'delete', 'options', 'trace']
3532
- */
3533
- methods?: Array<'get' | 'post' | 'put' | 'delete' | 'patch' | 'head' | 'options' | 'trace'>;
3534
- /**
3535
- * HTTP status codes to retry
3536
- *
3537
- * @default [408, 413, 429, 500, 502, 503, 504]
3538
- */
3539
- statusCodes?: number[];
3540
- }
3541
- interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Options, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$22 {
3539
+ interface Config$15<T extends ClientOptions = ClientOptions> extends Pick<Options, 'cache' | 'credentials' | 'retry' | 'signal' | 'integrity' | 'keepalive' | 'mode' | 'redirect' | 'referrer' | 'referrerPolicy' | 'timeout'>, Config$22 {
3542
3540
  /**
3543
3541
  * Base URL for all requests made by this client.
3544
3542
  */
@@ -3546,6 +3544,10 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Option
3546
3544
  /**
3547
3545
  * Ky instance to use. You can use this option to provide a custom
3548
3546
  * ky instance.
3547
+ *
3548
+ * Note that the `prefixUrl` of your ky instance will be ignored, as we
3549
+ * will always build the full URL and pass it to your ky instance. You
3550
+ * should configure `baseUrl` instead.
3549
3551
  */
3550
3552
  ky?: typeof ky;
3551
3553
  /**
@@ -3568,22 +3570,12 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Option
3568
3570
  * @default 'fields'
3569
3571
  */
3570
3572
  responseStyle?: ResponseStyle;
3571
- /**
3572
- * Retry configuration
3573
- */
3574
- retry?: RetryOptions;
3575
3573
  /**
3576
3574
  * Throw an error instead of returning it in the response?
3577
3575
  *
3578
3576
  * @default false
3579
3577
  */
3580
3578
  throwOnError?: T['throwOnError'];
3581
- /**
3582
- * Request timeout in milliseconds
3583
- *
3584
- * @default 10000
3585
- */
3586
- timeout?: number;
3587
3579
  }
3588
3580
  interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
3589
3581
  responseStyle: TResponseStyle;
@@ -3618,8 +3610,8 @@ type RequestResult<TData = unknown, TError = unknown, ThrowOnError extends boole
3618
3610
  data: undefined;
3619
3611
  error: TError extends Record<string, unknown> ? TError[keyof TError] : TError;
3620
3612
  }) & {
3621
- request: Request;
3622
- response: Response;
3613
+ /** request may be undefined, because error may be from building the request object itself */request?: Request; /** response may be undefined due to a network error where no response object is produced */
3614
+ response?: Response;
3623
3615
  }>;
3624
3616
  interface ClientOptions {
3625
3617
  baseUrl?: string;
@@ -5369,139 +5361,61 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
5369
5361
  */
5370
5362
  name?: NameTransformer;
5371
5363
  };
5372
- };
5373
- type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5374
- /**
5375
- * Casing convention for generated names.
5376
- */
5377
- case: Casing;
5378
5364
  /**
5379
- * Resolved configuration for generated infinite query key helpers.
5365
+ * Configuration for generated `setQueryData` helpers.
5380
5366
  *
5381
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5382
- */
5383
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
5384
- /**
5385
- * Whether to include operation tags in infinite query keys.
5386
- * This will make query keys larger but provides better cache invalidation capabilities.
5387
- *
5388
- * @default false
5389
- */
5390
- tags: boolean;
5391
- };
5392
- /**
5393
- * Resolved configuration for generated infinite query options helpers.
5367
+ * When enabled, generates a helper per query operation that wraps
5368
+ * `queryClient.setQueryData()` with the correct query key and response
5369
+ * type already wired up.
5370
+ *
5371
+ * Can be:
5372
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5373
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5374
+ * - `object`: Full configuration object
5394
5375
  *
5395
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/infiniteQueryOptions
5376
+ * @default false
5396
5377
  */
5397
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
5378
+ setQueryData?: boolean | NameTransformer | {
5398
5379
  /**
5399
- * Custom function to generate metadata for the operation.
5400
- * Can return any valid meta object that will be included in the generated infinite query options.
5401
- * @param operation - The operation object containing all available metadata
5402
- * @returns A meta object with any properties you want to include
5403
- *
5404
- * @example
5405
- * ```ts
5406
- * meta: (operation) => ({
5407
- * customField: operation.id,
5408
- * isDeprecated: operation.deprecated,
5409
- * tags: operation.tags,
5410
- * customObject: {
5411
- * method: operation.method,
5412
- * path: operation.path
5413
- * }
5414
- * })
5415
- * ```
5380
+ * Casing convention for generated names.
5416
5381
  *
5417
- * @default undefined
5382
+ * @default 'camelCase'
5418
5383
  */
5419
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5420
- };
5421
- /**
5422
- * Resolved configuration for generated mutation options helpers.
5423
- *
5424
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/useMutation
5425
- */
5426
- mutationOptions: NamingOptions & FeatureToggle & {
5384
+ case?: Casing;
5427
5385
  /**
5428
- * Whether to export generated symbols.
5386
+ * Whether this feature is enabled.
5429
5387
  *
5430
5388
  * @default true
5431
5389
  */
5432
- exported: boolean;
5390
+ enabled?: boolean;
5433
5391
  /**
5434
- * Custom function to generate metadata for the operation.
5435
- * Can return any valid meta object that will be included in the generated mutation options.
5436
- * @param operation - The operation object containing all available metadata
5437
- * @returns A meta object with any properties you want to include
5438
- *
5439
- * @example
5440
- * ```ts
5441
- * meta: (operation) => ({
5442
- * customField: operation.id,
5443
- * isDeprecated: operation.deprecated,
5444
- * tags: operation.tags,
5445
- * customObject: {
5446
- * method: operation.method,
5447
- * path: operation.path
5448
- * }
5449
- * })
5450
- * ```
5392
+ * Naming pattern for generated names.
5451
5393
  *
5452
- * @default undefined
5394
+ * @default '{{name}}SetQueryData'
5453
5395
  */
5454
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5396
+ name?: NameTransformer;
5455
5397
  };
5456
- /**
5457
- * Resolved configuration for generated query keys.
5458
- *
5459
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryKey
5460
- */
5398
+ };
5399
+ type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5400
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
5401
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
5402
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
5403
+ }; /** Resolved configuration for generated infinite query options helpers. */
5404
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
5405
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5406
+ }; /** Resolved configuration for generated mutation options helpers. */
5407
+ mutationOptions: NamingOptions & FeatureToggle & {
5408
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5409
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5410
+ }; /** Resolved configuration for generated query keys. */
5461
5411
  queryKeys: NamingOptions & FeatureToggle & {
5462
- /**
5463
- * Whether to include operation tags in query keys.
5464
- * This will make query keys larger but provides better cache invalidation capabilities.
5465
- *
5466
- * @default false
5467
- */
5468
- tags: boolean;
5469
- };
5470
- /**
5471
- * Resolved configuration for generated query options helpers.
5472
- *
5473
- * @see https://tanstack.com/query/v5/docs/framework/angular/reference/queryOptions
5474
- */
5412
+ /** Whether to include operation tags in query keys. */tags: boolean;
5413
+ }; /** Resolved configuration for generated query options helpers. */
5475
5414
  queryOptions: NamingOptions & FeatureToggle & {
5476
- /**
5477
- * Whether to export generated symbols.
5478
- *
5479
- * @default true
5480
- */
5481
- exported: boolean;
5482
- /**
5483
- * Custom function to generate metadata for the operation.
5484
- * Can return any valid meta object that will be included in the generated query options.
5485
- * @param operation - The operation object containing all available metadata
5486
- * @returns A meta object with any properties you want to include
5487
- *
5488
- * @example
5489
- * ```ts
5490
- * meta: (operation) => ({
5491
- * customField: operation.id,
5492
- * isDeprecated: operation.deprecated,
5493
- * tags: operation.tags,
5494
- * customObject: {
5495
- * method: operation.method,
5496
- * path: operation.path
5497
- * }
5498
- * })
5499
- * ```
5500
- *
5501
- * @default undefined
5502
- */
5415
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5503
5416
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5504
- };
5417
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
5418
+ setQueryData: NamingOptions & FeatureToggle;
5505
5419
  };
5506
5420
  type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10>;
5507
5421
  //#endregion
@@ -5778,6 +5692,40 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5778
5692
  */
5779
5693
  name?: NameTransformer;
5780
5694
  };
5695
+ /**
5696
+ * Configuration for generated `setQueryData` helpers.
5697
+ *
5698
+ * When enabled, generates a helper per query operation that wraps
5699
+ * `queryClient.setQueryData()` with the correct query key and response
5700
+ * type already wired up.
5701
+ *
5702
+ * Can be:
5703
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5704
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5705
+ * - `object`: Full configuration object
5706
+ *
5707
+ * @default false
5708
+ */
5709
+ setQueryData?: boolean | NameTransformer | {
5710
+ /**
5711
+ * Casing convention for generated names.
5712
+ *
5713
+ * @default 'camelCase'
5714
+ */
5715
+ case?: Casing;
5716
+ /**
5717
+ * Whether this feature is enabled.
5718
+ *
5719
+ * @default true
5720
+ */
5721
+ enabled?: boolean;
5722
+ /**
5723
+ * Naming pattern for generated names.
5724
+ *
5725
+ * @default '{{name}}SetQueryData'
5726
+ */
5727
+ name?: NameTransformer;
5728
+ };
5781
5729
  /**
5782
5730
  * Configuration for generated `useMutation()` function helpers.
5783
5731
  *
@@ -5846,154 +5794,63 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
5846
5794
  */
5847
5795
  name?: NameTransformer;
5848
5796
  };
5849
- };
5850
- type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5851
5797
  /**
5852
- * Casing convention for generated names.
5853
- */
5854
- case: Casing;
5855
- /**
5856
- * Resolved configuration for generated infinite query key helpers.
5798
+ * Configuration for generated Preact Query hook variant of `setQueryData`.
5857
5799
  *
5858
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5859
- */
5860
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
5861
- /**
5862
- * Whether to include operation tags in infinite query keys.
5863
- * This will make query keys larger but provides better cache invalidation capabilities.
5864
- *
5865
- * @default false
5866
- */
5867
- tags: boolean;
5868
- };
5869
- /**
5870
- * Resolved configuration for generated infinite query options helpers.
5800
+ * When enabled, generates a hook per query operation that calls
5801
+ * `useQueryClient()` internally and returns a typed setter function.
5871
5802
  *
5872
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/infiniteQueryOptions infiniteQueryOptions}
5803
+ * Can be:
5804
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
5805
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
5806
+ * - `object`: Full configuration object
5807
+ *
5808
+ * @default false
5873
5809
  */
5874
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
5810
+ useSetQueryData?: boolean | NameTransformer | {
5875
5811
  /**
5876
- * Custom function to generate metadata for the operation.
5877
- * Can return any valid meta object that will be included in the generated infinite query options.
5878
- *
5879
- * @param operation - The operation object containing all available metadata
5880
- * @returns A meta object with any properties you want to include
5881
- *
5882
- * @example
5883
- * ```ts
5884
- * meta: (operation) => ({
5885
- * customField: operation.id,
5886
- * isDeprecated: operation.deprecated,
5887
- * tags: operation.tags,
5888
- * customObject: {
5889
- * method: operation.method,
5890
- * path: operation.path
5891
- * }
5892
- * })
5893
- * ```
5812
+ * Casing convention for generated names.
5894
5813
  *
5895
- * @default undefined
5814
+ * @default 'camelCase'
5896
5815
  */
5897
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5898
- };
5899
- /**
5900
- * Resolved configuration for generated mutation options helpers.
5901
- *
5902
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5903
- */
5904
- mutationOptions: NamingOptions & FeatureToggle & {
5816
+ case?: Casing;
5905
5817
  /**
5906
- * Whether to export generated symbols.
5818
+ * Whether this feature is enabled.
5907
5819
  *
5908
5820
  * @default true
5909
5821
  */
5910
- exported: boolean;
5822
+ enabled?: boolean;
5911
5823
  /**
5912
- * Custom function to generate metadata for the operation.
5913
- * Can return any valid meta object that will be included in the generated mutation options.
5914
- *
5915
- * @param operation - The operation object containing all available metadata
5916
- * @returns A meta object with any properties you want to include
5917
- *
5918
- * @example
5919
- * ```ts
5920
- * meta: (operation) => ({
5921
- * customField: operation.id,
5922
- * isDeprecated: operation.deprecated,
5923
- * tags: operation.tags,
5924
- * customObject: {
5925
- * method: operation.method,
5926
- * path: operation.path
5927
- * }
5928
- * })
5929
- * ```
5824
+ * Naming pattern for generated names.
5930
5825
  *
5931
- * @default undefined
5826
+ * @default 'use{{name}}SetQueryData'
5932
5827
  */
5933
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5828
+ name?: NameTransformer;
5934
5829
  };
5935
- /**
5936
- * Resolved configuration for generated query keys.
5937
- *
5938
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/guides/query-keys Query Keys}
5939
- */
5830
+ };
5831
+ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
5832
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
5833
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
5834
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
5835
+ }; /** Resolved configuration for generated infinite query options helpers. */
5836
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
5837
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5838
+ }; /** Resolved configuration for generated mutation options helpers. */
5839
+ mutationOptions: NamingOptions & FeatureToggle & {
5840
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5841
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5842
+ }; /** Resolved configuration for generated query keys. */
5940
5843
  queryKeys: NamingOptions & FeatureToggle & {
5941
- /**
5942
- * Whether to include operation tags in query keys.
5943
- * This will make query keys larger but provides better cache invalidation capabilities.
5944
- *
5945
- * @default false
5946
- */
5947
- tags: boolean;
5948
- };
5949
- /**
5950
- * Resolved configuration for generated query options helpers.
5951
- *
5952
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/queryOptions queryOptions}
5953
- */
5844
+ /** Whether to include operation tags in query keys. */tags: boolean;
5845
+ }; /** Resolved configuration for generated query options helpers. */
5954
5846
  queryOptions: NamingOptions & FeatureToggle & {
5955
- /**
5956
- * Whether to export generated symbols.
5957
- *
5958
- * @default true
5959
- */
5960
- exported: boolean;
5961
- /**
5962
- * Custom function to generate metadata for the operation.
5963
- * Can return any valid meta object that will be included in the generated query options.
5964
- *
5965
- * @param operation - The operation object containing all available metadata
5966
- * @returns A meta object with any properties you want to include
5967
- *
5968
- * @example
5969
- * ```ts
5970
- * meta: (operation) => ({
5971
- * customField: operation.id,
5972
- * isDeprecated: operation.deprecated,
5973
- * tags: operation.tags,
5974
- * customObject: {
5975
- * method: operation.method,
5976
- * path: operation.path
5977
- * }
5978
- * })
5979
- * ```
5980
- *
5981
- * @default undefined
5982
- */
5847
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
5983
5848
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
5984
- };
5985
- /**
5986
- * Configuration for generated `useMutation()` function helpers.
5987
- *
5988
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useMutation useMutation}
5989
- */
5990
- useMutation: NamingOptions & FeatureToggle;
5991
- /**
5992
- * Configuration for generated `useQuery()` function helpers.
5993
- *
5994
- * See {@link https://tanstack.com/query/v5/docs/framework/preact/reference/useQuery useQuery}
5995
- */
5996
- useQuery: NamingOptions & FeatureToggle;
5849
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
5850
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
5851
+ useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
5852
+ useQuery: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `setQueryData`. */
5853
+ useSetQueryData: NamingOptions & FeatureToggle;
5997
5854
  };
5998
5855
  type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9>;
5999
5856
  //#endregion
@@ -6270,6 +6127,40 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6270
6127
  */
6271
6128
  name?: NameTransformer;
6272
6129
  };
6130
+ /**
6131
+ * Configuration for generated `setQueryData` helpers.
6132
+ *
6133
+ * When enabled, generates a helper per query operation that wraps
6134
+ * `queryClient.setQueryData()` with the correct query key and response
6135
+ * type already wired up.
6136
+ *
6137
+ * Can be:
6138
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6139
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6140
+ * - `object`: Full configuration object
6141
+ *
6142
+ * @default false
6143
+ */
6144
+ setQueryData?: boolean | NameTransformer | {
6145
+ /**
6146
+ * Casing convention for generated names.
6147
+ *
6148
+ * @default 'camelCase'
6149
+ */
6150
+ case?: Casing;
6151
+ /**
6152
+ * Whether this feature is enabled.
6153
+ *
6154
+ * @default true
6155
+ */
6156
+ enabled?: boolean;
6157
+ /**
6158
+ * Naming pattern for generated names.
6159
+ *
6160
+ * @default '{{name}}SetQueryData'
6161
+ */
6162
+ name?: NameTransformer;
6163
+ };
6273
6164
  /**
6274
6165
  * Configuration for generated `useMutation()` function helpers.
6275
6166
  *
@@ -6338,35 +6229,142 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
6338
6229
  */
6339
6230
  name?: NameTransformer;
6340
6231
  };
6232
+ /**
6233
+ * Configuration for generated React Query hook variant of `setQueryData`.
6234
+ *
6235
+ * When enabled, generates a hook per query operation that calls
6236
+ * `useQueryClient()` internally and returns a typed setter function.
6237
+ *
6238
+ * Can be:
6239
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6240
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6241
+ * - `object`: Full configuration object
6242
+ *
6243
+ * @default false
6244
+ */
6245
+ useSetQueryData?: boolean | NameTransformer | {
6246
+ /**
6247
+ * Casing convention for generated names.
6248
+ *
6249
+ * @default 'camelCase'
6250
+ */
6251
+ case?: Casing;
6252
+ /**
6253
+ * Whether this feature is enabled.
6254
+ *
6255
+ * @default true
6256
+ */
6257
+ enabled?: boolean;
6258
+ /**
6259
+ * Naming pattern for generated names.
6260
+ *
6261
+ * @default 'use{{name}}SetQueryData'
6262
+ */
6263
+ name?: NameTransformer;
6264
+ };
6341
6265
  };
6342
6266
  type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6267
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
6268
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
6269
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6270
+ }; /** Resolved configuration for generated infinite query options helpers. */
6271
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
6272
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6273
+ }; /** Resolved configuration for generated mutation options helpers. */
6274
+ mutationOptions: NamingOptions & FeatureToggle & {
6275
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6276
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6277
+ }; /** Resolved configuration for generated query keys. */
6278
+ queryKeys: NamingOptions & FeatureToggle & {
6279
+ /** Whether to include operation tags in query keys. */tags: boolean;
6280
+ }; /** Resolved configuration for generated query options helpers. */
6281
+ queryOptions: NamingOptions & FeatureToggle & {
6282
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6283
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6284
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6285
+ setQueryData: NamingOptions & FeatureToggle; /** Configuration for generated `useMutation()` function helpers. */
6286
+ useMutation: NamingOptions & FeatureToggle; /** Configuration for generated `useQuery()` function helpers. */
6287
+ useQuery: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `setQueryData`. */
6288
+ useSetQueryData: NamingOptions & FeatureToggle;
6289
+ };
6290
+ type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
6291
+ //#endregion
6292
+ //#region src/plugins/@tanstack/solid-query/types.d.ts
6293
+ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6343
6294
  /**
6344
6295
  * Casing convention for generated names.
6296
+ *
6297
+ * @default 'camelCase'
6345
6298
  */
6346
- case: Casing;
6299
+ case?: Casing;
6347
6300
  /**
6348
- * Resolved configuration for generated infinite query key helpers.
6301
+ * Configuration for generated infinite query key helpers.
6349
6302
  *
6350
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
6303
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6304
+ *
6305
+ * Can be:
6306
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6307
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6308
+ * - `object`: Full configuration object
6309
+ *
6310
+ * @default true
6351
6311
  */
6352
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
6312
+ infiniteQueryKeys?: boolean | NameTransformer | {
6313
+ /**
6314
+ * Casing convention for generated names.
6315
+ *
6316
+ * @default 'camelCase'
6317
+ */
6318
+ case?: Casing;
6319
+ /**
6320
+ * Whether this feature is enabled.
6321
+ *
6322
+ * @default true
6323
+ */
6324
+ enabled?: boolean;
6325
+ /**
6326
+ * Naming pattern for generated names.
6327
+ *
6328
+ * @default '{{name}}InfiniteQueryKey'
6329
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6330
+ */
6331
+ name?: NameTransformer;
6353
6332
  /**
6354
6333
  * Whether to include operation tags in infinite query keys.
6355
6334
  * This will make query keys larger but provides better cache invalidation capabilities.
6356
6335
  *
6357
6336
  * @default false
6358
6337
  */
6359
- tags: boolean;
6338
+ tags?: boolean;
6360
6339
  };
6361
6340
  /**
6362
- * Resolved configuration for generated infinite query options helpers.
6341
+ * Configuration for generated infinite query options helpers.
6363
6342
  *
6364
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/infiniteQueryOptions infiniteQueryOptions}
6365
- */
6366
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
6367
- /**
6368
- * Custom function to generate metadata for the operation.
6369
- * Can return any valid meta object that will be included in the generated infinite query options.
6343
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6344
+ *
6345
+ * Can be:
6346
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6347
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6348
+ * - `object`: Full configuration object
6349
+ *
6350
+ * @default true
6351
+ */
6352
+ infiniteQueryOptions?: boolean | NameTransformer | {
6353
+ /**
6354
+ * Casing convention for generated names.
6355
+ *
6356
+ * @default 'camelCase'
6357
+ */
6358
+ case?: Casing;
6359
+ /**
6360
+ * Whether this feature is enabled.
6361
+ *
6362
+ * @default true
6363
+ */
6364
+ enabled?: boolean;
6365
+ /**
6366
+ * Custom function to generate metadata for the operation.
6367
+ * Can return any valid meta object that will be included in the generated infinite query options.
6370
6368
  *
6371
6369
  * @param operation - The operation object containing all available metadata
6372
6370
  * @returns A meta object with any properties you want to include
@@ -6386,24 +6384,49 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6386
6384
  *
6387
6385
  * @default undefined
6388
6386
  */
6389
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6387
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6388
+ /**
6389
+ * Naming pattern for generated names.
6390
+ *
6391
+ * @default '{{name}}InfiniteOptions'
6392
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6393
+ */
6394
+ name?: NameTransformer;
6390
6395
  };
6391
6396
  /**
6392
- * Resolved configuration for generated mutation options helpers.
6397
+ * Configuration for generated mutation options helpers.
6393
6398
  *
6394
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6399
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
6400
+ *
6401
+ * Can be:
6402
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6403
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6404
+ * - `object`: Full configuration object
6405
+ *
6406
+ * @default true
6395
6407
  */
6396
- mutationOptions: NamingOptions & FeatureToggle & {
6408
+ mutationOptions?: boolean | NameTransformer | {
6409
+ /**
6410
+ * Casing convention for generated names.
6411
+ *
6412
+ * @default 'camelCase'
6413
+ */
6414
+ case?: Casing;
6415
+ /**
6416
+ * Whether this feature is enabled.
6417
+ *
6418
+ * @default true
6419
+ */
6420
+ enabled?: boolean;
6397
6421
  /**
6398
6422
  * Whether to export generated symbols.
6399
6423
  *
6400
6424
  * @default true
6401
6425
  */
6402
- exported: boolean;
6426
+ exported?: boolean;
6403
6427
  /**
6404
6428
  * Custom function to generate metadata for the operation.
6405
6429
  * Can return any valid meta object that will be included in the generated mutation options.
6406
- *
6407
6430
  * @param operation - The operation object containing all available metadata
6408
6431
  * @returns A meta object with any properties you want to include
6409
6432
  *
@@ -6422,38 +6445,89 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6422
6445
  *
6423
6446
  * @default undefined
6424
6447
  */
6425
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6448
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6449
+ /**
6450
+ * Naming pattern for generated names.
6451
+ *
6452
+ * @default '{{name}}Mutation'
6453
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6454
+ */
6455
+ name?: NameTransformer;
6426
6456
  };
6427
6457
  /**
6428
- * Resolved configuration for generated query keys.
6458
+ * Configuration for generated query keys.
6429
6459
  *
6430
- * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys Query Keys}
6460
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey}
6461
+ *
6462
+ * Can be:
6463
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6464
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6465
+ * - `object`: Full configuration object
6466
+ *
6467
+ * @default true
6431
6468
  */
6432
- queryKeys: NamingOptions & FeatureToggle & {
6469
+ queryKeys?: boolean | NameTransformer | {
6470
+ /**
6471
+ * Casing convention for generated names.
6472
+ *
6473
+ * @default 'camelCase'
6474
+ */
6475
+ case?: Casing;
6476
+ /**
6477
+ * Whether this feature is enabled.
6478
+ *
6479
+ * @default true
6480
+ */
6481
+ enabled?: boolean;
6482
+ /**
6483
+ * Naming pattern for generated names.
6484
+ *
6485
+ * @default '{{name}}QueryKey'
6486
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6487
+ */
6488
+ name?: NameTransformer;
6433
6489
  /**
6434
6490
  * Whether to include operation tags in query keys.
6435
6491
  * This will make query keys larger but provides better cache invalidation capabilities.
6436
6492
  *
6437
6493
  * @default false
6438
6494
  */
6439
- tags: boolean;
6495
+ tags?: boolean;
6440
6496
  };
6441
6497
  /**
6442
- * Resolved configuration for generated query options helpers.
6498
+ * Configuration for generated query options helpers.
6443
6499
  *
6444
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/queryOptions queryOptions}
6500
+ * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery}
6501
+ *
6502
+ * Can be:
6503
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6504
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6505
+ * - `object`: Full configuration object
6506
+ *
6507
+ * @default true
6445
6508
  */
6446
- queryOptions: NamingOptions & FeatureToggle & {
6509
+ queryOptions?: boolean | NameTransformer | {
6510
+ /**
6511
+ * Casing convention for generated names.
6512
+ *
6513
+ * @default 'camelCase'
6514
+ */
6515
+ case?: Casing;
6516
+ /**
6517
+ * Whether this feature is enabled.
6518
+ *
6519
+ * @default true
6520
+ */
6521
+ enabled?: boolean;
6447
6522
  /**
6448
6523
  * Whether to export generated symbols.
6449
6524
  *
6450
6525
  * @default true
6451
6526
  */
6452
- exported: boolean;
6527
+ exported?: boolean;
6453
6528
  /**
6454
6529
  * Custom function to generate metadata for the operation.
6455
6530
  * Can return any valid meta object that will be included in the generated query options.
6456
- *
6457
6531
  * @param operation - The operation object containing all available metadata
6458
6532
  * @returns A meta object with any properties you want to include
6459
6533
  *
@@ -6472,25 +6546,75 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
6472
6546
  *
6473
6547
  * @default undefined
6474
6548
  */
6475
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6549
+ meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6550
+ /**
6551
+ * Naming pattern for generated names.
6552
+ *
6553
+ * @default '{{name}}Options'
6554
+ * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6555
+ */
6556
+ name?: NameTransformer;
6476
6557
  };
6477
6558
  /**
6478
- * Configuration for generated `useMutation()` function helpers.
6559
+ * Configuration for generated `setQueryData` helpers.
6479
6560
  *
6480
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useMutation useMutation}
6481
- */
6482
- useMutation: NamingOptions & FeatureToggle;
6483
- /**
6484
- * Configuration for generated `useQuery()` function helpers.
6561
+ * When enabled, generates a helper per query operation that wraps
6562
+ * `queryClient.setQueryData()` with the correct query key and response
6563
+ * type already wired up.
6485
6564
  *
6486
- * See {@link https://tanstack.com/query/v5/docs/framework/react/reference/useQuery useQuery}
6565
+ * Can be:
6566
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6567
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6568
+ * - `object`: Full configuration object
6569
+ *
6570
+ * @default false
6487
6571
  */
6488
- useQuery: NamingOptions & FeatureToggle;
6572
+ setQueryData?: boolean | NameTransformer | {
6573
+ /**
6574
+ * Casing convention for generated names.
6575
+ *
6576
+ * @default 'camelCase'
6577
+ */
6578
+ case?: Casing;
6579
+ /**
6580
+ * Whether this feature is enabled.
6581
+ *
6582
+ * @default true
6583
+ */
6584
+ enabled?: boolean;
6585
+ /**
6586
+ * Naming pattern for generated names.
6587
+ *
6588
+ * @default '{{name}}SetQueryData'
6589
+ */
6590
+ name?: NameTransformer;
6591
+ };
6489
6592
  };
6490
- type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
6593
+ type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6594
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
6595
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
6596
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6597
+ }; /** Resolved configuration for generated infinite query options helpers. */
6598
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
6599
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6600
+ }; /** Resolved configuration for generated mutation options helpers. */
6601
+ mutationOptions: NamingOptions & FeatureToggle & {
6602
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6603
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6604
+ }; /** Resolved configuration for generated query keys. */
6605
+ queryKeys: NamingOptions & FeatureToggle & {
6606
+ /** Whether to include operation tags in query keys. */tags: boolean;
6607
+ }; /** Resolved configuration for generated query options helpers. */
6608
+ queryOptions: NamingOptions & FeatureToggle & {
6609
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
6610
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6611
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6612
+ setQueryData: NamingOptions & FeatureToggle;
6613
+ };
6614
+ type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
6491
6615
  //#endregion
6492
- //#region src/plugins/@tanstack/solid-query/types.d.ts
6493
- type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6616
+ //#region src/plugins/@tanstack/svelte-query/types.d.ts
6617
+ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6494
6618
  /**
6495
6619
  * Casing convention for generated names.
6496
6620
  *
@@ -6500,7 +6624,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6500
6624
  /**
6501
6625
  * Configuration for generated infinite query key helpers.
6502
6626
  *
6503
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6627
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6504
6628
  *
6505
6629
  * Can be:
6506
6630
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6526,7 +6650,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6526
6650
  * Naming pattern for generated names.
6527
6651
  *
6528
6652
  * @default '{{name}}InfiniteQueryKey'
6529
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6653
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6530
6654
  */
6531
6655
  name?: NameTransformer;
6532
6656
  /**
@@ -6540,7 +6664,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6540
6664
  /**
6541
6665
  * Configuration for generated infinite query options helpers.
6542
6666
  *
6543
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery}
6667
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6544
6668
  *
6545
6669
  * Can be:
6546
6670
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6565,7 +6689,6 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6565
6689
  /**
6566
6690
  * Custom function to generate metadata for the operation.
6567
6691
  * Can return any valid meta object that will be included in the generated infinite query options.
6568
- *
6569
6692
  * @param operation - The operation object containing all available metadata
6570
6693
  * @returns A meta object with any properties you want to include
6571
6694
  *
@@ -6589,14 +6712,14 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6589
6712
  * Naming pattern for generated names.
6590
6713
  *
6591
6714
  * @default '{{name}}InfiniteOptions'
6592
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6715
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6593
6716
  */
6594
6717
  name?: NameTransformer;
6595
6718
  };
6596
6719
  /**
6597
6720
  * Configuration for generated mutation options helpers.
6598
6721
  *
6599
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation}
6722
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation}
6600
6723
  *
6601
6724
  * Can be:
6602
6725
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6650,14 +6773,14 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6650
6773
  * Naming pattern for generated names.
6651
6774
  *
6652
6775
  * @default '{{name}}Mutation'
6653
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6776
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
6654
6777
  */
6655
6778
  name?: NameTransformer;
6656
6779
  };
6657
6780
  /**
6658
6781
  * Configuration for generated query keys.
6659
6782
  *
6660
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey}
6783
+ * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys}
6661
6784
  *
6662
6785
  * Can be:
6663
6786
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6683,7 +6806,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6683
6806
  * Naming pattern for generated names.
6684
6807
  *
6685
6808
  * @default '{{name}}QueryKey'
6686
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6809
+ * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
6687
6810
  */
6688
6811
  name?: NameTransformer;
6689
6812
  /**
@@ -6697,7 +6820,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6697
6820
  /**
6698
6821
  * Configuration for generated query options helpers.
6699
6822
  *
6700
- * See {@link https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery}
6823
+ * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery}
6701
6824
  *
6702
6825
  * Can be:
6703
6826
  * - `boolean`: Shorthand for `{ enabled: boolean }`
@@ -6751,544 +6874,65 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
6751
6874
  * Naming pattern for generated names.
6752
6875
  *
6753
6876
  * @default '{{name}}Options'
6754
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6877
+ * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
6755
6878
  */
6756
6879
  name?: NameTransformer;
6757
6880
  };
6758
- };
6759
- type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
6760
- /**
6761
- * Casing convention for generated names.
6762
- */
6763
- case: Casing;
6764
6881
  /**
6765
- * Resolved configuration for generated infinite query key helpers.
6882
+ * Configuration for generated `setQueryData` helpers.
6883
+ *
6884
+ * When enabled, generates a helper per query operation that wraps
6885
+ * `queryClient.setQueryData()` with the correct query key and response
6886
+ * type already wired up.
6766
6887
  *
6767
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6888
+ * Can be:
6889
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
6890
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
6891
+ * - `object`: Full configuration object
6892
+ *
6893
+ * @default false
6768
6894
  */
6769
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
6895
+ setQueryData?: boolean | NameTransformer | {
6770
6896
  /**
6771
- * Whether to include operation tags in infinite query keys.
6772
- * This will make query keys larger but provides better cache invalidation capabilities.
6897
+ * Casing convention for generated names.
6773
6898
  *
6774
- * @default false
6899
+ * @default 'camelCase'
6775
6900
  */
6776
- tags: boolean;
6777
- };
6778
- /**
6779
- * Resolved configuration for generated infinite query options helpers.
6780
- *
6781
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createInfiniteQuery
6782
- */
6783
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
6901
+ case?: Casing;
6784
6902
  /**
6785
- * Custom function to generate metadata for the operation.
6786
- * Can return any valid meta object that will be included in the generated infinite query options.
6787
- * @param operation - The operation object containing all available metadata
6788
- * @returns A meta object with any properties you want to include
6789
- *
6790
- * @example
6791
- * ```ts
6792
- * meta: (operation) => ({
6793
- * customField: operation.id,
6794
- * isDeprecated: operation.deprecated,
6795
- * tags: operation.tags,
6796
- * customObject: {
6797
- * method: operation.method,
6798
- * path: operation.path
6799
- * }
6800
- * })
6801
- * ```
6903
+ * Whether this feature is enabled.
6802
6904
  *
6803
- * @default undefined
6905
+ * @default true
6804
6906
  */
6805
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6806
- };
6807
- /**
6808
- * Resolved configuration for generated mutation options helpers.
6809
- *
6810
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createMutation
6811
- */
6812
- mutationOptions: NamingOptions & FeatureToggle & {
6813
- /**
6814
- * Whether to export generated symbols.
6815
- *
6816
- * @default true
6817
- */
6818
- exported: boolean;
6819
- /**
6820
- * Custom function to generate metadata for the operation.
6821
- * Can return any valid meta object that will be included in the generated mutation options.
6822
- * @param operation - The operation object containing all available metadata
6823
- * @returns A meta object with any properties you want to include
6824
- *
6825
- * @example
6826
- * ```ts
6827
- * meta: (operation) => ({
6828
- * customField: operation.id,
6829
- * isDeprecated: operation.deprecated,
6830
- * tags: operation.tags,
6831
- * customObject: {
6832
- * method: operation.method,
6833
- * path: operation.path
6834
- * }
6835
- * })
6836
- * ```
6837
- *
6838
- * @default undefined
6839
- */
6840
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6841
- };
6842
- /**
6843
- * Resolved configuration for generated query keys.
6844
- *
6845
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/queryKey
6846
- */
6847
- queryKeys: NamingOptions & FeatureToggle & {
6848
- /**
6849
- * Whether to include operation tags in query keys.
6850
- * This will make query keys larger but provides better cache invalidation capabilities.
6851
- *
6852
- * @default false
6853
- */
6854
- tags: boolean;
6855
- };
6856
- /**
6857
- * Resolved configuration for generated query options helpers.
6858
- *
6859
- * @see https://tanstack.com/query/v5/docs/framework/solid/reference/createQuery
6860
- */
6861
- queryOptions: NamingOptions & FeatureToggle & {
6862
- /**
6863
- * Whether to export generated symbols.
6864
- *
6865
- * @default true
6866
- */
6867
- exported: boolean;
6868
- /**
6869
- * Custom function to generate metadata for the operation.
6870
- * Can return any valid meta object that will be included in the generated query options.
6871
- * @param operation - The operation object containing all available metadata
6872
- * @returns A meta object with any properties you want to include
6873
- *
6874
- * @example
6875
- * ```ts
6876
- * meta: (operation) => ({
6877
- * customField: operation.id,
6878
- * isDeprecated: operation.deprecated,
6879
- * tags: operation.tags,
6880
- * customObject: {
6881
- * method: operation.method,
6882
- * path: operation.path
6883
- * }
6884
- * })
6885
- * ```
6886
- *
6887
- * @default undefined
6888
- */
6889
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6890
- };
6891
- };
6892
- type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
6893
- //#endregion
6894
- //#region src/plugins/@tanstack/svelte-query/types.d.ts
6895
- type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
6896
- /**
6897
- * Casing convention for generated names.
6898
- *
6899
- * @default 'camelCase'
6900
- */
6901
- case?: Casing;
6902
- /**
6903
- * Configuration for generated infinite query key helpers.
6904
- *
6905
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6906
- *
6907
- * Can be:
6908
- * - `boolean`: Shorthand for `{ enabled: boolean }`
6909
- * - `string` or `function`: Shorthand for `{ name: string | function }`
6910
- * - `object`: Full configuration object
6911
- *
6912
- * @default true
6913
- */
6914
- infiniteQueryKeys?: boolean | NameTransformer | {
6915
- /**
6916
- * Casing convention for generated names.
6917
- *
6918
- * @default 'camelCase'
6919
- */
6920
- case?: Casing;
6921
- /**
6922
- * Whether this feature is enabled.
6923
- *
6924
- * @default true
6925
- */
6926
- enabled?: boolean;
6927
- /**
6928
- * Naming pattern for generated names.
6929
- *
6930
- * @default '{{name}}InfiniteQueryKey'
6931
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6932
- */
6933
- name?: NameTransformer;
6934
- /**
6935
- * Whether to include operation tags in infinite query keys.
6936
- * This will make query keys larger but provides better cache invalidation capabilities.
6937
- *
6938
- * @default false
6939
- */
6940
- tags?: boolean;
6941
- };
6942
- /**
6943
- * Configuration for generated infinite query options helpers.
6944
- *
6945
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery}
6946
- *
6947
- * Can be:
6948
- * - `boolean`: Shorthand for `{ enabled: boolean }`
6949
- * - `string` or `function`: Shorthand for `{ name: string | function }`
6950
- * - `object`: Full configuration object
6951
- *
6952
- * @default true
6953
- */
6954
- infiniteQueryOptions?: boolean | NameTransformer | {
6955
- /**
6956
- * Casing convention for generated names.
6957
- *
6958
- * @default 'camelCase'
6959
- */
6960
- case?: Casing;
6961
- /**
6962
- * Whether this feature is enabled.
6963
- *
6964
- * @default true
6965
- */
6966
- enabled?: boolean;
6967
- /**
6968
- * Custom function to generate metadata for the operation.
6969
- * Can return any valid meta object that will be included in the generated infinite query options.
6970
- * @param operation - The operation object containing all available metadata
6971
- * @returns A meta object with any properties you want to include
6972
- *
6973
- * @example
6974
- * ```ts
6975
- * meta: (operation) => ({
6976
- * customField: operation.id,
6977
- * isDeprecated: operation.deprecated,
6978
- * tags: operation.tags,
6979
- * customObject: {
6980
- * method: operation.method,
6981
- * path: operation.path
6982
- * }
6983
- * })
6984
- * ```
6985
- *
6986
- * @default undefined
6987
- */
6988
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6989
- /**
6990
- * Naming pattern for generated names.
6991
- *
6992
- * @default '{{name}}InfiniteOptions'
6993
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
6994
- */
6995
- name?: NameTransformer;
6996
- };
6997
- /**
6998
- * Configuration for generated mutation options helpers.
6999
- *
7000
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation}
7001
- *
7002
- * Can be:
7003
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7004
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7005
- * - `object`: Full configuration object
7006
- *
7007
- * @default true
7008
- */
7009
- mutationOptions?: boolean | NameTransformer | {
7010
- /**
7011
- * Casing convention for generated names.
7012
- *
7013
- * @default 'camelCase'
7014
- */
7015
- case?: Casing;
7016
- /**
7017
- * Whether this feature is enabled.
7018
- *
7019
- * @default true
7020
- */
7021
- enabled?: boolean;
7022
- /**
7023
- * Whether to export generated symbols.
7024
- *
7025
- * @default true
7026
- */
7027
- exported?: boolean;
7028
- /**
7029
- * Custom function to generate metadata for the operation.
7030
- * Can return any valid meta object that will be included in the generated mutation options.
7031
- * @param operation - The operation object containing all available metadata
7032
- * @returns A meta object with any properties you want to include
7033
- *
7034
- * @example
7035
- * ```ts
7036
- * meta: (operation) => ({
7037
- * customField: operation.id,
7038
- * isDeprecated: operation.deprecated,
7039
- * tags: operation.tags,
7040
- * customObject: {
7041
- * method: operation.method,
7042
- * path: operation.path
7043
- * }
7044
- * })
7045
- * ```
7046
- *
7047
- * @default undefined
7048
- */
7049
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
7050
- /**
7051
- * Naming pattern for generated names.
7052
- *
7053
- * @default '{{name}}Mutation'
7054
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
7055
- */
7056
- name?: NameTransformer;
7057
- };
7058
- /**
7059
- * Configuration for generated query keys.
7060
- *
7061
- * See {@link https://tanstack.com/query/v5/docs/framework/react/guides/query-keys}
7062
- *
7063
- * Can be:
7064
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7065
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7066
- * - `object`: Full configuration object
7067
- *
7068
- * @default true
7069
- */
7070
- queryKeys?: boolean | NameTransformer | {
7071
- /**
7072
- * Casing convention for generated names.
7073
- *
7074
- * @default 'camelCase'
7075
- */
7076
- case?: Casing;
7077
- /**
7078
- * Whether this feature is enabled.
7079
- *
7080
- * @default true
7081
- */
7082
- enabled?: boolean;
7083
- /**
7084
- * Naming pattern for generated names.
7085
- *
7086
- * @default '{{name}}QueryKey'
7087
- * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
7088
- */
7089
- name?: NameTransformer;
7090
- /**
7091
- * Whether to include operation tags in query keys.
7092
- * This will make query keys larger but provides better cache invalidation capabilities.
7093
- *
7094
- * @default false
7095
- */
7096
- tags?: boolean;
7097
- };
7098
- /**
7099
- * Configuration for generated query options helpers.
7100
- *
7101
- * See {@link https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery}
7102
- *
7103
- * Can be:
7104
- * - `boolean`: Shorthand for `{ enabled: boolean }`
7105
- * - `string` or `function`: Shorthand for `{ name: string | function }`
7106
- * - `object`: Full configuration object
7107
- *
7108
- * @default true
7109
- */
7110
- queryOptions?: boolean | NameTransformer | {
7111
- /**
7112
- * Casing convention for generated names.
7113
- *
7114
- * @default 'camelCase'
7115
- */
7116
- case?: Casing;
7117
- /**
7118
- * Whether this feature is enabled.
7119
- *
7120
- * @default true
7121
- */
7122
- enabled?: boolean;
7123
- /**
7124
- * Whether to export generated symbols.
7125
- *
7126
- * @default true
7127
- */
7128
- exported?: boolean;
7129
- /**
7130
- * Custom function to generate metadata for the operation.
7131
- * Can return any valid meta object that will be included in the generated query options.
7132
- * @param operation - The operation object containing all available metadata
7133
- * @returns A meta object with any properties you want to include
7134
- *
7135
- * @example
7136
- * ```ts
7137
- * meta: (operation) => ({
7138
- * customField: operation.id,
7139
- * isDeprecated: operation.deprecated,
7140
- * tags: operation.tags,
7141
- * customObject: {
7142
- * method: operation.method,
7143
- * path: operation.path
7144
- * }
7145
- * })
7146
- * ```
7147
- *
7148
- * @default undefined
7149
- */
7150
- meta?: (operation: IR$1.OperationObject) => Record<string, unknown>;
6907
+ enabled?: boolean;
7151
6908
  /**
7152
6909
  * Naming pattern for generated names.
7153
6910
  *
7154
- * @default '{{name}}Options'
7155
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
6911
+ * @default '{{name}}SetQueryData'
7156
6912
  */
7157
6913
  name?: NameTransformer;
7158
6914
  };
7159
6915
  };
7160
6916
  type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7161
- /**
7162
- * Casing convention for generated names.
7163
- */
7164
- case: Casing;
7165
- /**
7166
- * Resolved configuration for generated infinite query key helpers.
7167
- *
7168
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
7169
- */
6917
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
7170
6918
  infiniteQueryKeys: NamingOptions & FeatureToggle & {
7171
- /**
7172
- * Whether to include operation tags in infinite query keys.
7173
- * This will make query keys larger but provides better cache invalidation capabilities.
7174
- *
7175
- * @default false
7176
- */
7177
- tags: boolean;
7178
- };
7179
- /**
7180
- * Resolved configuration for generated infinite query options helpers.
7181
- *
7182
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createinfinitequery
7183
- */
6919
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
6920
+ }; /** Resolved configuration for generated infinite query options helpers. */
7184
6921
  infiniteQueryOptions: NamingOptions & FeatureToggle & {
7185
- /**
7186
- * Custom function to generate metadata for the operation.
7187
- * Can return any valid meta object that will be included in the generated infinite query options.
7188
- * @param operation - The operation object containing all available metadata
7189
- * @returns A meta object with any properties you want to include
7190
- *
7191
- * @example
7192
- * ```ts
7193
- * meta: (operation) => ({
7194
- * customField: operation.id,
7195
- * isDeprecated: operation.deprecated,
7196
- * tags: operation.tags,
7197
- * customObject: {
7198
- * method: operation.method,
7199
- * path: operation.path
7200
- * }
7201
- * })
7202
- * ```
7203
- *
7204
- * @default undefined
7205
- */
7206
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7207
- };
7208
- /**
7209
- * Resolved configuration for generated mutation options helpers.
7210
- *
7211
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createmutation
7212
- */
6922
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
6923
+ }; /** Resolved configuration for generated mutation options helpers. */
7213
6924
  mutationOptions: NamingOptions & FeatureToggle & {
7214
- /**
7215
- * Whether to export generated symbols.
7216
- *
7217
- * @default true
7218
- */
7219
- exported: boolean;
7220
- /**
7221
- * Custom function to generate metadata for the operation.
7222
- * Can return any valid meta object that will be included in the generated mutation options.
7223
- * @param operation - The operation object containing all available metadata
7224
- * @returns A meta object with any properties you want to include
7225
- *
7226
- * @example
7227
- * ```ts
7228
- * meta: (operation) => ({
7229
- * customField: operation.id,
7230
- * isDeprecated: operation.deprecated,
7231
- * tags: operation.tags,
7232
- * customObject: {
7233
- * method: operation.method,
7234
- * path: operation.path
7235
- * }
7236
- * })
7237
- * ```
7238
- *
7239
- * @default undefined
7240
- */
6925
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7241
6926
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7242
- };
7243
- /**
7244
- * Resolved configuration for generated query keys.
7245
- *
7246
- * @see https://tanstack.com/query/v5/docs/framework/react/guides/query-keys
7247
- */
6927
+ }; /** Resolved configuration for generated query keys. */
7248
6928
  queryKeys: NamingOptions & FeatureToggle & {
7249
- /**
7250
- * Whether to include operation tags in query keys.
7251
- * This will make query keys larger but provides better cache invalidation capabilities.
7252
- *
7253
- * @default false
7254
- */
7255
- tags: boolean;
7256
- };
7257
- /**
7258
- * Resolved configuration for generated query options helpers.
7259
- *
7260
- * @see https://tanstack.com/query/v5/docs/framework/svelte/reference/functions/createquery
7261
- */
6929
+ /** Whether to include operation tags in query keys. */tags: boolean;
6930
+ }; /** Resolved configuration for generated query options helpers. */
7262
6931
  queryOptions: NamingOptions & FeatureToggle & {
7263
- /**
7264
- * Whether to export generated symbols.
7265
- *
7266
- * @default true
7267
- */
7268
- exported: boolean;
7269
- /**
7270
- * Custom function to generate metadata for the operation.
7271
- * Can return any valid meta object that will be included in the generated query options.
7272
- * @param operation - The operation object containing all available metadata
7273
- * @returns A meta object with any properties you want to include
7274
- *
7275
- * @example
7276
- * ```ts
7277
- * meta: (operation) => ({
7278
- * customField: operation.id,
7279
- * isDeprecated: operation.deprecated,
7280
- * tags: operation.tags,
7281
- * customObject: {
7282
- * method: operation.method,
7283
- * path: operation.path
7284
- * }
7285
- * })
7286
- * ```
7287
- *
7288
- * @default undefined
7289
- */
6932
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7290
6933
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7291
- };
6934
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
6935
+ setQueryData: NamingOptions & FeatureToggle;
7292
6936
  };
7293
6937
  type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
7294
6938
  //#endregion
@@ -7560,142 +7204,61 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
7560
7204
  */
7561
7205
  name?: NameTransformer;
7562
7206
  };
7563
- };
7564
- type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7565
- /**
7566
- * Casing convention for generated names.
7567
- */
7568
- case: Casing;
7569
7207
  /**
7570
- * Resolved configuration for generated infinite query key helpers.
7208
+ * Configuration for generated `setQueryData` helpers.
7571
7209
  *
7572
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
7573
- */
7574
- infiniteQueryKeys: NamingOptions & FeatureToggle & {
7575
- /**
7576
- * Whether to include operation tags in infinite query keys.
7577
- * This will make query keys larger but provides better cache invalidation capabilities.
7578
- *
7579
- * @default false
7580
- */
7581
- tags: boolean;
7582
- };
7583
- /**
7584
- * Resolved configuration for generated infinite query options helpers.
7210
+ * When enabled, generates a helper per query operation that wraps
7211
+ * `queryClient.setQueryData()` with the correct query key and response
7212
+ * type already wired up.
7213
+ *
7214
+ * Can be:
7215
+ * - `boolean`: Shorthand for `{ enabled: boolean }`
7216
+ * - `string` or `function`: Shorthand for `{ name: string | function }`
7217
+ * - `object`: Full configuration object
7585
7218
  *
7586
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/infiniteQueryOptions
7219
+ * @default false
7587
7220
  */
7588
- infiniteQueryOptions: NamingOptions & FeatureToggle & {
7221
+ setQueryData?: boolean | NameTransformer | {
7589
7222
  /**
7590
- * Custom function to generate metadata for the operation.
7591
- * Can return any valid meta object that will be included in the generated infinite query options.
7592
- *
7593
- * @param operation - The operation object containing all available metadata
7594
- * @returns A meta object with any properties you want to include
7595
- *
7596
- * @example
7597
- * ```ts
7598
- * meta: (operation) => ({
7599
- * customField: operation.id,
7600
- * isDeprecated: operation.deprecated,
7601
- * tags: operation.tags,
7602
- * customObject: {
7603
- * method: operation.method,
7604
- * path: operation.path
7605
- * }
7606
- * })
7607
- * ```
7223
+ * Casing convention for generated names.
7608
7224
  *
7609
- * @default undefined
7225
+ * @default 'camelCase'
7610
7226
  */
7611
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7612
- };
7613
- /**
7614
- * Resolved configuration for generated mutation options helpers.
7615
- *
7616
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/useMutation
7617
- */
7618
- mutationOptions: NamingOptions & FeatureToggle & {
7227
+ case?: Casing;
7619
7228
  /**
7620
- * Whether to export generated symbols.
7229
+ * Whether this feature is enabled.
7621
7230
  *
7622
7231
  * @default true
7623
7232
  */
7624
- exported: boolean;
7233
+ enabled?: boolean;
7625
7234
  /**
7626
- * Custom function to generate metadata for the operation.
7627
- * Can return any valid meta object that will be included in the generated mutation options.
7628
- *
7629
- * @param operation - The operation object containing all available metadata
7630
- * @returns A meta object with any properties you want to include
7631
- *
7632
- * @example
7633
- * ```ts
7634
- * meta: (operation) => ({
7635
- * customField: operation.id,
7636
- * isDeprecated: operation.deprecated,
7637
- * tags: operation.tags,
7638
- * customObject: {
7639
- * method: operation.method,
7640
- * path: operation.path
7641
- * }
7642
- * })
7643
- * ```
7235
+ * Naming pattern for generated names.
7644
7236
  *
7645
- * @default undefined
7237
+ * @default '{{name}}SetQueryData'
7646
7238
  */
7647
- meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7239
+ name?: NameTransformer;
7648
7240
  };
7649
- /**
7650
- * Resolved configuration for generated query keys.
7651
- *
7652
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/queryKey
7653
- */
7241
+ };
7242
+ type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
7243
+ /** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated infinite query key helpers. */
7244
+ infiniteQueryKeys: NamingOptions & FeatureToggle & {
7245
+ /** Whether to include operation tags in infinite query keys. */tags: boolean;
7246
+ }; /** Resolved configuration for generated infinite query options helpers. */
7247
+ infiniteQueryOptions: NamingOptions & FeatureToggle & {
7248
+ /** Custom function to generate metadata for the operation. */meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7249
+ }; /** Resolved configuration for generated mutation options helpers. */
7250
+ mutationOptions: NamingOptions & FeatureToggle & {
7251
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7252
+ meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7253
+ }; /** Resolved configuration for generated query keys. */
7654
7254
  queryKeys: NamingOptions & FeatureToggle & {
7655
- /**
7656
- * Whether to include operation tags in query keys.
7657
- * This will make query keys larger but provides better cache invalidation capabilities.
7658
- *
7659
- * @default false
7660
- */
7661
- tags: boolean;
7662
- };
7663
- /**
7664
- * Resolved configuration for generated query options helpers.
7665
- *
7666
- * @see https://tanstack.com/query/v5/docs/framework/vue/reference/queryOptions
7667
- */
7255
+ /** Whether to include operation tags in query keys. */tags: boolean;
7256
+ }; /** Resolved configuration for generated query options helpers. */
7668
7257
  queryOptions: NamingOptions & FeatureToggle & {
7669
- /**
7670
- * Whether to export generated symbols.
7671
- *
7672
- * @default true
7673
- */
7674
- exported: boolean;
7675
- /**
7676
- * Custom function to generate metadata for the operation.
7677
- * Can return any valid meta object that will be included in the generated query options.
7678
- *
7679
- * @param operation - The operation object containing all available metadata
7680
- * @returns A meta object with any properties you want to include
7681
- *
7682
- * @example
7683
- * ```ts
7684
- * meta: (operation) => ({
7685
- * customField: operation.id,
7686
- * isDeprecated: operation.deprecated,
7687
- * tags: operation.tags,
7688
- * customObject: {
7689
- * method: operation.method,
7690
- * path: operation.path
7691
- * }
7692
- * })
7693
- * ```
7694
- *
7695
- * @default undefined
7696
- */
7258
+ /** Whether to export generated symbols. */exported: boolean; /** Custom function to generate metadata for the operation. */
7697
7259
  meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
7698
- };
7260
+ }; /** Resolved configuration for generated `setQueryData` helpers. */
7261
+ setQueryData: NamingOptions & FeatureToggle;
7699
7262
  };
7700
7263
  type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
7701
7264
  //#endregion
@@ -9580,6 +9143,8 @@ interface ZodMeta {
9580
9143
  format?: string;
9581
9144
  /** Whether this or any child contains a lazy reference. */
9582
9145
  hasLazy: boolean;
9146
+ /** Whether this schema generates a ZodIntersection (e.g. via allOf). */
9147
+ isIntersection: boolean;
9583
9148
  /** Whether this schema itself is emitted as lazy. */
9584
9149
  isLazy: boolean;
9585
9150
  /** Whether this schema resolves to an object shape. */
@@ -11359,7 +10924,7 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
11359
10924
  *
11360
10925
  * @param userConfig User provided {@link UserConfig} configuration(s).
11361
10926
  */
11362
- declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger$1): Promise<ReadonlyArray<Context>>;
10927
+ declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any): Promise<ReadonlyArray<Context>>;
11363
10928
  //#endregion
11364
10929
  //#region src/config/plugins.d.ts
11365
10930
  /**
@@ -11379,9 +10944,9 @@ declare const clientDefaultMeta: {
11379
10944
  };
11380
10945
  //#endregion
11381
10946
  //#region src/plugins/@hey-api/client-core/plugin.d.ts
11382
- declare const clientPluginHandler: ({
10947
+ declare function clientPluginHandler({
11383
10948
  plugin
11384
- }: Parameters<PluginHandler>[0]) => void;
10949
+ }: Parameters<PluginHandler>[0]): void;
11385
10950
  //#endregion
11386
10951
  //#region src/index.d.ts
11387
10952
  declare module '@hey-api/codegen-core' {