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