@hey-api/openapi-ts 0.86.3 → 0.86.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/bin/run.cmd +3 -0
  2. package/bin/run.js +18 -0
  3. package/dist/clients/angular/utils.ts +9 -8
  4. package/dist/clients/axios/utils.ts +9 -8
  5. package/dist/clients/core/bodySerializer.ts +12 -4
  6. package/dist/clients/fetch/utils.ts +9 -8
  7. package/dist/clients/next/utils.ts +9 -8
  8. package/dist/clients/nuxt/utils.ts +9 -8
  9. package/dist/clients/ofetch/utils.ts +9 -8
  10. package/dist/getSpec-CdBgV-sm.js +24 -0
  11. package/dist/getSpec-CdBgV-sm.js.map +1 -0
  12. package/dist/getSpec-y1q2Fa6c.cjs +24 -0
  13. package/dist/getSpec-y1q2Fa6c.cjs.map +1 -0
  14. package/dist/index.cjs +1 -1318
  15. package/dist/index.d.cts +1217 -11
  16. package/dist/index.d.ts +1219 -11
  17. package/dist/index.js +1 -1310
  18. package/dist/internal.cjs +1 -1
  19. package/dist/internal.d.cts +1 -1
  20. package/dist/internal.d.ts +1 -1
  21. package/dist/internal.js +1 -1
  22. package/dist/run.cjs +3 -0
  23. package/dist/run.cjs.map +1 -0
  24. package/dist/run.d.cts +1 -0
  25. package/dist/run.d.ts +1 -0
  26. package/dist/run.js +3 -0
  27. package/dist/run.js.map +1 -0
  28. package/dist/src-DxujYdu0.cjs +1318 -0
  29. package/dist/src-DxujYdu0.cjs.map +1 -0
  30. package/dist/src-SnUobB4f.js +1310 -0
  31. package/dist/src-SnUobB4f.js.map +1 -0
  32. package/dist/{types-TTJZ61ck.d.ts → types-7_tn_FD9.d.ts} +7674 -8802
  33. package/dist/{types-CBGf9bNY.d.cts → types-ComCm5zo.d.cts} +7674 -8802
  34. package/package.json +3 -3
  35. package/bin/index.cjs +0 -148
  36. package/dist/getSpec-DhkA7wWv.cjs +0 -24
  37. package/dist/getSpec-DhkA7wWv.cjs.map +0 -1
  38. package/dist/getSpec-DzntayfV.js +0 -24
  39. package/dist/getSpec-DzntayfV.js.map +0 -1
  40. package/dist/index.cjs.map +0 -1
  41. package/dist/index.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,4 +1,8 @@
1
- import { C as OpenApiSchemaObject, D as MaybeArray, E as LazyOrAsync, S as OpenApiResponseObject, _ as OpenApi, a as ExpressionTransformer, b as OpenApiParameterObject, c as Client$2, d as Plugin, f as Client$7, g as UserConfig, i as TypeTransformer, l as PluginHandler, m as Logger, o as compiler, r as IR, s as tsc, t as LegacyIR, u as DefinePlugin, v as OpenApiMetaObject, w as StringCase, x as OpenApiRequestBodyObject, y as OpenApiOperationObject } from "./types-TTJZ61ck.js";
1
+ import { n as __export } from "./chunk-C-EqMg7d.js";
2
+ import { A as FunctionParameter, C as StringCase, D as ImportExportItemObject, E as Comments, M as ObjectValue, N as SyntaxKindKeyword, O as tsNodeToString, P as types_d_exports, S as PluginHandler, T as MaybeArray, _ as OpenApiResponseObject, b as Logger, c as ExpressionTransformer, d as Client$7, f as OpenApi, g as OpenApiRequestBodyObject, h as OpenApiParameterObject, i as UserConfig, j as FunctionTypeParameter, k as AccessLevel, l as DefinePlugin, m as OpenApiOperationObject, o as IR, p as OpenApiMetaObject, s as TypeTransformer, t as LegacyIR, u as Plugin, v as OpenApiSchemaObject, w as LazyOrAsync, x as Client$2 } from "./types-7_tn_FD9.js";
3
+ import "@hey-api/codegen-core";
4
+ import * as typescript0 from "typescript";
5
+ import ts from "typescript";
2
6
  import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
3
7
  import { Injector } from "@angular/core";
4
8
  import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
@@ -39,11 +43,18 @@ type ObjectStyle = 'form' | 'deepObject';
39
43
  //#region src/plugins/@hey-api/client-core/bundle/bodySerializer.d.ts
40
44
  type QuerySerializer$1 = (query: Record<string, unknown>) => string;
41
45
  type BodySerializer = (body: any) => any;
42
- interface QuerySerializerOptions {
46
+ type QuerySerializerOptionsObject = {
43
47
  allowReserved?: boolean;
44
- array?: SerializerOptions<ArrayStyle>;
45
- object?: SerializerOptions<ObjectStyle>;
46
- }
48
+ array?: Partial<SerializerOptions<ArrayStyle>>;
49
+ object?: Partial<SerializerOptions<ObjectStyle>>;
50
+ };
51
+ type QuerySerializerOptions = QuerySerializerOptionsObject & {
52
+ /**
53
+ * Per-parameter serialization overrides. When provided, these settings
54
+ * override the global array/object settings for specific parameter names.
55
+ */
56
+ parameters?: Record<string, QuerySerializerOptionsObject>;
57
+ };
47
58
  //#endregion
48
59
  //#region src/plugins/@hey-api/client-core/bundle/types.d.ts
49
60
  type HttpMethod = 'connect' | 'delete' | 'get' | 'head' | 'options' | 'patch' | 'post' | 'put' | 'trace';
@@ -865,6 +876,14 @@ interface TDataShape {
865
876
  type OmitKeys<T$1, K$1> = Pick<T$1, Exclude<keyof T$1, K$1>>;
866
877
  type Options$1<TData$1 extends TDataShape = TDataShape, ThrowOnError$1 extends boolean = boolean, TResponse = unknown, TResponseStyle$1 extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle$1, ThrowOnError$1>, 'body' | 'path' | 'query' | 'url'> & Omit<TData$1, 'url'>;
867
878
  //#endregion
879
+ //#region src/generate.d.ts
880
+ /**
881
+ * Generate a client from the provided configuration.
882
+ *
883
+ * @param userConfig User provided {@link UserConfig} configuration(s).
884
+ */
885
+ declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
886
+ //#endregion
868
887
  //#region src/config/parser.d.ts
869
888
  declare const defaultPaginationKeywords: readonly ["after", "before", "cursor", "offset", "page", "start"];
870
889
  //#endregion
@@ -900,6 +919,1175 @@ declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin
900
919
  */
901
920
  name: any;
902
921
  };
922
+ declare namespace module_d_exports {
923
+ export { ImportExportItem, createCallExpression, createConstVariable, createExportAllDeclaration, createNamedExportDeclarations, createNamedImportDeclarations };
924
+ }
925
+ /**
926
+ * Create export all declaration. Example: `export * from './y'`.
927
+ * @param module - module containing exports
928
+ * @returns ts.ExportDeclaration
929
+ */
930
+ declare const createExportAllDeclaration: ({
931
+ module,
932
+ shouldAppendJs
933
+ }: {
934
+ module: string;
935
+ shouldAppendJs?: boolean;
936
+ }) => ts.ExportDeclaration;
937
+ type ImportExportItem = ImportExportItemObject | string;
938
+ declare const createCallExpression: ({
939
+ functionName,
940
+ parameters,
941
+ types
942
+ }: {
943
+ functionName: string | ts.PropertyAccessExpression | ts.PropertyAccessChain | ts.ElementAccessExpression | ts.Expression;
944
+ parameters?: Array<string | ts.Expression | undefined>;
945
+ types?: ReadonlyArray<ts.TypeNode>;
946
+ }) => ts.CallExpression;
947
+ /**
948
+ * Create a named export declaration. Example: `export { X } from './y'`.
949
+ * @param exports - named imports to export
950
+ * @param module - module containing exports
951
+ * @returns ts.ExportDeclaration
952
+ */
953
+ declare const createNamedExportDeclarations: ({
954
+ exports,
955
+ module
956
+ }: {
957
+ exports: Array<ImportExportItem> | ImportExportItem;
958
+ module: string;
959
+ }) => ts.ExportDeclaration;
960
+ /**
961
+ * Create a const variable. Optionally, it can use const assertion or export
962
+ * statement. Example: `export x = {} as const`.
963
+ * @param assertion use const assertion?
964
+ * @param exportConst export created variable?
965
+ * @param expression expression for the variable.
966
+ * @param name name of the variable.
967
+ * @returns ts.VariableStatement
968
+ */
969
+ declare const createConstVariable: ({
970
+ assertion,
971
+ comment,
972
+ destructure,
973
+ exportConst,
974
+ expression,
975
+ name,
976
+ typeName
977
+ }: {
978
+ assertion?: "const" | ts.TypeNode;
979
+ comment?: Comments;
980
+ destructure?: boolean;
981
+ exportConst?: boolean;
982
+ expression: ts.Expression;
983
+ name: string | ts.TypeReferenceNode;
984
+ typeName?: string | ts.IndexedAccessTypeNode | ts.TypeNode;
985
+ }) => ts.VariableStatement;
986
+ /**
987
+ * Create a named import declaration. Example: `import { X } from './y'`.
988
+ * @param imports - named exports to import
989
+ * @param module - module containing imports
990
+ * @returns ts.ImportDeclaration
991
+ */
992
+ declare const createNamedImportDeclarations: ({
993
+ imports,
994
+ module
995
+ }: {
996
+ imports: Array<ImportExportItem> | ImportExportItem;
997
+ module: string;
998
+ }) => ts.ImportDeclaration;
999
+ //#endregion
1000
+ //#region src/tsc/typedef.d.ts
1001
+ type Property = {
1002
+ comment?: Comments;
1003
+ isReadOnly?: boolean;
1004
+ isRequired?: boolean;
1005
+ name: string | ts.PropertyName;
1006
+ type: any | ts.TypeNode;
1007
+ };
1008
+ //#endregion
1009
+ //#region src/tsc/index.d.ts
1010
+ declare const tsc: {
1011
+ anonymousFunction: ({
1012
+ async,
1013
+ comment,
1014
+ multiLine,
1015
+ parameters,
1016
+ returnType,
1017
+ statements,
1018
+ types: types_d_exports
1019
+ }: {
1020
+ async?: boolean;
1021
+ comment?: Comments;
1022
+ multiLine?: boolean;
1023
+ parameters?: FunctionParameter[];
1024
+ returnType?: string | typescript0.TypeNode;
1025
+ statements?: ReadonlyArray<typescript0.Statement>;
1026
+ types?: FunctionTypeParameter[];
1027
+ }) => typescript0.FunctionExpression;
1028
+ arrayLiteralExpression: <T>({
1029
+ elements,
1030
+ multiLine
1031
+ }: {
1032
+ elements: T[];
1033
+ multiLine?: boolean;
1034
+ }) => typescript0.ArrayLiteralExpression;
1035
+ arrowFunction: ({
1036
+ async,
1037
+ comment,
1038
+ multiLine,
1039
+ parameters,
1040
+ returnType,
1041
+ statements,
1042
+ types: types_d_exports
1043
+ }: {
1044
+ async?: boolean;
1045
+ comment?: Comments;
1046
+ multiLine?: boolean;
1047
+ parameters?: ReadonlyArray<FunctionParameter>;
1048
+ returnType?: string | typescript0.TypeNode;
1049
+ statements?: typescript0.Statement[] | typescript0.Expression;
1050
+ types?: FunctionTypeParameter[];
1051
+ }) => typescript0.ArrowFunction;
1052
+ asExpression: ({
1053
+ expression,
1054
+ type
1055
+ }: {
1056
+ expression: typescript0.Expression;
1057
+ type: typescript0.TypeNode;
1058
+ }) => typescript0.AsExpression;
1059
+ assignment: ({
1060
+ left,
1061
+ right
1062
+ }: {
1063
+ left: typescript0.Expression;
1064
+ right: typescript0.Expression;
1065
+ }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
1066
+ awaitExpression: ({
1067
+ expression
1068
+ }: {
1069
+ expression: typescript0.Expression;
1070
+ }) => typescript0.AwaitExpression;
1071
+ binaryExpression: ({
1072
+ left,
1073
+ operator,
1074
+ right
1075
+ }: {
1076
+ left: typescript0.Expression;
1077
+ operator?: "=" | "===" | "!==" | "in" | "??";
1078
+ right: typescript0.Expression | string;
1079
+ }) => typescript0.BinaryExpression;
1080
+ block: ({
1081
+ multiLine,
1082
+ statements
1083
+ }: {
1084
+ multiLine?: boolean;
1085
+ statements: ReadonlyArray<typescript0.Statement>;
1086
+ }) => typescript0.Block;
1087
+ callExpression: ({
1088
+ functionName,
1089
+ parameters,
1090
+ types: types_d_exports
1091
+ }: {
1092
+ functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
1093
+ parameters?: Array<string | typescript0.Expression | undefined>;
1094
+ types?: ReadonlyArray<typescript0.TypeNode>;
1095
+ }) => typescript0.CallExpression;
1096
+ classDeclaration: ({
1097
+ decorator,
1098
+ exportClass,
1099
+ extendedClasses,
1100
+ name,
1101
+ nodes
1102
+ }: {
1103
+ decorator?: {
1104
+ args: any[];
1105
+ name: string;
1106
+ };
1107
+ exportClass?: boolean;
1108
+ extendedClasses?: ReadonlyArray<string>;
1109
+ name: string;
1110
+ nodes: ReadonlyArray<typescript0.ClassElement>;
1111
+ }) => typescript0.ClassDeclaration;
1112
+ conditionalExpression: ({
1113
+ condition,
1114
+ whenFalse,
1115
+ whenTrue
1116
+ }: {
1117
+ condition: typescript0.Expression;
1118
+ whenFalse: typescript0.Expression;
1119
+ whenTrue: typescript0.Expression;
1120
+ }) => typescript0.ConditionalExpression;
1121
+ constVariable: ({
1122
+ assertion,
1123
+ comment,
1124
+ destructure,
1125
+ exportConst,
1126
+ expression,
1127
+ name,
1128
+ typeName
1129
+ }: {
1130
+ assertion?: "const" | typescript0.TypeNode;
1131
+ comment?: Comments;
1132
+ destructure?: boolean;
1133
+ exportConst?: boolean;
1134
+ expression: typescript0.Expression;
1135
+ name: string | typescript0.TypeReferenceNode;
1136
+ typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
1137
+ }) => typescript0.VariableStatement;
1138
+ constructorDeclaration: ({
1139
+ accessLevel,
1140
+ comment,
1141
+ multiLine,
1142
+ parameters,
1143
+ statements
1144
+ }: {
1145
+ accessLevel?: AccessLevel;
1146
+ comment?: Comments;
1147
+ multiLine?: boolean;
1148
+ parameters?: FunctionParameter[];
1149
+ statements?: typescript0.Statement[];
1150
+ }) => typescript0.ConstructorDeclaration;
1151
+ enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
1152
+ asConst,
1153
+ comments: enumMemberComments,
1154
+ leadingComment: comments,
1155
+ name,
1156
+ obj
1157
+ }: {
1158
+ asConst: boolean;
1159
+ comments?: Record<string | number, Comments>;
1160
+ leadingComment?: Comments;
1161
+ name: string | typescript0.TypeReferenceNode;
1162
+ obj: T;
1163
+ }) => typescript0.EnumDeclaration;
1164
+ exportAllDeclaration: ({
1165
+ module: module_d_exports,
1166
+ shouldAppendJs
1167
+ }: {
1168
+ module: string;
1169
+ shouldAppendJs?: boolean;
1170
+ }) => typescript0.ExportDeclaration;
1171
+ exportNamedDeclaration: ({
1172
+ exports,
1173
+ module: module_d_exports
1174
+ }: {
1175
+ exports: Array<ImportExportItem> | ImportExportItem;
1176
+ module: string;
1177
+ }) => typescript0.ExportDeclaration;
1178
+ expressionToStatement: ({
1179
+ expression
1180
+ }: {
1181
+ expression: typescript0.Expression;
1182
+ }) => typescript0.ExpressionStatement;
1183
+ forOfStatement: ({
1184
+ awaitModifier,
1185
+ expression,
1186
+ initializer,
1187
+ statement
1188
+ }: {
1189
+ awaitModifier?: typescript0.AwaitKeyword;
1190
+ expression: typescript0.Expression;
1191
+ initializer: typescript0.ForInitializer;
1192
+ statement: typescript0.Statement;
1193
+ }) => typescript0.ForOfStatement;
1194
+ functionTypeNode: ({
1195
+ parameters,
1196
+ returnType,
1197
+ typeParameters
1198
+ }: {
1199
+ parameters?: typescript0.ParameterDeclaration[];
1200
+ returnType: typescript0.TypeNode;
1201
+ typeParameters?: typescript0.TypeParameterDeclaration[];
1202
+ }) => typescript0.FunctionTypeNode;
1203
+ getAccessorDeclaration: ({
1204
+ name,
1205
+ returnType,
1206
+ statements
1207
+ }: {
1208
+ name: string | typescript0.PropertyName;
1209
+ returnType?: string | typescript0.Identifier;
1210
+ statements: ReadonlyArray<typescript0.Statement>;
1211
+ }) => typescript0.GetAccessorDeclaration;
1212
+ identifier: ({
1213
+ text
1214
+ }: {
1215
+ text: string;
1216
+ }) => typescript0.Identifier;
1217
+ ifStatement: ({
1218
+ elseStatement,
1219
+ expression,
1220
+ thenStatement
1221
+ }: {
1222
+ elseStatement?: typescript0.Statement;
1223
+ expression: typescript0.Expression;
1224
+ thenStatement: typescript0.Statement;
1225
+ }) => typescript0.IfStatement;
1226
+ indexedAccessTypeNode: ({
1227
+ indexType,
1228
+ objectType
1229
+ }: {
1230
+ indexType: typescript0.TypeNode;
1231
+ objectType: typescript0.TypeNode;
1232
+ }) => typescript0.IndexedAccessTypeNode;
1233
+ isTsNode: (node: any) => node is typescript0.Expression;
1234
+ keywordTypeNode: ({
1235
+ keyword
1236
+ }: {
1237
+ keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
1238
+ }) => 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>;
1239
+ literalTypeNode: ({
1240
+ literal
1241
+ }: {
1242
+ literal: typescript0.LiteralTypeNode["literal"];
1243
+ }) => typescript0.LiteralTypeNode;
1244
+ mappedTypeNode: ({
1245
+ members,
1246
+ nameType,
1247
+ questionToken,
1248
+ readonlyToken,
1249
+ type,
1250
+ typeParameter
1251
+ }: {
1252
+ members?: typescript0.NodeArray<typescript0.TypeElement>;
1253
+ nameType?: typescript0.TypeNode;
1254
+ questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
1255
+ readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
1256
+ type?: typescript0.TypeNode;
1257
+ typeParameter: typescript0.TypeParameterDeclaration;
1258
+ }) => typescript0.MappedTypeNode;
1259
+ methodDeclaration: ({
1260
+ accessLevel,
1261
+ comment,
1262
+ isStatic,
1263
+ multiLine,
1264
+ name,
1265
+ parameters,
1266
+ returnType,
1267
+ statements,
1268
+ types: types_d_exports
1269
+ }: {
1270
+ accessLevel?: AccessLevel;
1271
+ comment?: Comments;
1272
+ isStatic?: boolean;
1273
+ multiLine?: boolean;
1274
+ name: string;
1275
+ parameters?: ReadonlyArray<FunctionParameter>;
1276
+ returnType?: string | typescript0.TypeNode;
1277
+ statements?: typescript0.Statement[];
1278
+ types?: FunctionTypeParameter[];
1279
+ }) => typescript0.MethodDeclaration;
1280
+ namedImportDeclarations: ({
1281
+ imports,
1282
+ module: module_d_exports
1283
+ }: {
1284
+ imports: Array<ImportExportItem> | ImportExportItem;
1285
+ module: string;
1286
+ }) => typescript0.ImportDeclaration;
1287
+ namespaceDeclaration: ({
1288
+ name,
1289
+ statements
1290
+ }: {
1291
+ name: string;
1292
+ statements: Array<typescript0.Statement>;
1293
+ }) => typescript0.ModuleDeclaration;
1294
+ newExpression: ({
1295
+ argumentsArray,
1296
+ expression,
1297
+ typeArguments
1298
+ }: {
1299
+ argumentsArray?: Array<typescript0.Expression>;
1300
+ expression: typescript0.Expression;
1301
+ typeArguments?: Array<typescript0.TypeNode>;
1302
+ }) => typescript0.NewExpression;
1303
+ nodeToString: typeof tsNodeToString;
1304
+ null: () => typescript0.NullLiteral;
1305
+ objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
1306
+ comments,
1307
+ identifiers,
1308
+ multiLine,
1309
+ obj,
1310
+ shorthand,
1311
+ unescape
1312
+ }: {
1313
+ comments?: Comments;
1314
+ identifiers?: string[];
1315
+ multiLine?: boolean;
1316
+ obj: T;
1317
+ shorthand?: boolean;
1318
+ unescape?: boolean;
1319
+ }) => typescript0.ObjectLiteralExpression;
1320
+ ots: {
1321
+ boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
1322
+ export: ({
1323
+ alias,
1324
+ asType,
1325
+ name
1326
+ }: ImportExportItemObject) => typescript0.ExportSpecifier;
1327
+ import: ({
1328
+ alias,
1329
+ asType,
1330
+ name
1331
+ }: ImportExportItemObject) => typescript0.ImportSpecifier;
1332
+ number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
1333
+ string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
1334
+ };
1335
+ parameterDeclaration: ({
1336
+ initializer,
1337
+ modifiers,
1338
+ name,
1339
+ required,
1340
+ type
1341
+ }: {
1342
+ initializer?: typescript0.Expression;
1343
+ modifiers?: ReadonlyArray<typescript0.ModifierLike>;
1344
+ name: string | typescript0.BindingName;
1345
+ required?: boolean;
1346
+ type?: typescript0.TypeNode;
1347
+ }) => typescript0.ParameterDeclaration;
1348
+ propertyAccessExpression: ({
1349
+ expression,
1350
+ isOptional,
1351
+ name
1352
+ }: {
1353
+ expression: string | typescript0.Expression;
1354
+ isOptional?: boolean;
1355
+ name: string | number | typescript0.MemberName;
1356
+ }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
1357
+ propertyAccessExpressions: ({
1358
+ expressions
1359
+ }: {
1360
+ expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
1361
+ }) => typescript0.PropertyAccessExpression;
1362
+ propertyAssignment: ({
1363
+ initializer,
1364
+ name
1365
+ }: {
1366
+ initializer: typescript0.Expression;
1367
+ name: string | typescript0.PropertyName;
1368
+ }) => typescript0.PropertyAssignment;
1369
+ propertyDeclaration: ({
1370
+ initializer,
1371
+ modifier,
1372
+ name,
1373
+ type
1374
+ }: {
1375
+ initializer?: typescript0.Expression;
1376
+ modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
1377
+ name: string | typescript0.PropertyName;
1378
+ type?: typescript0.TypeNode;
1379
+ }) => typescript0.PropertyDeclaration;
1380
+ regularExpressionLiteral: ({
1381
+ flags,
1382
+ text
1383
+ }: {
1384
+ flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
1385
+ text: string;
1386
+ }) => typescript0.RegularExpressionLiteral;
1387
+ returnFunctionCall: ({
1388
+ args,
1389
+ name,
1390
+ types: types_d_exports
1391
+ }: {
1392
+ args: any[];
1393
+ name: string | typescript0.Expression;
1394
+ types?: ReadonlyArray<string | typescript0.StringLiteral>;
1395
+ }) => typescript0.ReturnStatement;
1396
+ returnStatement: ({
1397
+ expression
1398
+ }: {
1399
+ expression?: typescript0.Expression;
1400
+ }) => typescript0.ReturnStatement;
1401
+ returnVariable: ({
1402
+ expression
1403
+ }: {
1404
+ expression: string | typescript0.Expression;
1405
+ }) => typescript0.ReturnStatement;
1406
+ safeAccessExpression: (path: string[]) => typescript0.Expression;
1407
+ stringLiteral: ({
1408
+ isSingleQuote,
1409
+ text
1410
+ }: {
1411
+ isSingleQuote?: boolean;
1412
+ text: string;
1413
+ }) => typescript0.StringLiteral;
1414
+ templateLiteralType: ({
1415
+ value
1416
+ }: {
1417
+ value: ReadonlyArray<string | typescript0.TypeNode>;
1418
+ }) => typescript0.TemplateLiteralTypeNode;
1419
+ this: () => typescript0.ThisExpression;
1420
+ transformArrayMap: ({
1421
+ path,
1422
+ transformExpression
1423
+ }: {
1424
+ path: string[];
1425
+ transformExpression: typescript0.Expression;
1426
+ }) => typescript0.IfStatement;
1427
+ transformArrayMutation: ({
1428
+ path,
1429
+ transformerName
1430
+ }: {
1431
+ path: string[];
1432
+ transformerName: string;
1433
+ }) => typescript0.Statement;
1434
+ transformDateMutation: ({
1435
+ path
1436
+ }: {
1437
+ path: string[];
1438
+ }) => typescript0.Statement;
1439
+ transformFunctionMutation: ({
1440
+ path,
1441
+ transformerName
1442
+ }: {
1443
+ path: string[];
1444
+ transformerName: string;
1445
+ }) => typescript0.IfStatement[];
1446
+ transformNewDate: ({
1447
+ parameterName
1448
+ }: {
1449
+ parameterName: string;
1450
+ }) => typescript0.NewExpression;
1451
+ typeAliasDeclaration: ({
1452
+ comment,
1453
+ exportType,
1454
+ name,
1455
+ type,
1456
+ typeParameters
1457
+ }: {
1458
+ comment?: Comments;
1459
+ exportType?: boolean;
1460
+ name: string | typescript0.TypeReferenceNode;
1461
+ type: string | typescript0.TypeNode | typescript0.Identifier;
1462
+ typeParameters?: FunctionTypeParameter[];
1463
+ }) => typescript0.TypeAliasDeclaration;
1464
+ typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
1465
+ typeInterfaceNode: ({
1466
+ indexKey,
1467
+ indexProperty,
1468
+ isNullable,
1469
+ properties,
1470
+ useLegacyResolution
1471
+ }: {
1472
+ indexKey?: typescript0.TypeReferenceNode;
1473
+ indexProperty?: Property;
1474
+ isNullable?: boolean;
1475
+ properties: Property[];
1476
+ useLegacyResolution: boolean;
1477
+ }) => typescript0.TypeNode;
1478
+ typeIntersectionNode: ({
1479
+ isNullable,
1480
+ types: types_d_exports
1481
+ }: {
1482
+ isNullable?: boolean;
1483
+ types: (any | typescript0.TypeNode)[];
1484
+ }) => typescript0.TypeNode;
1485
+ typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
1486
+ typeOfExpression: ({
1487
+ text
1488
+ }: {
1489
+ text: string | typescript0.Identifier;
1490
+ }) => typescript0.TypeOfExpression;
1491
+ typeOperatorNode: ({
1492
+ operator,
1493
+ type
1494
+ }: {
1495
+ operator: "keyof" | "readonly" | "unique";
1496
+ type: typescript0.TypeNode;
1497
+ }) => typescript0.TypeOperatorNode;
1498
+ typeParameterDeclaration: ({
1499
+ constraint,
1500
+ defaultType,
1501
+ modifiers,
1502
+ name
1503
+ }: {
1504
+ constraint?: typescript0.TypeNode;
1505
+ defaultType?: typescript0.TypeNode;
1506
+ modifiers?: Array<typescript0.Modifier>;
1507
+ name: string | typescript0.Identifier;
1508
+ }) => typescript0.TypeParameterDeclaration;
1509
+ typeParenthesizedNode: ({
1510
+ type
1511
+ }: {
1512
+ type: typescript0.TypeNode;
1513
+ }) => typescript0.ParenthesizedTypeNode;
1514
+ typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
1515
+ typeReferenceNode: ({
1516
+ typeArguments,
1517
+ typeName
1518
+ }: {
1519
+ typeArguments?: typescript0.TypeNode[];
1520
+ typeName: string | typescript0.EntityName;
1521
+ }) => typescript0.TypeReferenceNode;
1522
+ typeTupleNode: ({
1523
+ isNullable,
1524
+ types: types_d_exports
1525
+ }: {
1526
+ isNullable?: boolean;
1527
+ types: Array<any | typescript0.TypeNode>;
1528
+ }) => typescript0.TypeNode;
1529
+ typeUnionNode: ({
1530
+ isNullable,
1531
+ types: types_d_exports
1532
+ }: {
1533
+ isNullable?: boolean;
1534
+ types: ReadonlyArray<any | typescript0.TypeNode>;
1535
+ }) => typescript0.TypeNode;
1536
+ valueToExpression: <T = unknown>({
1537
+ identifiers,
1538
+ isValueAccess,
1539
+ shorthand,
1540
+ unescape,
1541
+ value
1542
+ }: {
1543
+ identifiers?: string[];
1544
+ isValueAccess?: boolean;
1545
+ shorthand?: boolean;
1546
+ unescape?: boolean;
1547
+ value: T;
1548
+ }) => typescript0.Expression | undefined;
1549
+ };
1550
+ /** @deprecated use tsc */
1551
+ declare const compiler: {
1552
+ anonymousFunction: ({
1553
+ async,
1554
+ comment,
1555
+ multiLine,
1556
+ parameters,
1557
+ returnType,
1558
+ statements,
1559
+ types: types_d_exports
1560
+ }: {
1561
+ async?: boolean;
1562
+ comment?: Comments;
1563
+ multiLine?: boolean;
1564
+ parameters?: FunctionParameter[];
1565
+ returnType?: string | typescript0.TypeNode;
1566
+ statements?: ReadonlyArray<typescript0.Statement>;
1567
+ types?: FunctionTypeParameter[];
1568
+ }) => typescript0.FunctionExpression;
1569
+ arrayLiteralExpression: <T>({
1570
+ elements,
1571
+ multiLine
1572
+ }: {
1573
+ elements: T[];
1574
+ multiLine?: boolean;
1575
+ }) => typescript0.ArrayLiteralExpression;
1576
+ arrowFunction: ({
1577
+ async,
1578
+ comment,
1579
+ multiLine,
1580
+ parameters,
1581
+ returnType,
1582
+ statements,
1583
+ types: types_d_exports
1584
+ }: {
1585
+ async?: boolean;
1586
+ comment?: Comments;
1587
+ multiLine?: boolean;
1588
+ parameters?: ReadonlyArray<FunctionParameter>;
1589
+ returnType?: string | typescript0.TypeNode;
1590
+ statements?: typescript0.Statement[] | typescript0.Expression;
1591
+ types?: FunctionTypeParameter[];
1592
+ }) => typescript0.ArrowFunction;
1593
+ asExpression: ({
1594
+ expression,
1595
+ type
1596
+ }: {
1597
+ expression: typescript0.Expression;
1598
+ type: typescript0.TypeNode;
1599
+ }) => typescript0.AsExpression;
1600
+ assignment: ({
1601
+ left,
1602
+ right
1603
+ }: {
1604
+ left: typescript0.Expression;
1605
+ right: typescript0.Expression;
1606
+ }) => typescript0.AssignmentExpression<typescript0.EqualsToken>;
1607
+ awaitExpression: ({
1608
+ expression
1609
+ }: {
1610
+ expression: typescript0.Expression;
1611
+ }) => typescript0.AwaitExpression;
1612
+ binaryExpression: ({
1613
+ left,
1614
+ operator,
1615
+ right
1616
+ }: {
1617
+ left: typescript0.Expression;
1618
+ operator?: "=" | "===" | "!==" | "in" | "??";
1619
+ right: typescript0.Expression | string;
1620
+ }) => typescript0.BinaryExpression;
1621
+ block: ({
1622
+ multiLine,
1623
+ statements
1624
+ }: {
1625
+ multiLine?: boolean;
1626
+ statements: ReadonlyArray<typescript0.Statement>;
1627
+ }) => typescript0.Block;
1628
+ callExpression: ({
1629
+ functionName,
1630
+ parameters,
1631
+ types: types_d_exports
1632
+ }: {
1633
+ functionName: string | typescript0.PropertyAccessExpression | typescript0.PropertyAccessChain | typescript0.ElementAccessExpression | typescript0.Expression;
1634
+ parameters?: Array<string | typescript0.Expression | undefined>;
1635
+ types?: ReadonlyArray<typescript0.TypeNode>;
1636
+ }) => typescript0.CallExpression;
1637
+ classDeclaration: ({
1638
+ decorator,
1639
+ exportClass,
1640
+ extendedClasses,
1641
+ name,
1642
+ nodes
1643
+ }: {
1644
+ decorator?: {
1645
+ args: any[];
1646
+ name: string;
1647
+ };
1648
+ exportClass?: boolean;
1649
+ extendedClasses?: ReadonlyArray<string>;
1650
+ name: string;
1651
+ nodes: ReadonlyArray<typescript0.ClassElement>;
1652
+ }) => typescript0.ClassDeclaration;
1653
+ conditionalExpression: ({
1654
+ condition,
1655
+ whenFalse,
1656
+ whenTrue
1657
+ }: {
1658
+ condition: typescript0.Expression;
1659
+ whenFalse: typescript0.Expression;
1660
+ whenTrue: typescript0.Expression;
1661
+ }) => typescript0.ConditionalExpression;
1662
+ constVariable: ({
1663
+ assertion,
1664
+ comment,
1665
+ destructure,
1666
+ exportConst,
1667
+ expression,
1668
+ name,
1669
+ typeName
1670
+ }: {
1671
+ assertion?: "const" | typescript0.TypeNode;
1672
+ comment?: Comments;
1673
+ destructure?: boolean;
1674
+ exportConst?: boolean;
1675
+ expression: typescript0.Expression;
1676
+ name: string | typescript0.TypeReferenceNode;
1677
+ typeName?: string | typescript0.IndexedAccessTypeNode | typescript0.TypeNode;
1678
+ }) => typescript0.VariableStatement;
1679
+ constructorDeclaration: ({
1680
+ accessLevel,
1681
+ comment,
1682
+ multiLine,
1683
+ parameters,
1684
+ statements
1685
+ }: {
1686
+ accessLevel?: AccessLevel;
1687
+ comment?: Comments;
1688
+ multiLine?: boolean;
1689
+ parameters?: FunctionParameter[];
1690
+ statements?: typescript0.Statement[];
1691
+ }) => typescript0.ConstructorDeclaration;
1692
+ enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
1693
+ asConst,
1694
+ comments: enumMemberComments,
1695
+ leadingComment: comments,
1696
+ name,
1697
+ obj
1698
+ }: {
1699
+ asConst: boolean;
1700
+ comments?: Record<string | number, Comments>;
1701
+ leadingComment?: Comments;
1702
+ name: string | typescript0.TypeReferenceNode;
1703
+ obj: T;
1704
+ }) => typescript0.EnumDeclaration;
1705
+ exportAllDeclaration: ({
1706
+ module: module_d_exports,
1707
+ shouldAppendJs
1708
+ }: {
1709
+ module: string;
1710
+ shouldAppendJs?: boolean;
1711
+ }) => typescript0.ExportDeclaration;
1712
+ exportNamedDeclaration: ({
1713
+ exports,
1714
+ module: module_d_exports
1715
+ }: {
1716
+ exports: Array<ImportExportItem> | ImportExportItem;
1717
+ module: string;
1718
+ }) => typescript0.ExportDeclaration;
1719
+ expressionToStatement: ({
1720
+ expression
1721
+ }: {
1722
+ expression: typescript0.Expression;
1723
+ }) => typescript0.ExpressionStatement;
1724
+ forOfStatement: ({
1725
+ awaitModifier,
1726
+ expression,
1727
+ initializer,
1728
+ statement
1729
+ }: {
1730
+ awaitModifier?: typescript0.AwaitKeyword;
1731
+ expression: typescript0.Expression;
1732
+ initializer: typescript0.ForInitializer;
1733
+ statement: typescript0.Statement;
1734
+ }) => typescript0.ForOfStatement;
1735
+ functionTypeNode: ({
1736
+ parameters,
1737
+ returnType,
1738
+ typeParameters
1739
+ }: {
1740
+ parameters?: typescript0.ParameterDeclaration[];
1741
+ returnType: typescript0.TypeNode;
1742
+ typeParameters?: typescript0.TypeParameterDeclaration[];
1743
+ }) => typescript0.FunctionTypeNode;
1744
+ getAccessorDeclaration: ({
1745
+ name,
1746
+ returnType,
1747
+ statements
1748
+ }: {
1749
+ name: string | typescript0.PropertyName;
1750
+ returnType?: string | typescript0.Identifier;
1751
+ statements: ReadonlyArray<typescript0.Statement>;
1752
+ }) => typescript0.GetAccessorDeclaration;
1753
+ identifier: ({
1754
+ text
1755
+ }: {
1756
+ text: string;
1757
+ }) => typescript0.Identifier;
1758
+ ifStatement: ({
1759
+ elseStatement,
1760
+ expression,
1761
+ thenStatement
1762
+ }: {
1763
+ elseStatement?: typescript0.Statement;
1764
+ expression: typescript0.Expression;
1765
+ thenStatement: typescript0.Statement;
1766
+ }) => typescript0.IfStatement;
1767
+ indexedAccessTypeNode: ({
1768
+ indexType,
1769
+ objectType
1770
+ }: {
1771
+ indexType: typescript0.TypeNode;
1772
+ objectType: typescript0.TypeNode;
1773
+ }) => typescript0.IndexedAccessTypeNode;
1774
+ isTsNode: (node: any) => node is typescript0.Expression;
1775
+ keywordTypeNode: ({
1776
+ keyword
1777
+ }: {
1778
+ keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
1779
+ }) => 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>;
1780
+ literalTypeNode: ({
1781
+ literal
1782
+ }: {
1783
+ literal: typescript0.LiteralTypeNode["literal"];
1784
+ }) => typescript0.LiteralTypeNode;
1785
+ mappedTypeNode: ({
1786
+ members,
1787
+ nameType,
1788
+ questionToken,
1789
+ readonlyToken,
1790
+ type,
1791
+ typeParameter
1792
+ }: {
1793
+ members?: typescript0.NodeArray<typescript0.TypeElement>;
1794
+ nameType?: typescript0.TypeNode;
1795
+ questionToken?: typescript0.QuestionToken | typescript0.PlusToken | typescript0.MinusToken;
1796
+ readonlyToken?: typescript0.ReadonlyKeyword | typescript0.PlusToken | typescript0.MinusToken;
1797
+ type?: typescript0.TypeNode;
1798
+ typeParameter: typescript0.TypeParameterDeclaration;
1799
+ }) => typescript0.MappedTypeNode;
1800
+ methodDeclaration: ({
1801
+ accessLevel,
1802
+ comment,
1803
+ isStatic,
1804
+ multiLine,
1805
+ name,
1806
+ parameters,
1807
+ returnType,
1808
+ statements,
1809
+ types: types_d_exports
1810
+ }: {
1811
+ accessLevel?: AccessLevel;
1812
+ comment?: Comments;
1813
+ isStatic?: boolean;
1814
+ multiLine?: boolean;
1815
+ name: string;
1816
+ parameters?: ReadonlyArray<FunctionParameter>;
1817
+ returnType?: string | typescript0.TypeNode;
1818
+ statements?: typescript0.Statement[];
1819
+ types?: FunctionTypeParameter[];
1820
+ }) => typescript0.MethodDeclaration;
1821
+ namedImportDeclarations: ({
1822
+ imports,
1823
+ module: module_d_exports
1824
+ }: {
1825
+ imports: Array<ImportExportItem> | ImportExportItem;
1826
+ module: string;
1827
+ }) => typescript0.ImportDeclaration;
1828
+ namespaceDeclaration: ({
1829
+ name,
1830
+ statements
1831
+ }: {
1832
+ name: string;
1833
+ statements: Array<typescript0.Statement>;
1834
+ }) => typescript0.ModuleDeclaration;
1835
+ newExpression: ({
1836
+ argumentsArray,
1837
+ expression,
1838
+ typeArguments
1839
+ }: {
1840
+ argumentsArray?: Array<typescript0.Expression>;
1841
+ expression: typescript0.Expression;
1842
+ typeArguments?: Array<typescript0.TypeNode>;
1843
+ }) => typescript0.NewExpression;
1844
+ nodeToString: typeof tsNodeToString;
1845
+ null: () => typescript0.NullLiteral;
1846
+ objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
1847
+ comments,
1848
+ identifiers,
1849
+ multiLine,
1850
+ obj,
1851
+ shorthand,
1852
+ unescape
1853
+ }: {
1854
+ comments?: Comments;
1855
+ identifiers?: string[];
1856
+ multiLine?: boolean;
1857
+ obj: T;
1858
+ shorthand?: boolean;
1859
+ unescape?: boolean;
1860
+ }) => typescript0.ObjectLiteralExpression;
1861
+ ots: {
1862
+ boolean: (value: boolean) => typescript0.TrueLiteral | typescript0.FalseLiteral;
1863
+ export: ({
1864
+ alias,
1865
+ asType,
1866
+ name
1867
+ }: ImportExportItemObject) => typescript0.ExportSpecifier;
1868
+ import: ({
1869
+ alias,
1870
+ asType,
1871
+ name
1872
+ }: ImportExportItemObject) => typescript0.ImportSpecifier;
1873
+ number: (value: number) => typescript0.NumericLiteral | typescript0.PrefixUnaryExpression;
1874
+ string: (value: string, unescape?: boolean) => typescript0.Identifier | typescript0.StringLiteral;
1875
+ };
1876
+ parameterDeclaration: ({
1877
+ initializer,
1878
+ modifiers,
1879
+ name,
1880
+ required,
1881
+ type
1882
+ }: {
1883
+ initializer?: typescript0.Expression;
1884
+ modifiers?: ReadonlyArray<typescript0.ModifierLike>;
1885
+ name: string | typescript0.BindingName;
1886
+ required?: boolean;
1887
+ type?: typescript0.TypeNode;
1888
+ }) => typescript0.ParameterDeclaration;
1889
+ propertyAccessExpression: ({
1890
+ expression,
1891
+ isOptional,
1892
+ name
1893
+ }: {
1894
+ expression: string | typescript0.Expression;
1895
+ isOptional?: boolean;
1896
+ name: string | number | typescript0.MemberName;
1897
+ }) => typescript0.PropertyAccessChain | typescript0.PropertyAccessExpression | typescript0.ElementAccessExpression;
1898
+ propertyAccessExpressions: ({
1899
+ expressions
1900
+ }: {
1901
+ expressions: Array<string | typescript0.Expression | typescript0.MemberName>;
1902
+ }) => typescript0.PropertyAccessExpression;
1903
+ propertyAssignment: ({
1904
+ initializer,
1905
+ name
1906
+ }: {
1907
+ initializer: typescript0.Expression;
1908
+ name: string | typescript0.PropertyName;
1909
+ }) => typescript0.PropertyAssignment;
1910
+ propertyDeclaration: ({
1911
+ initializer,
1912
+ modifier,
1913
+ name,
1914
+ type
1915
+ }: {
1916
+ initializer?: typescript0.Expression;
1917
+ modifier?: "async" | AccessLevel | "export" | "readonly" | "static";
1918
+ name: string | typescript0.PropertyName;
1919
+ type?: typescript0.TypeNode;
1920
+ }) => typescript0.PropertyDeclaration;
1921
+ regularExpressionLiteral: ({
1922
+ flags,
1923
+ text
1924
+ }: {
1925
+ flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
1926
+ text: string;
1927
+ }) => typescript0.RegularExpressionLiteral;
1928
+ returnFunctionCall: ({
1929
+ args,
1930
+ name,
1931
+ types: types_d_exports
1932
+ }: {
1933
+ args: any[];
1934
+ name: string | typescript0.Expression;
1935
+ types?: ReadonlyArray<string | typescript0.StringLiteral>;
1936
+ }) => typescript0.ReturnStatement;
1937
+ returnStatement: ({
1938
+ expression
1939
+ }: {
1940
+ expression?: typescript0.Expression;
1941
+ }) => typescript0.ReturnStatement;
1942
+ returnVariable: ({
1943
+ expression
1944
+ }: {
1945
+ expression: string | typescript0.Expression;
1946
+ }) => typescript0.ReturnStatement;
1947
+ safeAccessExpression: (path: string[]) => typescript0.Expression;
1948
+ stringLiteral: ({
1949
+ isSingleQuote,
1950
+ text
1951
+ }: {
1952
+ isSingleQuote?: boolean;
1953
+ text: string;
1954
+ }) => typescript0.StringLiteral;
1955
+ templateLiteralType: ({
1956
+ value
1957
+ }: {
1958
+ value: ReadonlyArray<string | typescript0.TypeNode>;
1959
+ }) => typescript0.TemplateLiteralTypeNode;
1960
+ this: () => typescript0.ThisExpression;
1961
+ transformArrayMap: ({
1962
+ path,
1963
+ transformExpression
1964
+ }: {
1965
+ path: string[];
1966
+ transformExpression: typescript0.Expression;
1967
+ }) => typescript0.IfStatement;
1968
+ transformArrayMutation: ({
1969
+ path,
1970
+ transformerName
1971
+ }: {
1972
+ path: string[];
1973
+ transformerName: string;
1974
+ }) => typescript0.Statement;
1975
+ transformDateMutation: ({
1976
+ path
1977
+ }: {
1978
+ path: string[];
1979
+ }) => typescript0.Statement;
1980
+ transformFunctionMutation: ({
1981
+ path,
1982
+ transformerName
1983
+ }: {
1984
+ path: string[];
1985
+ transformerName: string;
1986
+ }) => typescript0.IfStatement[];
1987
+ transformNewDate: ({
1988
+ parameterName
1989
+ }: {
1990
+ parameterName: string;
1991
+ }) => typescript0.NewExpression;
1992
+ typeAliasDeclaration: ({
1993
+ comment,
1994
+ exportType,
1995
+ name,
1996
+ type,
1997
+ typeParameters
1998
+ }: {
1999
+ comment?: Comments;
2000
+ exportType?: boolean;
2001
+ name: string | typescript0.TypeReferenceNode;
2002
+ type: string | typescript0.TypeNode | typescript0.Identifier;
2003
+ typeParameters?: FunctionTypeParameter[];
2004
+ }) => typescript0.TypeAliasDeclaration;
2005
+ typeArrayNode: (types: ReadonlyArray<any | typescript0.TypeNode> | typescript0.TypeNode | typescript0.Identifier | string, isNullable?: boolean) => typescript0.TypeNode;
2006
+ typeInterfaceNode: ({
2007
+ indexKey,
2008
+ indexProperty,
2009
+ isNullable,
2010
+ properties,
2011
+ useLegacyResolution
2012
+ }: {
2013
+ indexKey?: typescript0.TypeReferenceNode;
2014
+ indexProperty?: Property;
2015
+ isNullable?: boolean;
2016
+ properties: Property[];
2017
+ useLegacyResolution: boolean;
2018
+ }) => typescript0.TypeNode;
2019
+ typeIntersectionNode: ({
2020
+ isNullable,
2021
+ types: types_d_exports
2022
+ }: {
2023
+ isNullable?: boolean;
2024
+ types: (any | typescript0.TypeNode)[];
2025
+ }) => typescript0.TypeNode;
2026
+ typeNode: (base: any | typescript0.TypeNode, args?: (any | typescript0.TypeNode)[]) => typescript0.TypeNode;
2027
+ typeOfExpression: ({
2028
+ text
2029
+ }: {
2030
+ text: string | typescript0.Identifier;
2031
+ }) => typescript0.TypeOfExpression;
2032
+ typeOperatorNode: ({
2033
+ operator,
2034
+ type
2035
+ }: {
2036
+ operator: "keyof" | "readonly" | "unique";
2037
+ type: typescript0.TypeNode;
2038
+ }) => typescript0.TypeOperatorNode;
2039
+ typeParameterDeclaration: ({
2040
+ constraint,
2041
+ defaultType,
2042
+ modifiers,
2043
+ name
2044
+ }: {
2045
+ constraint?: typescript0.TypeNode;
2046
+ defaultType?: typescript0.TypeNode;
2047
+ modifiers?: Array<typescript0.Modifier>;
2048
+ name: string | typescript0.Identifier;
2049
+ }) => typescript0.TypeParameterDeclaration;
2050
+ typeParenthesizedNode: ({
2051
+ type
2052
+ }: {
2053
+ type: typescript0.TypeNode;
2054
+ }) => typescript0.ParenthesizedTypeNode;
2055
+ typeRecordNode: (keys: (any | typescript0.TypeNode)[], values: (any | typescript0.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript0.TypeNode;
2056
+ typeReferenceNode: ({
2057
+ typeArguments,
2058
+ typeName
2059
+ }: {
2060
+ typeArguments?: typescript0.TypeNode[];
2061
+ typeName: string | typescript0.EntityName;
2062
+ }) => typescript0.TypeReferenceNode;
2063
+ typeTupleNode: ({
2064
+ isNullable,
2065
+ types: types_d_exports
2066
+ }: {
2067
+ isNullable?: boolean;
2068
+ types: Array<any | typescript0.TypeNode>;
2069
+ }) => typescript0.TypeNode;
2070
+ typeUnionNode: ({
2071
+ isNullable,
2072
+ types: types_d_exports
2073
+ }: {
2074
+ isNullable?: boolean;
2075
+ types: ReadonlyArray<any | typescript0.TypeNode>;
2076
+ }) => typescript0.TypeNode;
2077
+ valueToExpression: <T = unknown>({
2078
+ identifiers,
2079
+ isValueAccess,
2080
+ shorthand,
2081
+ unescape,
2082
+ value
2083
+ }: {
2084
+ identifiers?: string[];
2085
+ isValueAccess?: boolean;
2086
+ shorthand?: boolean;
2087
+ unescape?: boolean;
2088
+ value: T;
2089
+ }) => typescript0.Expression | undefined;
2090
+ };
903
2091
  //#endregion
904
2092
  //#region src/utils/exports.d.ts
905
2093
  declare const utils: {
@@ -915,12 +2103,32 @@ declare const utils: {
915
2103
  };
916
2104
  //#endregion
917
2105
  //#region src/index.d.ts
918
- /**
919
- * Generate a client from the provided configuration.
920
- *
921
- * @param userConfig User provided {@link UserConfig} configuration(s).
922
- */
923
- declare const createClient: (userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger) => Promise<ReadonlyArray<Client$7 | IR.Context>>;
2106
+ declare module '@hey-api/codegen-core' {
2107
+ interface ProjectRenderMeta {
2108
+ /**
2109
+ * If specified, this will be the file extension used when importing
2110
+ * other modules. By default, we don't add a file extension and let the
2111
+ * runtime resolve it.
2112
+ *
2113
+ * @default null
2114
+ */
2115
+ importFileExtension?: (string & {}) | null;
2116
+ }
2117
+ interface SymbolMeta {
2118
+ /**
2119
+ * Path to the resource this symbol represents.
2120
+ */
2121
+ path?: ReadonlyArray<string | number>;
2122
+ /**
2123
+ * Name of the plugin that registered this symbol.
2124
+ */
2125
+ pluginName?: string;
2126
+ /**
2127
+ * Tags associated with this symbol.
2128
+ */
2129
+ tags?: Set<string>;
2130
+ }
2131
+ }
924
2132
  /**
925
2133
  * Type helper for openapi-ts.config.ts, returns {@link MaybeArray<UserConfig>} object(s)
926
2134
  */