@hey-api/openapi-ts 0.86.3 → 0.86.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,6 @@
1
+ import { IProject, Project, Selector, Symbol, SymbolIn, SymbolMeta } from "@hey-api/codegen-core";
1
2
  import fs from "node:fs";
2
- import * as typescript0 from "typescript";
3
3
  import ts from "typescript";
4
- import { IProject, Project, Selector, Symbol, SymbolIn } from "@hey-api/codegen-core";
5
4
  import { RangeOptions, SemVer } from "semver";
6
5
 
7
6
  //#region rolldown:runtime
@@ -3056,6 +3055,43 @@ type WalkOptions<T$1 extends string = string> = {
3056
3055
  preferGroups?: ReadonlyArray<T$1>;
3057
3056
  };
3058
3057
  //#endregion
3058
+ //#region src/plugins/shared/types/refs.d.ts
3059
+ /**
3060
+ * Ref wrapper which ensures a stable reference for a value.
3061
+ *
3062
+ * @example
3063
+ * ```ts
3064
+ * type NumRef = Ref<number>; // { value: number }
3065
+ * const num: NumRef = { value: 42 };
3066
+ * console.log(num.value); // 42
3067
+ * ```
3068
+ */
3069
+ type Ref<T$1> = {
3070
+ value: T$1;
3071
+ };
3072
+
3073
+ /**
3074
+ * Utility type: wraps a value in a Ref.
3075
+ *
3076
+ * @example
3077
+ * ```ts
3078
+ * type R = ToRef<number>; // { value: number }
3079
+ * ```
3080
+ */
3081
+
3082
+ /**
3083
+ * Maps every property of `T` to a `Ref` of that property.
3084
+ *
3085
+ * @example
3086
+ * ```ts
3087
+ * type Foo = { a: number; b: string };
3088
+ * type Refs = ToRefs<Foo>; // { a: Ref<number>; b: Ref<string> }
3089
+ * const refs: Refs = { a: { value: 1 }, b: { value: 'x' } };
3090
+ * console.log(refs.a.value, refs.b.value); // 1 'x'
3091
+ * ```
3092
+ */
3093
+ type ToRefs<T$1> = { [K in keyof T$1]: Ref<T$1[K]> };
3094
+ //#endregion
3059
3095
  //#region src/config/utils/config.d.ts
3060
3096
  type ObjectType<T$1> = Extract<T$1, Record<string, any>> extends never ? Record<string, any> : Extract<T$1, Record<string, any>>;
3061
3097
  type NotArray<T$1> = T$1 extends any[] ? never : T$1;
@@ -6623,41 +6659,46 @@ declare const irTopLevelKinds: readonly ["operation", "parameter", "requestBody"
6623
6659
  type IrTopLevelKind = (typeof irTopLevelKinds)[number];
6624
6660
  //#endregion
6625
6661
  //#region src/plugins/shared/types/instance.d.ts
6626
- type WalkEvents = {
6662
+ type BaseEvent = {
6663
+ /**
6664
+ * Path to the node, derived from the pointer.
6665
+ */
6627
6666
  _path: ReadonlyArray<string | number>;
6667
+ /**
6668
+ * Pointer to the node in the graph.
6669
+ */
6670
+ pointer: string;
6671
+ /**
6672
+ * Tags associated with the node.
6673
+ */
6674
+ tags?: Set<string>;
6675
+ };
6676
+ type WalkEvents = BaseEvent & ({
6628
6677
  method: keyof IR$1.PathItemObject;
6629
6678
  operation: IR$1.OperationObject;
6630
6679
  path: string;
6631
6680
  type: Extract<IrTopLevelKind, 'operation'>;
6632
6681
  } | {
6633
- $ref: string;
6634
- _path: ReadonlyArray<string | number>;
6635
6682
  name: string;
6636
6683
  parameter: IR$1.ParameterObject;
6637
6684
  type: Extract<IrTopLevelKind, 'parameter'>;
6638
6685
  } | {
6639
- $ref: string;
6640
- _path: ReadonlyArray<string | number>;
6641
6686
  name: string;
6642
6687
  requestBody: IR$1.RequestBodyObject;
6643
6688
  type: Extract<IrTopLevelKind, 'requestBody'>;
6644
6689
  } | {
6645
- $ref: string;
6646
- _path: ReadonlyArray<string | number>;
6647
6690
  name: string;
6648
6691
  schema: IR$1.SchemaObject;
6649
6692
  type: Extract<IrTopLevelKind, 'schema'>;
6650
6693
  } | {
6651
- _path: ReadonlyArray<string | number>;
6652
6694
  server: IR$1.ServerObject;
6653
6695
  type: Extract<IrTopLevelKind, 'server'>;
6654
6696
  } | {
6655
- _path: ReadonlyArray<string | number>;
6656
6697
  key: string;
6657
6698
  method: keyof IR$1.PathItemObject;
6658
6699
  operation: IR$1.OperationObject;
6659
6700
  type: Extract<IrTopLevelKind, 'webhook'>;
6660
- };
6701
+ });
6661
6702
  type WalkEvent<T$1 extends IrTopLevelKind = IrTopLevelKind> = Extract<WalkEvents, {
6662
6703
  type: T$1;
6663
6704
  }>;
@@ -8898,1187 +8939,10 @@ type UserConfig$14 = Plugin.Name<'@hey-api/schemas'> & Plugin.Hooks & {
8898
8939
  type?: 'form' | 'json';
8899
8940
  };
8900
8941
  type HeyApiSchemasPlugin = DefinePlugin<UserConfig$14, UserConfig$14, IApi$13>;
8901
- declare namespace module_d_exports {
8902
- export { ImportExportItem, createCallExpression, createConstVariable, createExportAllDeclaration, createNamedExportDeclarations, createNamedImportDeclarations };
8903
- }
8904
- /**
8905
- * Create export all declaration. Example: `export * from './y'`.
8906
- * @param module - module containing exports
8907
- * @returns ts.ExportDeclaration
8908
- */
8909
- declare const createExportAllDeclaration: ({
8910
- module,
8911
- shouldAppendJs
8912
- }: {
8913
- module: string;
8914
- shouldAppendJs?: boolean;
8915
- }) => ts.ExportDeclaration;
8916
- type ImportExportItem = ImportExportItemObject | string;
8917
- declare const createCallExpression: ({
8918
- functionName,
8919
- parameters,
8920
- types
8921
- }: {
8922
- functionName: string | ts.PropertyAccessExpression | ts.PropertyAccessChain | ts.ElementAccessExpression | ts.Expression;
8923
- parameters?: Array<string | ts.Expression | undefined>;
8924
- types?: ReadonlyArray<ts.TypeNode>;
8925
- }) => ts.CallExpression;
8926
- /**
8927
- * Create a named export declaration. Example: `export { X } from './y'`.
8928
- * @param exports - named imports to export
8929
- * @param module - module containing exports
8930
- * @returns ts.ExportDeclaration
8931
- */
8932
- declare const createNamedExportDeclarations: ({
8933
- exports,
8934
- module
8935
- }: {
8936
- exports: Array<ImportExportItem> | ImportExportItem;
8937
- module: string;
8938
- }) => ts.ExportDeclaration;
8939
- /**
8940
- * Create a const variable. Optionally, it can use const assertion or export
8941
- * statement. Example: `export x = {} as const`.
8942
- * @param assertion use const assertion?
8943
- * @param exportConst export created variable?
8944
- * @param expression expression for the variable.
8945
- * @param name name of the variable.
8946
- * @returns ts.VariableStatement
8947
- */
8948
- declare const createConstVariable: ({
8949
- assertion,
8950
- comment,
8951
- destructure,
8952
- exportConst,
8953
- expression,
8954
- name,
8955
- typeName
8956
- }: {
8957
- assertion?: "const" | ts.TypeNode;
8958
- comment?: Comments;
8959
- destructure?: boolean;
8960
- exportConst?: boolean;
8961
- expression: ts.Expression;
8962
- name: string | ts.TypeReferenceNode;
8963
- typeName?: string | ts.IndexedAccessTypeNode | ts.TypeNode;
8964
- }) => ts.VariableStatement;
8965
- /**
8966
- * Create a named import declaration. Example: `import { X } from './y'`.
8967
- * @param imports - named exports to import
8968
- * @param module - module containing imports
8969
- * @returns ts.ImportDeclaration
8970
- */
8971
- declare const createNamedImportDeclarations: ({
8972
- imports,
8973
- module
8974
- }: {
8975
- imports: Array<ImportExportItem> | ImportExportItem;
8976
- module: string;
8977
- }) => ts.ImportDeclaration;
8978
- //#endregion
8979
- //#region src/tsc/typedef.d.ts
8980
- type Property = {
8981
- comment?: Comments;
8982
- isReadOnly?: boolean;
8983
- isRequired?: boolean;
8984
- name: string | ts.PropertyName;
8985
- type: any | ts.TypeNode;
8986
- };
8987
- //#endregion
8988
- //#region src/tsc/index.d.ts
8989
- declare const tsc: {
8990
- anonymousFunction: ({
8991
- async,
8992
- comment,
8993
- multiLine,
8994
- parameters,
8995
- returnType,
8996
- statements,
8997
- types: types_d_exports
8998
- }: {
8999
- async?: boolean;
9000
- comment?: Comments;
9001
- multiLine?: boolean;
9002
- parameters?: FunctionParameter[];
9003
- returnType?: string | typescript0.TypeNode;
9004
- statements?: ReadonlyArray<typescript0.Statement>;
9005
- types?: FunctionTypeParameter[];
9006
- }) => typescript0.FunctionExpression;
9007
- arrayLiteralExpression: <T>({
9008
- elements,
9009
- multiLine
9010
- }: {
9011
- elements: T[];
9012
- multiLine?: boolean;
9013
- }) => typescript0.ArrayLiteralExpression;
9014
- arrowFunction: ({
9015
- async,
9016
- comment,
9017
- multiLine,
9018
- parameters,
9019
- returnType,
9020
- statements,
9021
- types: types_d_exports
9022
- }: {
9023
- async?: boolean;
9024
- comment?: Comments;
9025
- multiLine?: boolean;
9026
- parameters?: ReadonlyArray<FunctionParameter>;
9027
- returnType?: string | typescript0.TypeNode;
9028
- statements?: typescript0.Statement[] | typescript0.Expression;
9029
- types?: FunctionTypeParameter[];
9030
- }) => typescript0.ArrowFunction;
9031
- asExpression: ({
9032
- expression,
9033
- type
9034
- }: {
9035
- expression: typescript0.Expression;
9036
- type: typescript0.TypeNode;
9037
- }) => typescript0.AsExpression;
9038
- assignment: ({
9039
- left,
9040
- right
9041
- }: {
9042
- left: typescript0.Expression;
9043
- right: typescript0.Expression;
9044
- }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
9045
- awaitExpression: ({
9046
- expression
9047
- }: {
9048
- expression: typescript0.Expression;
9049
- }) => typescript0.AwaitExpression;
9050
- binaryExpression: ({
9051
- left,
9052
- operator,
9053
- right
9054
- }: {
9055
- left: typescript0.Expression;
9056
- operator?: "=" | "===" | "!==" | "in" | "??";
9057
- right: typescript0.Expression | string;
9058
- }) => typescript0.BinaryExpression;
9059
- block: ({
9060
- multiLine,
9061
- statements
9062
- }: {
9063
- multiLine?: boolean;
9064
- statements: ReadonlyArray<typescript0.Statement>;
9065
- }) => typescript0.Block;
9066
- callExpression: ({
9067
- functionName,
9068
- parameters,
9069
- types: types_d_exports
9070
- }: {
9071
- functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
9072
- parameters?: Array<string | typescript0.Expression | undefined>;
9073
- types?: ReadonlyArray<typescript0.TypeNode>;
9074
- }) => typescript0.CallExpression;
9075
- classDeclaration: ({
9076
- decorator,
9077
- exportClass,
9078
- extendedClasses,
9079
- name,
9080
- nodes
9081
- }: {
9082
- decorator?: {
9083
- args: any[];
9084
- name: string;
9085
- };
9086
- exportClass?: boolean;
9087
- extendedClasses?: ReadonlyArray<string>;
9088
- name: string;
9089
- nodes: ReadonlyArray<typescript0.ClassElement>;
9090
- }) => typescript0.ClassDeclaration;
9091
- conditionalExpression: ({
9092
- condition,
9093
- whenFalse,
9094
- whenTrue
9095
- }: {
9096
- condition: typescript0.Expression;
9097
- whenFalse: typescript0.Expression;
9098
- whenTrue: typescript0.Expression;
9099
- }) => typescript0.ConditionalExpression;
9100
- constVariable: ({
9101
- assertion,
9102
- comment,
9103
- destructure,
9104
- exportConst,
9105
- expression,
9106
- name,
9107
- typeName
9108
- }: {
9109
- assertion?: "const" | typescript0.TypeNode;
9110
- comment?: Comments;
9111
- destructure?: boolean;
9112
- exportConst?: boolean;
9113
- expression: typescript0.Expression;
9114
- name: string | typescript0.TypeReferenceNode;
9115
- typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
9116
- }) => typescript0.VariableStatement;
9117
- constructorDeclaration: ({
9118
- accessLevel,
9119
- comment,
9120
- multiLine,
9121
- parameters,
9122
- statements
9123
- }: {
9124
- accessLevel?: AccessLevel;
9125
- comment?: Comments;
9126
- multiLine?: boolean;
9127
- parameters?: FunctionParameter[];
9128
- statements?: typescript0.Statement[];
9129
- }) => typescript0.ConstructorDeclaration;
9130
- enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
9131
- asConst,
9132
- comments: enumMemberComments,
9133
- leadingComment: comments,
9134
- name,
9135
- obj
9136
- }: {
9137
- asConst: boolean;
9138
- comments?: Record<string | number, Comments>;
9139
- leadingComment?: Comments;
9140
- name: string | typescript0.TypeReferenceNode;
9141
- obj: T;
9142
- }) => typescript0.EnumDeclaration;
9143
- exportAllDeclaration: ({
9144
- module: module_d_exports,
9145
- shouldAppendJs
9146
- }: {
9147
- module: string;
9148
- shouldAppendJs?: boolean;
9149
- }) => typescript0.ExportDeclaration;
9150
- exportNamedDeclaration: ({
9151
- exports,
9152
- module: module_d_exports
9153
- }: {
9154
- exports: Array<ImportExportItem> | ImportExportItem;
9155
- module: string;
9156
- }) => typescript0.ExportDeclaration;
9157
- expressionToStatement: ({
9158
- expression
9159
- }: {
9160
- expression: typescript0.Expression;
9161
- }) => typescript0.ExpressionStatement;
9162
- forOfStatement: ({
9163
- awaitModifier,
9164
- expression,
9165
- initializer,
9166
- statement
9167
- }: {
9168
- awaitModifier?: typescript0.AwaitKeyword;
9169
- expression: typescript0.Expression;
9170
- initializer: typescript0.ForInitializer;
9171
- statement: typescript0.Statement;
9172
- }) => typescript0.ForOfStatement;
9173
- functionTypeNode: ({
9174
- parameters,
9175
- returnType,
9176
- typeParameters
9177
- }: {
9178
- parameters?: typescript0.ParameterDeclaration[];
9179
- returnType: typescript0.TypeNode;
9180
- typeParameters?: typescript0.TypeParameterDeclaration[];
9181
- }) => typescript0.FunctionTypeNode;
9182
- getAccessorDeclaration: ({
9183
- name,
9184
- returnType,
9185
- statements
9186
- }: {
9187
- name: string | typescript0.PropertyName;
9188
- returnType?: string | typescript0.Identifier;
9189
- statements: ReadonlyArray<typescript0.Statement>;
9190
- }) => typescript0.GetAccessorDeclaration;
9191
- identifier: ({
9192
- text
9193
- }: {
9194
- text: string;
9195
- }) => typescript0.Identifier;
9196
- ifStatement: ({
9197
- elseStatement,
9198
- expression,
9199
- thenStatement
9200
- }: {
9201
- elseStatement?: typescript0.Statement;
9202
- expression: typescript0.Expression;
9203
- thenStatement: typescript0.Statement;
9204
- }) => typescript0.IfStatement;
9205
- indexedAccessTypeNode: ({
9206
- indexType,
9207
- objectType
9208
- }: {
9209
- indexType: typescript0.TypeNode;
9210
- objectType: typescript0.TypeNode;
9211
- }) => typescript0.IndexedAccessTypeNode;
9212
- isTsNode: (node: any) => node is typescript0.Expression;
9213
- keywordTypeNode: ({
9214
- keyword
9215
- }: {
9216
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
9217
- }) => typescript0.KeywordTypeNode<typescript0.SyntaxKind.VoidKeyword | typescript0.SyntaxKind.AnyKeyword | typescript0.SyntaxKind.BooleanKeyword | typescript0.SyntaxKind.NeverKeyword | typescript0.SyntaxKind.NumberKeyword | typescript0.SyntaxKind.StringKeyword | typescript0.SyntaxKind.UndefinedKeyword | typescript0.SyntaxKind.UnknownKeyword>;
9218
- literalTypeNode: ({
9219
- literal
9220
- }: {
9221
- literal: typescript0.LiteralTypeNode["literal"];
9222
- }) => typescript0.LiteralTypeNode;
9223
- mappedTypeNode: ({
9224
- members,
9225
- nameType,
9226
- questionToken,
9227
- readonlyToken,
9228
- type,
9229
- typeParameter
9230
- }: {
9231
- members?: typescript0.NodeArray<typescript0.TypeElement>;
9232
- nameType?: typescript0.TypeNode;
9233
- questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
9234
- readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
9235
- type?: typescript0.TypeNode;
9236
- typeParameter: typescript0.TypeParameterDeclaration;
9237
- }) => typescript0.MappedTypeNode;
9238
- methodDeclaration: ({
9239
- accessLevel,
9240
- comment,
9241
- isStatic,
9242
- multiLine,
9243
- name,
9244
- parameters,
9245
- returnType,
9246
- statements,
9247
- types: types_d_exports
9248
- }: {
9249
- accessLevel?: AccessLevel;
9250
- comment?: Comments;
9251
- isStatic?: boolean;
9252
- multiLine?: boolean;
9253
- name: string;
9254
- parameters?: ReadonlyArray<FunctionParameter>;
9255
- returnType?: string | typescript0.TypeNode;
9256
- statements?: typescript0.Statement[];
9257
- types?: FunctionTypeParameter[];
9258
- }) => typescript0.MethodDeclaration;
9259
- namedImportDeclarations: ({
9260
- imports,
9261
- module: module_d_exports
9262
- }: {
9263
- imports: Array<ImportExportItem> | ImportExportItem;
9264
- module: string;
9265
- }) => typescript0.ImportDeclaration;
9266
- namespaceDeclaration: ({
9267
- name,
9268
- statements
9269
- }: {
9270
- name: string;
9271
- statements: Array<typescript0.Statement>;
9272
- }) => typescript0.ModuleDeclaration;
9273
- newExpression: ({
9274
- argumentsArray,
9275
- expression,
9276
- typeArguments
9277
- }: {
9278
- argumentsArray?: Array<typescript0.Expression>;
9279
- expression: typescript0.Expression;
9280
- typeArguments?: Array<typescript0.TypeNode>;
9281
- }) => typescript0.NewExpression;
9282
- nodeToString: typeof tsNodeToString;
9283
- null: () => typescript0.NullLiteral;
9284
- objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
9285
- comments,
9286
- identifiers,
9287
- multiLine,
9288
- obj,
9289
- shorthand,
9290
- unescape
9291
- }: {
9292
- comments?: Comments;
9293
- identifiers?: string[];
9294
- multiLine?: boolean;
9295
- obj: T;
9296
- shorthand?: boolean;
9297
- unescape?: boolean;
9298
- }) => typescript0.ObjectLiteralExpression;
9299
- ots: {
9300
- boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
9301
- export: ({
9302
- alias,
9303
- asType,
9304
- name
9305
- }: ImportExportItemObject) => typescript0.ExportSpecifier;
9306
- import: ({
9307
- alias,
9308
- asType,
9309
- name
9310
- }: ImportExportItemObject) => typescript0.ImportSpecifier;
9311
- number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
9312
- string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
9313
- };
9314
- parameterDeclaration: ({
9315
- initializer,
9316
- modifiers,
9317
- name,
9318
- required,
9319
- type
9320
- }: {
9321
- initializer?: typescript0.Expression;
9322
- modifiers?: ReadonlyArray<typescript0.ModifierLike>;
9323
- name: string | typescript0.BindingName;
9324
- required?: boolean;
9325
- type?: typescript0.TypeNode;
9326
- }) => typescript0.ParameterDeclaration;
9327
- propertyAccessExpression: ({
9328
- expression,
9329
- isOptional,
9330
- name
9331
- }: {
9332
- expression: string | typescript0.Expression;
9333
- isOptional?: boolean;
9334
- name: string | number | typescript0.MemberName;
9335
- }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
9336
- propertyAccessExpressions: ({
9337
- expressions
9338
- }: {
9339
- expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
9340
- }) => typescript0.PropertyAccessExpression;
9341
- propertyAssignment: ({
9342
- initializer,
9343
- name
9344
- }: {
9345
- initializer: typescript0.Expression;
9346
- name: string | typescript0.PropertyName;
9347
- }) => typescript0.PropertyAssignment;
9348
- propertyDeclaration: ({
9349
- initializer,
9350
- modifier,
9351
- name,
9352
- type
9353
- }: {
9354
- initializer?: typescript0.Expression;
9355
- modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
9356
- name: string | typescript0.PropertyName;
9357
- type?: typescript0.TypeNode;
9358
- }) => typescript0.PropertyDeclaration;
9359
- regularExpressionLiteral: ({
9360
- flags,
9361
- text
9362
- }: {
9363
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
9364
- text: string;
9365
- }) => typescript0.RegularExpressionLiteral;
9366
- returnFunctionCall: ({
9367
- args,
9368
- name,
9369
- types: types_d_exports
9370
- }: {
9371
- args: any[];
9372
- name: string | typescript0.Expression;
9373
- types?: ReadonlyArray<string | typescript0.StringLiteral>;
9374
- }) => typescript0.ReturnStatement;
9375
- returnStatement: ({
9376
- expression
9377
- }: {
9378
- expression?: typescript0.Expression;
9379
- }) => typescript0.ReturnStatement;
9380
- returnVariable: ({
9381
- expression
9382
- }: {
9383
- expression: string | typescript0.Expression;
9384
- }) => typescript0.ReturnStatement;
9385
- safeAccessExpression: (path: string[]) => typescript0.Expression;
9386
- stringLiteral: ({
9387
- isSingleQuote,
9388
- text
9389
- }: {
9390
- isSingleQuote?: boolean;
9391
- text: string;
9392
- }) => typescript0.StringLiteral;
9393
- templateLiteralType: ({
9394
- value
9395
- }: {
9396
- value: ReadonlyArray<string | typescript0.TypeNode>;
9397
- }) => typescript0.TemplateLiteralTypeNode;
9398
- this: () => typescript0.ThisExpression;
9399
- transformArrayMap: ({
9400
- path,
9401
- transformExpression
9402
- }: {
9403
- path: string[];
9404
- transformExpression: typescript0.Expression;
9405
- }) => typescript0.IfStatement;
9406
- transformArrayMutation: ({
9407
- path,
9408
- transformerName
9409
- }: {
9410
- path: string[];
9411
- transformerName: string;
9412
- }) => typescript0.Statement;
9413
- transformDateMutation: ({
9414
- path
9415
- }: {
9416
- path: string[];
9417
- }) => typescript0.Statement;
9418
- transformFunctionMutation: ({
9419
- path,
9420
- transformerName
9421
- }: {
9422
- path: string[];
9423
- transformerName: string;
9424
- }) => typescript0.IfStatement[];
9425
- transformNewDate: ({
9426
- parameterName
9427
- }: {
9428
- parameterName: string;
9429
- }) => typescript0.NewExpression;
9430
- typeAliasDeclaration: ({
9431
- comment,
9432
- exportType,
9433
- name,
9434
- type,
9435
- typeParameters
9436
- }: {
9437
- comment?: Comments;
9438
- exportType?: boolean;
9439
- name: string | typescript0.TypeReferenceNode;
9440
- type: string | typescript0.TypeNode | typescript0.Identifier;
9441
- typeParameters?: FunctionTypeParameter[];
9442
- }) => typescript0.TypeAliasDeclaration;
9443
- typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
9444
- typeInterfaceNode: ({
9445
- indexKey,
9446
- indexProperty,
9447
- isNullable,
9448
- properties,
9449
- useLegacyResolution
9450
- }: {
9451
- indexKey?: typescript0.TypeReferenceNode;
9452
- indexProperty?: Property;
9453
- isNullable?: boolean;
9454
- properties: Property[];
9455
- useLegacyResolution: boolean;
9456
- }) => typescript0.TypeNode;
9457
- typeIntersectionNode: ({
9458
- isNullable,
9459
- types: types_d_exports
9460
- }: {
9461
- isNullable?: boolean;
9462
- types: (any | typescript0.TypeNode)[];
9463
- }) => typescript0.TypeNode;
9464
- typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
9465
- typeOfExpression: ({
9466
- text
9467
- }: {
9468
- text: string | typescript0.Identifier;
9469
- }) => typescript0.TypeOfExpression;
9470
- typeOperatorNode: ({
9471
- operator,
9472
- type
9473
- }: {
9474
- operator: "keyof" | "readonly" | "unique";
9475
- type: typescript0.TypeNode;
9476
- }) => typescript0.TypeOperatorNode;
9477
- typeParameterDeclaration: ({
9478
- constraint,
9479
- defaultType,
9480
- modifiers,
9481
- name
9482
- }: {
9483
- constraint?: typescript0.TypeNode;
9484
- defaultType?: typescript0.TypeNode;
9485
- modifiers?: Array<typescript0.Modifier>;
9486
- name: string | typescript0.Identifier;
9487
- }) => typescript0.TypeParameterDeclaration;
9488
- typeParenthesizedNode: ({
9489
- type
9490
- }: {
9491
- type: typescript0.TypeNode;
9492
- }) => typescript0.ParenthesizedTypeNode;
9493
- typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
9494
- typeReferenceNode: ({
9495
- typeArguments,
9496
- typeName
9497
- }: {
9498
- typeArguments?: typescript0.TypeNode[];
9499
- typeName: string | typescript0.EntityName;
9500
- }) => typescript0.TypeReferenceNode;
9501
- typeTupleNode: ({
9502
- isNullable,
9503
- types: types_d_exports
9504
- }: {
9505
- isNullable?: boolean;
9506
- types: Array<any | typescript0.TypeNode>;
9507
- }) => typescript0.TypeNode;
9508
- typeUnionNode: ({
9509
- isNullable,
9510
- types: types_d_exports
9511
- }: {
9512
- isNullable?: boolean;
9513
- types: ReadonlyArray<any | typescript0.TypeNode>;
9514
- }) => typescript0.TypeNode;
9515
- valueToExpression: <T = unknown>({
9516
- identifiers,
9517
- isValueAccess,
9518
- shorthand,
9519
- unescape,
9520
- value
9521
- }: {
9522
- identifiers?: string[];
9523
- isValueAccess?: boolean;
9524
- shorthand?: boolean;
9525
- unescape?: boolean;
9526
- value: T;
9527
- }) => typescript0.Expression | undefined;
9528
- };
9529
- /** @deprecated use tsc */
9530
- declare const compiler: {
9531
- anonymousFunction: ({
9532
- async,
9533
- comment,
9534
- multiLine,
9535
- parameters,
9536
- returnType,
9537
- statements,
9538
- types: types_d_exports
9539
- }: {
9540
- async?: boolean;
9541
- comment?: Comments;
9542
- multiLine?: boolean;
9543
- parameters?: FunctionParameter[];
9544
- returnType?: string | typescript0.TypeNode;
9545
- statements?: ReadonlyArray<typescript0.Statement>;
9546
- types?: FunctionTypeParameter[];
9547
- }) => typescript0.FunctionExpression;
9548
- arrayLiteralExpression: <T>({
9549
- elements,
9550
- multiLine
9551
- }: {
9552
- elements: T[];
9553
- multiLine?: boolean;
9554
- }) => typescript0.ArrayLiteralExpression;
9555
- arrowFunction: ({
9556
- async,
9557
- comment,
9558
- multiLine,
9559
- parameters,
9560
- returnType,
9561
- statements,
9562
- types: types_d_exports
9563
- }: {
9564
- async?: boolean;
9565
- comment?: Comments;
9566
- multiLine?: boolean;
9567
- parameters?: ReadonlyArray<FunctionParameter>;
9568
- returnType?: string | typescript0.TypeNode;
9569
- statements?: typescript0.Statement[] | typescript0.Expression;
9570
- types?: FunctionTypeParameter[];
9571
- }) => typescript0.ArrowFunction;
9572
- asExpression: ({
9573
- expression,
9574
- type
9575
- }: {
9576
- expression: typescript0.Expression;
9577
- type: typescript0.TypeNode;
9578
- }) => typescript0.AsExpression;
9579
- assignment: ({
9580
- left,
9581
- right
9582
- }: {
9583
- left: typescript0.Expression;
9584
- right: typescript0.Expression;
9585
- }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
9586
- awaitExpression: ({
9587
- expression
9588
- }: {
9589
- expression: typescript0.Expression;
9590
- }) => typescript0.AwaitExpression;
9591
- binaryExpression: ({
9592
- left,
9593
- operator,
9594
- right
9595
- }: {
9596
- left: typescript0.Expression;
9597
- operator?: "=" | "===" | "!==" | "in" | "??";
9598
- right: typescript0.Expression | string;
9599
- }) => typescript0.BinaryExpression;
9600
- block: ({
9601
- multiLine,
9602
- statements
9603
- }: {
9604
- multiLine?: boolean;
9605
- statements: ReadonlyArray<typescript0.Statement>;
9606
- }) => typescript0.Block;
9607
- callExpression: ({
9608
- functionName,
9609
- parameters,
9610
- types: types_d_exports
9611
- }: {
9612
- functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
9613
- parameters?: Array<string | typescript0.Expression | undefined>;
9614
- types?: ReadonlyArray<typescript0.TypeNode>;
9615
- }) => typescript0.CallExpression;
9616
- classDeclaration: ({
9617
- decorator,
9618
- exportClass,
9619
- extendedClasses,
9620
- name,
9621
- nodes
9622
- }: {
9623
- decorator?: {
9624
- args: any[];
9625
- name: string;
9626
- };
9627
- exportClass?: boolean;
9628
- extendedClasses?: ReadonlyArray<string>;
9629
- name: string;
9630
- nodes: ReadonlyArray<typescript0.ClassElement>;
9631
- }) => typescript0.ClassDeclaration;
9632
- conditionalExpression: ({
9633
- condition,
9634
- whenFalse,
9635
- whenTrue
9636
- }: {
9637
- condition: typescript0.Expression;
9638
- whenFalse: typescript0.Expression;
9639
- whenTrue: typescript0.Expression;
9640
- }) => typescript0.ConditionalExpression;
9641
- constVariable: ({
9642
- assertion,
9643
- comment,
9644
- destructure,
9645
- exportConst,
9646
- expression,
9647
- name,
9648
- typeName
9649
- }: {
9650
- assertion?: "const" | typescript0.TypeNode;
9651
- comment?: Comments;
9652
- destructure?: boolean;
9653
- exportConst?: boolean;
9654
- expression: typescript0.Expression;
9655
- name: string | typescript0.TypeReferenceNode;
9656
- typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
9657
- }) => typescript0.VariableStatement;
9658
- constructorDeclaration: ({
9659
- accessLevel,
9660
- comment,
9661
- multiLine,
9662
- parameters,
9663
- statements
9664
- }: {
9665
- accessLevel?: AccessLevel;
9666
- comment?: Comments;
9667
- multiLine?: boolean;
9668
- parameters?: FunctionParameter[];
9669
- statements?: typescript0.Statement[];
9670
- }) => typescript0.ConstructorDeclaration;
9671
- enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
9672
- asConst,
9673
- comments: enumMemberComments,
9674
- leadingComment: comments,
9675
- name,
9676
- obj
9677
- }: {
9678
- asConst: boolean;
9679
- comments?: Record<string | number, Comments>;
9680
- leadingComment?: Comments;
9681
- name: string | typescript0.TypeReferenceNode;
9682
- obj: T;
9683
- }) => typescript0.EnumDeclaration;
9684
- exportAllDeclaration: ({
9685
- module: module_d_exports,
9686
- shouldAppendJs
9687
- }: {
9688
- module: string;
9689
- shouldAppendJs?: boolean;
9690
- }) => typescript0.ExportDeclaration;
9691
- exportNamedDeclaration: ({
9692
- exports,
9693
- module: module_d_exports
9694
- }: {
9695
- exports: Array<ImportExportItem> | ImportExportItem;
9696
- module: string;
9697
- }) => typescript0.ExportDeclaration;
9698
- expressionToStatement: ({
9699
- expression
9700
- }: {
9701
- expression: typescript0.Expression;
9702
- }) => typescript0.ExpressionStatement;
9703
- forOfStatement: ({
9704
- awaitModifier,
9705
- expression,
9706
- initializer,
9707
- statement
9708
- }: {
9709
- awaitModifier?: typescript0.AwaitKeyword;
9710
- expression: typescript0.Expression;
9711
- initializer: typescript0.ForInitializer;
9712
- statement: typescript0.Statement;
9713
- }) => typescript0.ForOfStatement;
9714
- functionTypeNode: ({
9715
- parameters,
9716
- returnType,
9717
- typeParameters
9718
- }: {
9719
- parameters?: typescript0.ParameterDeclaration[];
9720
- returnType: typescript0.TypeNode;
9721
- typeParameters?: typescript0.TypeParameterDeclaration[];
9722
- }) => typescript0.FunctionTypeNode;
9723
- getAccessorDeclaration: ({
9724
- name,
9725
- returnType,
9726
- statements
9727
- }: {
9728
- name: string | typescript0.PropertyName;
9729
- returnType?: string | typescript0.Identifier;
9730
- statements: ReadonlyArray<typescript0.Statement>;
9731
- }) => typescript0.GetAccessorDeclaration;
9732
- identifier: ({
9733
- text
9734
- }: {
9735
- text: string;
9736
- }) => typescript0.Identifier;
9737
- ifStatement: ({
9738
- elseStatement,
9739
- expression,
9740
- thenStatement
9741
- }: {
9742
- elseStatement?: typescript0.Statement;
9743
- expression: typescript0.Expression;
9744
- thenStatement: typescript0.Statement;
9745
- }) => typescript0.IfStatement;
9746
- indexedAccessTypeNode: ({
9747
- indexType,
9748
- objectType
9749
- }: {
9750
- indexType: typescript0.TypeNode;
9751
- objectType: typescript0.TypeNode;
9752
- }) => typescript0.IndexedAccessTypeNode;
9753
- isTsNode: (node: any) => node is typescript0.Expression;
9754
- keywordTypeNode: ({
9755
- keyword
9756
- }: {
9757
- keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
9758
- }) => typescript0.KeywordTypeNode<typescript0.SyntaxKind.VoidKeyword | typescript0.SyntaxKind.AnyKeyword | typescript0.SyntaxKind.BooleanKeyword | typescript0.SyntaxKind.NeverKeyword | typescript0.SyntaxKind.NumberKeyword | typescript0.SyntaxKind.StringKeyword | typescript0.SyntaxKind.UndefinedKeyword | typescript0.SyntaxKind.UnknownKeyword>;
9759
- literalTypeNode: ({
9760
- literal
9761
- }: {
9762
- literal: typescript0.LiteralTypeNode["literal"];
9763
- }) => typescript0.LiteralTypeNode;
9764
- mappedTypeNode: ({
9765
- members,
9766
- nameType,
9767
- questionToken,
9768
- readonlyToken,
9769
- type,
9770
- typeParameter
9771
- }: {
9772
- members?: typescript0.NodeArray<typescript0.TypeElement>;
9773
- nameType?: typescript0.TypeNode;
9774
- questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
9775
- readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
9776
- type?: typescript0.TypeNode;
9777
- typeParameter: typescript0.TypeParameterDeclaration;
9778
- }) => typescript0.MappedTypeNode;
9779
- methodDeclaration: ({
9780
- accessLevel,
9781
- comment,
9782
- isStatic,
9783
- multiLine,
9784
- name,
9785
- parameters,
9786
- returnType,
9787
- statements,
9788
- types: types_d_exports
9789
- }: {
9790
- accessLevel?: AccessLevel;
9791
- comment?: Comments;
9792
- isStatic?: boolean;
9793
- multiLine?: boolean;
9794
- name: string;
9795
- parameters?: ReadonlyArray<FunctionParameter>;
9796
- returnType?: string | typescript0.TypeNode;
9797
- statements?: typescript0.Statement[];
9798
- types?: FunctionTypeParameter[];
9799
- }) => typescript0.MethodDeclaration;
9800
- namedImportDeclarations: ({
9801
- imports,
9802
- module: module_d_exports
9803
- }: {
9804
- imports: Array<ImportExportItem> | ImportExportItem;
9805
- module: string;
9806
- }) => typescript0.ImportDeclaration;
9807
- namespaceDeclaration: ({
9808
- name,
9809
- statements
9810
- }: {
9811
- name: string;
9812
- statements: Array<typescript0.Statement>;
9813
- }) => typescript0.ModuleDeclaration;
9814
- newExpression: ({
9815
- argumentsArray,
9816
- expression,
9817
- typeArguments
9818
- }: {
9819
- argumentsArray?: Array<typescript0.Expression>;
9820
- expression: typescript0.Expression;
9821
- typeArguments?: Array<typescript0.TypeNode>;
9822
- }) => typescript0.NewExpression;
9823
- nodeToString: typeof tsNodeToString;
9824
- null: () => typescript0.NullLiteral;
9825
- objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
9826
- comments,
9827
- identifiers,
9828
- multiLine,
9829
- obj,
9830
- shorthand,
9831
- unescape
9832
- }: {
9833
- comments?: Comments;
9834
- identifiers?: string[];
9835
- multiLine?: boolean;
9836
- obj: T;
9837
- shorthand?: boolean;
9838
- unescape?: boolean;
9839
- }) => typescript0.ObjectLiteralExpression;
9840
- ots: {
9841
- boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
9842
- export: ({
9843
- alias,
9844
- asType,
9845
- name
9846
- }: ImportExportItemObject) => typescript0.ExportSpecifier;
9847
- import: ({
9848
- alias,
9849
- asType,
9850
- name
9851
- }: ImportExportItemObject) => typescript0.ImportSpecifier;
9852
- number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
9853
- string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
9854
- };
9855
- parameterDeclaration: ({
9856
- initializer,
9857
- modifiers,
9858
- name,
9859
- required,
9860
- type
9861
- }: {
9862
- initializer?: typescript0.Expression;
9863
- modifiers?: ReadonlyArray<typescript0.ModifierLike>;
9864
- name: string | typescript0.BindingName;
9865
- required?: boolean;
9866
- type?: typescript0.TypeNode;
9867
- }) => typescript0.ParameterDeclaration;
9868
- propertyAccessExpression: ({
9869
- expression,
9870
- isOptional,
9871
- name
9872
- }: {
9873
- expression: string | typescript0.Expression;
9874
- isOptional?: boolean;
9875
- name: string | number | typescript0.MemberName;
9876
- }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
9877
- propertyAccessExpressions: ({
9878
- expressions
9879
- }: {
9880
- expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
9881
- }) => typescript0.PropertyAccessExpression;
9882
- propertyAssignment: ({
9883
- initializer,
9884
- name
9885
- }: {
9886
- initializer: typescript0.Expression;
9887
- name: string | typescript0.PropertyName;
9888
- }) => typescript0.PropertyAssignment;
9889
- propertyDeclaration: ({
9890
- initializer,
9891
- modifier,
9892
- name,
9893
- type
9894
- }: {
9895
- initializer?: typescript0.Expression;
9896
- modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
9897
- name: string | typescript0.PropertyName;
9898
- type?: typescript0.TypeNode;
9899
- }) => typescript0.PropertyDeclaration;
9900
- regularExpressionLiteral: ({
9901
- flags,
9902
- text
9903
- }: {
9904
- flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
9905
- text: string;
9906
- }) => typescript0.RegularExpressionLiteral;
9907
- returnFunctionCall: ({
9908
- args,
9909
- name,
9910
- types: types_d_exports
9911
- }: {
9912
- args: any[];
9913
- name: string | typescript0.Expression;
9914
- types?: ReadonlyArray<string | typescript0.StringLiteral>;
9915
- }) => typescript0.ReturnStatement;
9916
- returnStatement: ({
9917
- expression
9918
- }: {
9919
- expression?: typescript0.Expression;
9920
- }) => typescript0.ReturnStatement;
9921
- returnVariable: ({
9922
- expression
9923
- }: {
9924
- expression: string | typescript0.Expression;
9925
- }) => typescript0.ReturnStatement;
9926
- safeAccessExpression: (path: string[]) => typescript0.Expression;
9927
- stringLiteral: ({
9928
- isSingleQuote,
9929
- text
9930
- }: {
9931
- isSingleQuote?: boolean;
9932
- text: string;
9933
- }) => typescript0.StringLiteral;
9934
- templateLiteralType: ({
9935
- value
9936
- }: {
9937
- value: ReadonlyArray<string | typescript0.TypeNode>;
9938
- }) => typescript0.TemplateLiteralTypeNode;
9939
- this: () => typescript0.ThisExpression;
9940
- transformArrayMap: ({
9941
- path,
9942
- transformExpression
9943
- }: {
9944
- path: string[];
9945
- transformExpression: typescript0.Expression;
9946
- }) => typescript0.IfStatement;
9947
- transformArrayMutation: ({
9948
- path,
9949
- transformerName
9950
- }: {
9951
- path: string[];
9952
- transformerName: string;
9953
- }) => typescript0.Statement;
9954
- transformDateMutation: ({
9955
- path
9956
- }: {
9957
- path: string[];
9958
- }) => typescript0.Statement;
9959
- transformFunctionMutation: ({
9960
- path,
9961
- transformerName
9962
- }: {
9963
- path: string[];
9964
- transformerName: string;
9965
- }) => typescript0.IfStatement[];
9966
- transformNewDate: ({
9967
- parameterName
9968
- }: {
9969
- parameterName: string;
9970
- }) => typescript0.NewExpression;
9971
- typeAliasDeclaration: ({
9972
- comment,
9973
- exportType,
9974
- name,
9975
- type,
9976
- typeParameters
9977
- }: {
9978
- comment?: Comments;
9979
- exportType?: boolean;
9980
- name: string | typescript0.TypeReferenceNode;
9981
- type: string | typescript0.TypeNode | typescript0.Identifier;
9982
- typeParameters?: FunctionTypeParameter[];
9983
- }) => typescript0.TypeAliasDeclaration;
9984
- typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
9985
- typeInterfaceNode: ({
9986
- indexKey,
9987
- indexProperty,
9988
- isNullable,
9989
- properties,
9990
- useLegacyResolution
9991
- }: {
9992
- indexKey?: typescript0.TypeReferenceNode;
9993
- indexProperty?: Property;
9994
- isNullable?: boolean;
9995
- properties: Property[];
9996
- useLegacyResolution: boolean;
9997
- }) => typescript0.TypeNode;
9998
- typeIntersectionNode: ({
9999
- isNullable,
10000
- types: types_d_exports
10001
- }: {
10002
- isNullable?: boolean;
10003
- types: (any | typescript0.TypeNode)[];
10004
- }) => typescript0.TypeNode;
10005
- typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
10006
- typeOfExpression: ({
10007
- text
10008
- }: {
10009
- text: string | typescript0.Identifier;
10010
- }) => typescript0.TypeOfExpression;
10011
- typeOperatorNode: ({
10012
- operator,
10013
- type
10014
- }: {
10015
- operator: "keyof" | "readonly" | "unique";
10016
- type: typescript0.TypeNode;
10017
- }) => typescript0.TypeOperatorNode;
10018
- typeParameterDeclaration: ({
10019
- constraint,
10020
- defaultType,
10021
- modifiers,
10022
- name
10023
- }: {
10024
- constraint?: typescript0.TypeNode;
10025
- defaultType?: typescript0.TypeNode;
10026
- modifiers?: Array<typescript0.Modifier>;
10027
- name: string | typescript0.Identifier;
10028
- }) => typescript0.TypeParameterDeclaration;
10029
- typeParenthesizedNode: ({
10030
- type
10031
- }: {
10032
- type: typescript0.TypeNode;
10033
- }) => typescript0.ParenthesizedTypeNode;
10034
- typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
10035
- typeReferenceNode: ({
10036
- typeArguments,
10037
- typeName
10038
- }: {
10039
- typeArguments?: typescript0.TypeNode[];
10040
- typeName: string | typescript0.EntityName;
10041
- }) => typescript0.TypeReferenceNode;
10042
- typeTupleNode: ({
10043
- isNullable,
10044
- types: types_d_exports
10045
- }: {
10046
- isNullable?: boolean;
10047
- types: Array<any | typescript0.TypeNode>;
10048
- }) => typescript0.TypeNode;
10049
- typeUnionNode: ({
10050
- isNullable,
10051
- types: types_d_exports
10052
- }: {
10053
- isNullable?: boolean;
10054
- types: ReadonlyArray<any | typescript0.TypeNode>;
10055
- }) => typescript0.TypeNode;
10056
- valueToExpression: <T = unknown>({
10057
- identifiers,
10058
- isValueAccess,
10059
- shorthand,
10060
- unescape,
10061
- value
10062
- }: {
10063
- identifiers?: string[];
10064
- isValueAccess?: boolean;
10065
- shorthand?: boolean;
10066
- unescape?: boolean;
10067
- value: T;
10068
- }) => typescript0.Expression | undefined;
10069
- };
10070
- //#endregion
10071
- //#region src/plugins/@hey-api/sdk/comment.d.ts
10072
- declare const createOperationComment: ({
10073
- operation
10074
- }: {
10075
- operation: IR$1.OperationObject;
10076
- }) => Comments | undefined;
10077
8942
  //#endregion
10078
8943
  //#region src/plugins/@hey-api/sdk/api.d.ts
10079
8944
  type SelectorType$12 = 'buildClientParams' | 'class' | 'Client' | 'Composable' | 'formDataBodySerializer' | 'function' | 'Injectable' | 'Options' | 'urlSearchParamsBodySerializer';
10080
8945
  type IApi$12 = {
10081
- createOperationComment: typeof createOperationComment;
10082
8946
  /**
10083
8947
  * @param type Selector type.
10084
8948
  * @param value Depends on `type`:
@@ -10505,19 +9369,26 @@ type Config$12 = Plugin.Name<'@hey-api/transformers'> & Plugin.Hooks & {
10505
9369
  };
10506
9370
  type HeyApiTransformersPlugin = DefinePlugin<UserConfig$12, Config$12, IApi$11>;
10507
9371
  //#endregion
10508
- //#region src/plugins/@hey-api/typescript/plugin.d.ts
10509
- declare const schemaToType: ({
9372
+ //#region src/plugins/@hey-api/typescript/shared/types.d.ts
9373
+ type IrSchemaToAstOptions = {
9374
+ plugin: HeyApiTypeScriptPlugin['Instance'];
9375
+ state: ToRefs<PluginState>;
9376
+ };
9377
+ type PluginState = Pick<Required<SymbolMeta>, 'path'> & Pick<Partial<SymbolMeta>, 'tags'>;
9378
+ //#endregion
9379
+ //#region src/plugins/@hey-api/typescript/v1/plugin.d.ts
9380
+ declare const irSchemaToAst: ({
10510
9381
  plugin,
10511
- schema
10512
- }: {
10513
- plugin: HeyApiTypeScriptPlugin["Instance"];
9382
+ schema,
9383
+ state
9384
+ }: IrSchemaToAstOptions & {
10514
9385
  schema: IR$1.SchemaObject;
10515
9386
  }) => ts.TypeNode;
10516
9387
  //#endregion
10517
9388
  //#region src/plugins/@hey-api/typescript/api.d.ts
10518
9389
  type SelectorType$10 = 'ClientOptions' | 'data' | 'error' | 'errors' | 'ref' | 'response' | 'responses' | 'TypeID' | 'webhook-payload' | 'webhook-request' | 'Webhooks';
10519
9390
  type IApi$10 = {
10520
- schemaToType: (args: Parameters<typeof schemaToType>[0]) => ts.TypeNode;
9391
+ schemaToType: (args: Parameters<typeof irSchemaToAst>[0]) => ts.TypeNode;
10521
9392
  /**
10522
9393
  * @param type Selector type.
10523
9394
  * @param value Depends on `type`:
@@ -16232,5 +15103,5 @@ interface WatchValues {
16232
15103
  lastValue?: string;
16233
15104
  }
16234
15105
  //#endregion
16235
- export { OpenApiSchemaObject as C, MaybeArray as D, LazyOrAsync as E, OpenApiResponseObject as S, Input as T, OpenApi$3 as _, ExpressionTransformer as a, OpenApiParameterObject as b, Client as c, Plugin as d, Client$1 as f, UserConfig$27 as g, Config$1 as h, TypeTransformer as i, PluginHandler as l, Logger as m, WatchValues as n, compiler as o, parseOpenApiSpec as p, IR$1 as r, tsc as s, LegacyIR as t, DefinePlugin as u, OpenApiMetaObject as v, StringCase as w, OpenApiRequestBodyObject as x, OpenApiOperationObject as y };
16236
- //# sourceMappingURL=types-CBGf9bNY.d.cts.map
15106
+ export { FunctionParameter as A, Input as C, ImportExportItemObject as D, Comments as E, __export as F, ObjectValue as M, SyntaxKindKeyword as N, tsNodeToString as O, types_d_exports as P, StringCase as S, MaybeArray as T, OpenApiOperationObject as _, ExpressionTransformer as a, OpenApiResponseObject as b, DefinePlugin as c, parseOpenApiSpec as d, Logger as f, OpenApiMetaObject as g, OpenApi$3 as h, TypeTransformer as i, FunctionTypeParameter as j, AccessLevel as k, Plugin as l, UserConfig$27 as m, WatchValues as n, Client as o, Config$1 as p, IR$1 as r, PluginHandler as s, LegacyIR as t, Client$1 as u, OpenApiParameterObject as v, LazyOrAsync as w, OpenApiSchemaObject as x, OpenApiRequestBodyObject as y };
15107
+ //# sourceMappingURL=types-CQZml4KE.d.cts.map