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