@hey-api/openapi-ts 0.87.4 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/ofetch/client.ts +15 -2
- package/dist/{config-DHUTNwtw.d.ts → config-DCoXG8pO.d.ts} +2405 -1892
- package/dist/{config-CK1EGY2d.d.cts → config-DUT764Db.d.cts} +2479 -1966
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -1622
- package/dist/index.d.ts +2 -1620
- package/dist/index.js +1 -1
- package/dist/internal.cjs +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/dist/openApi-4Fl0M8gJ.js +17 -0
- package/dist/openApi-4Fl0M8gJ.js.map +1 -0
- package/dist/openApi-DGc8EfFq.cjs +17 -0
- package/dist/openApi-DGc8EfFq.cjs.map +1 -0
- package/dist/run.cjs +1 -1
- package/dist/run.cjs.map +1 -1
- package/dist/run.js +1 -1
- package/dist/run.js.map +1 -1
- package/dist/src-C88NdVoQ.js +11 -0
- package/dist/{src-D4L_i8zt.js.map → src-C88NdVoQ.js.map} +1 -1
- package/dist/src-D3LtFAXw.cjs +19 -0
- package/dist/{src-DmdEIcct.cjs.map → src-D3LtFAXw.cjs.map} +1 -1
- package/package.json +4 -4
- package/dist/chunk-C-EqMg7d.js +0 -1
- package/dist/openApi-BKUOqJVi.cjs +0 -19
- package/dist/openApi-BKUOqJVi.cjs.map +0 -1
- package/dist/openApi-QNcKaSPP.js +0 -19
- package/dist/openApi-QNcKaSPP.js.map +0 -1
- package/dist/src-D4L_i8zt.js +0 -11
- package/dist/src-DmdEIcct.cjs +0 -19
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as PluginHandler, D as MaybeArray, E as LazyOrAsync, S as Client$2, T as IR, _ as $, a as Plugin, b as TsDsl, c as OpenApiOperationObject, d as OpenApiResponseObject, f as OpenApiSchemaObject, g as ExpressionTransformer, h as TypeTransformer, i as DefinePlugin, l as OpenApiParameterObject, m as Logger, n as UserConfig, o as OpenApi, p as Context, s as OpenApiMetaObject, u as OpenApiRequestBodyObject, v as DollarTsDsl, w as StringCase, x as TypeTsDsl, y as MaybeTsDsl } from "./config-DUT764Db.cjs";
|
|
2
2
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
3
3
|
import { Injector } from "@angular/core";
|
|
4
4
|
import { AxiosError, AxiosInstance, AxiosRequestHeaders, AxiosResponse, AxiosStatic, CreateAxiosDefaults } from "axios";
|
|
5
5
|
import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsyncData, useLazyFetch } from "nuxt/app";
|
|
6
6
|
import { Ref } from "vue";
|
|
7
7
|
import { FetchOptions, ResponseType, ofetch } from "ofetch";
|
|
8
|
-
import * as typescript34 from "typescript";
|
|
9
|
-
import ts from "typescript";
|
|
10
8
|
|
|
11
|
-
//#region rolldown:runtime
|
|
12
|
-
//#endregion
|
|
13
9
|
//#region src/plugins/@hey-api/client-core/bundle/auth.d.ts
|
|
14
10
|
type AuthToken = string | undefined;
|
|
15
11
|
interface Auth {
|
|
@@ -919,1622 +915,6 @@ declare const definePluginConfig: <T extends Plugin.Types>(defaultConfig: Plugin
|
|
|
919
915
|
*/
|
|
920
916
|
name: any;
|
|
921
917
|
};
|
|
922
|
-
declare namespace types_d_exports {
|
|
923
|
-
export { AccessLevel, FunctionParameter, FunctionTypeParameter, ObjectValue, SyntaxKindKeyword, createAnonymousFunction, createArrayLiteralExpression, createArrowFunction, createAsExpression, createAssignment, createAwaitExpression, createBlock, createConditionalExpression, createEnumDeclaration, createForOfStatement, createFunctionTypeNode, createGetAccessorDeclaration, createIndexedAccessTypeNode, createKeywordTypeNode, createLiteralTypeNode, createMappedTypeNode, createNamespaceDeclaration, createNewExpression, createNull, createObjectType, createParameterDeclaration, createPropertyAccessChain, createPropertyAccessExpression, createPropertyAssignment, createRegularExpressionLiteral, createStringLiteral, createTemplateLiteralType, createTypeAliasDeclaration, createTypeNode, createTypeOfExpression, createTypeOperatorNode, createTypeParameterDeclaration, createTypeParenthesizedNode, createTypeReferenceNode, syntaxKindKeyword, toExpression, toParameterDeclarations, toTypeParameters };
|
|
924
|
-
}
|
|
925
|
-
type AccessLevel = 'private' | 'protected' | 'public';
|
|
926
|
-
type FunctionParameter = {
|
|
927
|
-
accessLevel?: AccessLevel;
|
|
928
|
-
default?: any;
|
|
929
|
-
isReadOnly?: boolean;
|
|
930
|
-
isRequired?: boolean;
|
|
931
|
-
name: string;
|
|
932
|
-
type?: any | ts.TypeNode;
|
|
933
|
-
} | {
|
|
934
|
-
destructure: ReadonlyArray<FunctionParameter>;
|
|
935
|
-
type?: any | ts.TypeNode;
|
|
936
|
-
};
|
|
937
|
-
interface FunctionTypeParameter {
|
|
938
|
-
default?: any;
|
|
939
|
-
extends?: string | ts.TypeNode;
|
|
940
|
-
name: string | ts.Identifier;
|
|
941
|
-
}
|
|
942
|
-
declare const createTypeNode: (base: any | ts.TypeNode, args?: (any | ts.TypeNode)[]) => ts.TypeNode;
|
|
943
|
-
declare const createPropertyAccessChain: ({
|
|
944
|
-
expression,
|
|
945
|
-
name
|
|
946
|
-
}: {
|
|
947
|
-
expression: ts.Expression;
|
|
948
|
-
name: string | ts.MemberName;
|
|
949
|
-
}) => ts.PropertyAccessChain;
|
|
950
|
-
declare const createPropertyAccessExpression: ({
|
|
951
|
-
expression,
|
|
952
|
-
isOptional,
|
|
953
|
-
name
|
|
954
|
-
}: {
|
|
955
|
-
expression: string | ts.Expression;
|
|
956
|
-
isOptional?: boolean;
|
|
957
|
-
name: string | number | ts.MemberName;
|
|
958
|
-
}) => ts.PropertyAccessChain | ts.PropertyAccessExpression | ts.ElementAccessExpression;
|
|
959
|
-
declare const createNull: () => ts.NullLiteral;
|
|
960
|
-
/**
|
|
961
|
-
* Convert an unknown value to an expression.
|
|
962
|
-
* @param identifiers - list of keys that are treated as identifiers.
|
|
963
|
-
* @param shorthand - if shorthand syntax is allowed.
|
|
964
|
-
* @param unescape - if string should be unescaped.
|
|
965
|
-
* @param value - the unknown value.
|
|
966
|
-
* @returns ts.Expression
|
|
967
|
-
*/
|
|
968
|
-
declare const toExpression: <T = unknown>({
|
|
969
|
-
identifiers,
|
|
970
|
-
isValueAccess,
|
|
971
|
-
shorthand,
|
|
972
|
-
unescape,
|
|
973
|
-
value
|
|
974
|
-
}: {
|
|
975
|
-
identifiers?: string[];
|
|
976
|
-
isValueAccess?: boolean;
|
|
977
|
-
shorthand?: boolean;
|
|
978
|
-
unescape?: boolean;
|
|
979
|
-
value: T;
|
|
980
|
-
}) => ts.Expression | undefined;
|
|
981
|
-
/**
|
|
982
|
-
* Convert parameters to the declaration array expected by TypeScript
|
|
983
|
-
* Compiler API.
|
|
984
|
-
* @param parameters - the parameters to convert to declarations
|
|
985
|
-
* @returns ts.ParameterDeclaration[]
|
|
986
|
-
*/
|
|
987
|
-
declare const toParameterDeclarations: (parameters: ReadonlyArray<FunctionParameter>) => ts.ParameterDeclaration[];
|
|
988
|
-
type SyntaxKindKeyword = 'any' | 'async' | 'boolean' | 'export' | 'never' | 'number' | 'private' | 'protected' | 'public' | 'readonly' | 'static' | 'string' | 'undefined' | 'unknown' | 'void';
|
|
989
|
-
declare const syntaxKindKeyword: <T extends SyntaxKindKeyword>({
|
|
990
|
-
keyword
|
|
991
|
-
}: {
|
|
992
|
-
keyword: T;
|
|
993
|
-
}) => T extends "protected" ? ts.SyntaxKind.ProtectedKeyword : T extends "public" ? ts.SyntaxKind.PublicKeyword : T extends "private" ? ts.SyntaxKind.PrivateKeyword : T extends "export" ? ts.SyntaxKind.ExportKeyword : T extends "async" ? ts.SyntaxKind.ExportKeyword : T extends "readonly" ? ts.SyntaxKind.ExportKeyword : T extends "static" ? ts.SyntaxKind.ExportKeyword : ts.SyntaxKind.AnyKeyword | ts.SyntaxKind.BooleanKeyword | ts.SyntaxKind.NeverKeyword | ts.SyntaxKind.NumberKeyword | ts.SyntaxKind.StringKeyword | ts.SyntaxKind.UndefinedKeyword | ts.SyntaxKind.UnknownKeyword | ts.SyntaxKind.VoidKeyword;
|
|
994
|
-
declare const createKeywordTypeNode: ({
|
|
995
|
-
keyword
|
|
996
|
-
}: {
|
|
997
|
-
keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
|
|
998
|
-
}) => ts.KeywordTypeNode<ts.SyntaxKind.VoidKeyword | ts.SyntaxKind.AnyKeyword | ts.SyntaxKind.BooleanKeyword | ts.SyntaxKind.NeverKeyword | ts.SyntaxKind.NumberKeyword | ts.SyntaxKind.StringKeyword | ts.SyntaxKind.UndefinedKeyword | ts.SyntaxKind.UnknownKeyword>;
|
|
999
|
-
declare const toTypeParameters: (types: (FunctionTypeParameter | ts.TypeParameterDeclaration)[]) => ts.TypeParameterDeclaration[];
|
|
1000
|
-
declare const createTypeOperatorNode: ({
|
|
1001
|
-
operator,
|
|
1002
|
-
type
|
|
1003
|
-
}: {
|
|
1004
|
-
operator: "keyof" | "readonly" | "unique";
|
|
1005
|
-
type: ts.TypeNode;
|
|
1006
|
-
}) => ts.TypeOperatorNode;
|
|
1007
|
-
declare const createTypeParameterDeclaration: ({
|
|
1008
|
-
constraint,
|
|
1009
|
-
defaultType,
|
|
1010
|
-
modifiers,
|
|
1011
|
-
name
|
|
1012
|
-
}: {
|
|
1013
|
-
constraint?: ts.TypeNode;
|
|
1014
|
-
defaultType?: ts.TypeNode;
|
|
1015
|
-
modifiers?: Array<ts.Modifier>;
|
|
1016
|
-
name: string | ts.Identifier;
|
|
1017
|
-
}) => ts.TypeParameterDeclaration;
|
|
1018
|
-
declare const createMappedTypeNode: ({
|
|
1019
|
-
members,
|
|
1020
|
-
nameType,
|
|
1021
|
-
questionToken,
|
|
1022
|
-
readonlyToken,
|
|
1023
|
-
type,
|
|
1024
|
-
typeParameter
|
|
1025
|
-
}: {
|
|
1026
|
-
members?: ts.NodeArray<ts.TypeElement>;
|
|
1027
|
-
nameType?: ts.TypeNode;
|
|
1028
|
-
questionToken?: ts.QuestionToken | ts.PlusToken | ts.MinusToken;
|
|
1029
|
-
readonlyToken?: ts.ReadonlyKeyword | ts.PlusToken | ts.MinusToken;
|
|
1030
|
-
type?: ts.TypeNode;
|
|
1031
|
-
typeParameter: ts.TypeParameterDeclaration;
|
|
1032
|
-
}) => ts.MappedTypeNode;
|
|
1033
|
-
declare const createLiteralTypeNode: ({
|
|
1034
|
-
literal
|
|
1035
|
-
}: {
|
|
1036
|
-
literal: ts.LiteralTypeNode["literal"];
|
|
1037
|
-
}) => ts.LiteralTypeNode;
|
|
1038
|
-
/**
|
|
1039
|
-
* Create arrow function type expression.
|
|
1040
|
-
*/
|
|
1041
|
-
declare const createArrowFunction: ({
|
|
1042
|
-
async,
|
|
1043
|
-
comment,
|
|
1044
|
-
multiLine,
|
|
1045
|
-
parameters,
|
|
1046
|
-
returnType,
|
|
1047
|
-
statements,
|
|
1048
|
-
types
|
|
1049
|
-
}: {
|
|
1050
|
-
async?: boolean;
|
|
1051
|
-
comment?: Comments;
|
|
1052
|
-
multiLine?: boolean;
|
|
1053
|
-
parameters?: ReadonlyArray<FunctionParameter>;
|
|
1054
|
-
returnType?: string | ts.TypeNode;
|
|
1055
|
-
statements?: ts.Statement[] | ts.Expression;
|
|
1056
|
-
types?: FunctionTypeParameter[];
|
|
1057
|
-
}) => ts.ArrowFunction;
|
|
1058
|
-
/**
|
|
1059
|
-
* Create anonymous function type expression.
|
|
1060
|
-
*/
|
|
1061
|
-
declare const createAnonymousFunction: ({
|
|
1062
|
-
async,
|
|
1063
|
-
comment,
|
|
1064
|
-
multiLine,
|
|
1065
|
-
parameters,
|
|
1066
|
-
returnType,
|
|
1067
|
-
statements,
|
|
1068
|
-
types
|
|
1069
|
-
}: {
|
|
1070
|
-
async?: boolean;
|
|
1071
|
-
comment?: Comments;
|
|
1072
|
-
multiLine?: boolean;
|
|
1073
|
-
parameters?: FunctionParameter[];
|
|
1074
|
-
returnType?: string | ts.TypeNode;
|
|
1075
|
-
statements?: ReadonlyArray<ts.Statement>;
|
|
1076
|
-
types?: FunctionTypeParameter[];
|
|
1077
|
-
}) => ts.FunctionExpression;
|
|
1078
|
-
/**
|
|
1079
|
-
* Create Array type expression.
|
|
1080
|
-
*/
|
|
1081
|
-
declare const createArrayLiteralExpression: <T>({
|
|
1082
|
-
elements,
|
|
1083
|
-
multiLine
|
|
1084
|
-
}: {
|
|
1085
|
-
/**
|
|
1086
|
-
* The array to create.
|
|
1087
|
-
*/
|
|
1088
|
-
elements: T[];
|
|
1089
|
-
/**
|
|
1090
|
-
* Should the array be multi line?
|
|
1091
|
-
*
|
|
1092
|
-
* @default false
|
|
1093
|
-
*/
|
|
1094
|
-
multiLine?: boolean;
|
|
1095
|
-
}) => ts.ArrayLiteralExpression;
|
|
1096
|
-
declare const createAwaitExpression: ({
|
|
1097
|
-
expression
|
|
1098
|
-
}: {
|
|
1099
|
-
expression: ts.Expression;
|
|
1100
|
-
}) => ts.AwaitExpression;
|
|
1101
|
-
declare const createFunctionTypeNode: ({
|
|
1102
|
-
parameters,
|
|
1103
|
-
returnType,
|
|
1104
|
-
typeParameters
|
|
1105
|
-
}: {
|
|
1106
|
-
parameters?: ts.ParameterDeclaration[];
|
|
1107
|
-
returnType: ts.TypeNode;
|
|
1108
|
-
typeParameters?: ts.TypeParameterDeclaration[];
|
|
1109
|
-
}) => ts.FunctionTypeNode;
|
|
1110
|
-
type ObjectValue = {
|
|
1111
|
-
assertion?: 'any' | ts.TypeNode;
|
|
1112
|
-
comments?: Comments;
|
|
1113
|
-
spread: string;
|
|
1114
|
-
} | {
|
|
1115
|
-
comments?: Comments;
|
|
1116
|
-
isValueAccess?: boolean;
|
|
1117
|
-
key: string;
|
|
1118
|
-
shorthand?: boolean;
|
|
1119
|
-
value: any;
|
|
1120
|
-
};
|
|
1121
|
-
/**
|
|
1122
|
-
* Create Object type expression.
|
|
1123
|
-
* @param comments - comments to add to each property.
|
|
1124
|
-
* @param identifier - keys that should be treated as identifiers.
|
|
1125
|
-
* @param multiLine - if the object should be multiline.
|
|
1126
|
-
* @param obj - the object to create expression with.
|
|
1127
|
-
* @param shorthand - if shorthand syntax should be used.
|
|
1128
|
-
* @param unescape - if properties strings should be unescaped.
|
|
1129
|
-
* @returns ts.ObjectLiteralExpression
|
|
1130
|
-
*/
|
|
1131
|
-
declare const createObjectType: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
1132
|
-
comments,
|
|
1133
|
-
identifiers,
|
|
1134
|
-
multiLine,
|
|
1135
|
-
obj,
|
|
1136
|
-
shorthand,
|
|
1137
|
-
unescape
|
|
1138
|
-
}: {
|
|
1139
|
-
comments?: Comments;
|
|
1140
|
-
identifiers?: string[];
|
|
1141
|
-
multiLine?: boolean;
|
|
1142
|
-
obj: T;
|
|
1143
|
-
shorthand?: boolean;
|
|
1144
|
-
unescape?: boolean;
|
|
1145
|
-
}) => ts.ObjectLiteralExpression;
|
|
1146
|
-
/**
|
|
1147
|
-
* Create enum declaration. Example `export enum T = { X, Y };`
|
|
1148
|
-
* @param asConst - whether to use const enums.
|
|
1149
|
-
* @param comments - comments to add to each property.
|
|
1150
|
-
* @param leadingComment - leading comment to add to enum.
|
|
1151
|
-
* @param name - the name of the enum.
|
|
1152
|
-
* @param obj - the object representing the enum.
|
|
1153
|
-
* @returns ts.EnumDeclaration
|
|
1154
|
-
*/
|
|
1155
|
-
declare const createEnumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
1156
|
-
asConst,
|
|
1157
|
-
comments: enumMemberComments,
|
|
1158
|
-
leadingComment: comments,
|
|
1159
|
-
name,
|
|
1160
|
-
obj
|
|
1161
|
-
}: {
|
|
1162
|
-
asConst: boolean;
|
|
1163
|
-
comments?: Record<string | number, Comments>;
|
|
1164
|
-
leadingComment?: Comments;
|
|
1165
|
-
name: string | ts.TypeReferenceNode;
|
|
1166
|
-
obj: T;
|
|
1167
|
-
}) => ts.EnumDeclaration;
|
|
1168
|
-
/**
|
|
1169
|
-
* Create namespace declaration. Example `export namespace MyNamespace { ... }`
|
|
1170
|
-
* @param name - the name of the namespace.
|
|
1171
|
-
* @param nodes - the nodes in the namespace.
|
|
1172
|
-
* @returns
|
|
1173
|
-
*/
|
|
1174
|
-
declare const createNamespaceDeclaration: ({
|
|
1175
|
-
name,
|
|
1176
|
-
statements
|
|
1177
|
-
}: {
|
|
1178
|
-
name: string;
|
|
1179
|
-
statements: Array<ts.Statement>;
|
|
1180
|
-
}) => ts.ModuleDeclaration;
|
|
1181
|
-
declare const createIndexedAccessTypeNode: ({
|
|
1182
|
-
indexType,
|
|
1183
|
-
objectType
|
|
1184
|
-
}: {
|
|
1185
|
-
indexType: ts.TypeNode;
|
|
1186
|
-
objectType: ts.TypeNode;
|
|
1187
|
-
}) => ts.IndexedAccessTypeNode;
|
|
1188
|
-
declare const createGetAccessorDeclaration: ({
|
|
1189
|
-
modifiers,
|
|
1190
|
-
name,
|
|
1191
|
-
returnType,
|
|
1192
|
-
statements
|
|
1193
|
-
}: {
|
|
1194
|
-
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
1195
|
-
name: string | ts.PropertyName;
|
|
1196
|
-
returnType?: string | ts.Identifier;
|
|
1197
|
-
statements: ReadonlyArray<ts.Statement>;
|
|
1198
|
-
}) => ts.GetAccessorDeclaration;
|
|
1199
|
-
declare const createStringLiteral: ({
|
|
1200
|
-
isSingleQuote,
|
|
1201
|
-
text
|
|
1202
|
-
}: {
|
|
1203
|
-
isSingleQuote?: boolean;
|
|
1204
|
-
text: string;
|
|
1205
|
-
}) => ts.StringLiteral;
|
|
1206
|
-
declare const createConditionalExpression: ({
|
|
1207
|
-
condition,
|
|
1208
|
-
whenFalse,
|
|
1209
|
-
whenTrue
|
|
1210
|
-
}: {
|
|
1211
|
-
condition: ts.Expression;
|
|
1212
|
-
whenFalse: ts.Expression;
|
|
1213
|
-
whenTrue: ts.Expression;
|
|
1214
|
-
}) => ts.ConditionalExpression;
|
|
1215
|
-
declare const createTypeOfExpression: ({
|
|
1216
|
-
text
|
|
1217
|
-
}: {
|
|
1218
|
-
text: string | ts.Identifier;
|
|
1219
|
-
}) => ts.TypeOfExpression;
|
|
1220
|
-
/**
|
|
1221
|
-
* Create a type alias declaration. Example `export type X = Y;`.
|
|
1222
|
-
* @param comment (optional) comments to add
|
|
1223
|
-
* @param name the name of the type
|
|
1224
|
-
* @param type the type
|
|
1225
|
-
* @returns ts.TypeAliasDeclaration
|
|
1226
|
-
*/
|
|
1227
|
-
declare const createTypeAliasDeclaration: ({
|
|
1228
|
-
comment,
|
|
1229
|
-
exportType,
|
|
1230
|
-
name,
|
|
1231
|
-
type,
|
|
1232
|
-
typeParameters
|
|
1233
|
-
}: {
|
|
1234
|
-
comment?: Comments;
|
|
1235
|
-
exportType?: boolean;
|
|
1236
|
-
name: string | ts.TypeReferenceNode;
|
|
1237
|
-
type: string | ts.TypeNode | ts.Identifier;
|
|
1238
|
-
typeParameters?: FunctionTypeParameter[];
|
|
1239
|
-
}) => ts.TypeAliasDeclaration;
|
|
1240
|
-
declare const createTypeReferenceNode: ({
|
|
1241
|
-
typeArguments,
|
|
1242
|
-
typeName
|
|
1243
|
-
}: {
|
|
1244
|
-
typeArguments?: ts.TypeNode[];
|
|
1245
|
-
typeName: string | ts.EntityName;
|
|
1246
|
-
}) => ts.TypeReferenceNode;
|
|
1247
|
-
declare const createTypeParenthesizedNode: ({
|
|
1248
|
-
type
|
|
1249
|
-
}: {
|
|
1250
|
-
type: ts.TypeNode;
|
|
1251
|
-
}) => ts.ParenthesizedTypeNode;
|
|
1252
|
-
declare const createParameterDeclaration: ({
|
|
1253
|
-
initializer,
|
|
1254
|
-
modifiers,
|
|
1255
|
-
name,
|
|
1256
|
-
required,
|
|
1257
|
-
type
|
|
1258
|
-
}: {
|
|
1259
|
-
initializer?: ts.Expression;
|
|
1260
|
-
modifiers?: ReadonlyArray<ts.ModifierLike>;
|
|
1261
|
-
name: string | ts.BindingName;
|
|
1262
|
-
required?: boolean;
|
|
1263
|
-
type?: ts.TypeNode;
|
|
1264
|
-
}) => ts.ParameterDeclaration;
|
|
1265
|
-
declare const createNewExpression: ({
|
|
1266
|
-
argumentsArray,
|
|
1267
|
-
expression,
|
|
1268
|
-
typeArguments
|
|
1269
|
-
}: {
|
|
1270
|
-
argumentsArray?: Array<ts.Expression>;
|
|
1271
|
-
expression: ts.Expression;
|
|
1272
|
-
typeArguments?: Array<ts.TypeNode>;
|
|
1273
|
-
}) => ts.NewExpression;
|
|
1274
|
-
declare const createForOfStatement: ({
|
|
1275
|
-
awaitModifier,
|
|
1276
|
-
expression,
|
|
1277
|
-
initializer,
|
|
1278
|
-
statement
|
|
1279
|
-
}: {
|
|
1280
|
-
awaitModifier?: ts.AwaitKeyword;
|
|
1281
|
-
expression: ts.Expression;
|
|
1282
|
-
initializer: ts.ForInitializer;
|
|
1283
|
-
statement: ts.Statement;
|
|
1284
|
-
}) => ts.ForOfStatement;
|
|
1285
|
-
declare const createAssignment: ({
|
|
1286
|
-
left,
|
|
1287
|
-
right
|
|
1288
|
-
}: {
|
|
1289
|
-
left: ts.Expression;
|
|
1290
|
-
right: ts.Expression;
|
|
1291
|
-
}) => ts.AssignmentExpression<ts.EqualsToken>;
|
|
1292
|
-
declare const createBlock: ({
|
|
1293
|
-
multiLine,
|
|
1294
|
-
statements
|
|
1295
|
-
}: {
|
|
1296
|
-
multiLine?: boolean;
|
|
1297
|
-
statements: ReadonlyArray<ts.Statement>;
|
|
1298
|
-
}) => ts.Block;
|
|
1299
|
-
declare const createPropertyAssignment: ({
|
|
1300
|
-
initializer,
|
|
1301
|
-
name
|
|
1302
|
-
}: {
|
|
1303
|
-
initializer: ts.Expression;
|
|
1304
|
-
name: string | ts.PropertyName;
|
|
1305
|
-
}) => ts.PropertyAssignment;
|
|
1306
|
-
declare const createRegularExpressionLiteral: ({
|
|
1307
|
-
flags,
|
|
1308
|
-
text
|
|
1309
|
-
}: {
|
|
1310
|
-
flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
|
|
1311
|
-
text: string;
|
|
1312
|
-
}) => ts.RegularExpressionLiteral;
|
|
1313
|
-
declare const createAsExpression: ({
|
|
1314
|
-
expression,
|
|
1315
|
-
type
|
|
1316
|
-
}: {
|
|
1317
|
-
expression: ts.Expression;
|
|
1318
|
-
type: ts.TypeNode;
|
|
1319
|
-
}) => ts.AsExpression;
|
|
1320
|
-
declare const createTemplateLiteralType: ({
|
|
1321
|
-
value
|
|
1322
|
-
}: {
|
|
1323
|
-
value: ReadonlyArray<string | ts.TypeNode>;
|
|
1324
|
-
}) => ts.TemplateLiteralTypeNode;
|
|
1325
|
-
//#endregion
|
|
1326
|
-
//#region src/tsc/utils.d.ts
|
|
1327
|
-
interface ImportExportItemObject<Name extends string | undefined = string | undefined, Alias extends string | undefined = undefined> {
|
|
1328
|
-
alias?: Alias;
|
|
1329
|
-
asType?: boolean;
|
|
1330
|
-
name: Name;
|
|
1331
|
-
}
|
|
1332
|
-
/**
|
|
1333
|
-
* Print a TypeScript node to a string.
|
|
1334
|
-
* @param node the node to print
|
|
1335
|
-
* @returns string
|
|
1336
|
-
*/
|
|
1337
|
-
declare function tsNodeToString({
|
|
1338
|
-
node,
|
|
1339
|
-
unescape
|
|
1340
|
-
}: {
|
|
1341
|
-
node: ts.Node;
|
|
1342
|
-
unescape?: boolean;
|
|
1343
|
-
}): string;
|
|
1344
|
-
type Modifier = AccessLevel | 'async' | 'export' | 'readonly' | 'static';
|
|
1345
|
-
type CommentLines = Array<string | null | false | undefined>;
|
|
1346
|
-
type CommentObject = {
|
|
1347
|
-
jsdoc?: boolean;
|
|
1348
|
-
lines: CommentLines;
|
|
1349
|
-
};
|
|
1350
|
-
type Comments = CommentLines | Array<CommentObject>;
|
|
1351
|
-
declare namespace module_d_exports {
|
|
1352
|
-
export { ImportExportItem, createCallExpression, createConstVariable, createExportAllDeclaration, createNamedExportDeclarations, createNamedImportDeclarations };
|
|
1353
|
-
}
|
|
1354
|
-
/**
|
|
1355
|
-
* Create export all declaration. Example: `export * from './y'`.
|
|
1356
|
-
* @param module - module containing exports
|
|
1357
|
-
* @returns ts.ExportDeclaration
|
|
1358
|
-
*/
|
|
1359
|
-
declare const createExportAllDeclaration: ({
|
|
1360
|
-
module,
|
|
1361
|
-
shouldAppendJs
|
|
1362
|
-
}: {
|
|
1363
|
-
module: string;
|
|
1364
|
-
shouldAppendJs?: boolean;
|
|
1365
|
-
}) => ts.ExportDeclaration;
|
|
1366
|
-
type ImportExportItem = ImportExportItemObject | string;
|
|
1367
|
-
declare const createCallExpression: ({
|
|
1368
|
-
functionName,
|
|
1369
|
-
parameters,
|
|
1370
|
-
types
|
|
1371
|
-
}: {
|
|
1372
|
-
functionName: string | ts.PropertyAccessExpression | ts.PropertyAccessChain | ts.ElementAccessExpression | ts.Expression;
|
|
1373
|
-
parameters?: Array<string | ts.Expression | undefined>;
|
|
1374
|
-
types?: ReadonlyArray<ts.TypeNode>;
|
|
1375
|
-
}) => ts.CallExpression;
|
|
1376
|
-
/**
|
|
1377
|
-
* Create a named export declaration. Example: `export { X } from './y'`.
|
|
1378
|
-
* @param exports - named imports to export
|
|
1379
|
-
* @param module - module containing exports
|
|
1380
|
-
* @returns ts.ExportDeclaration
|
|
1381
|
-
*/
|
|
1382
|
-
declare const createNamedExportDeclarations: ({
|
|
1383
|
-
exports,
|
|
1384
|
-
module
|
|
1385
|
-
}: {
|
|
1386
|
-
exports: Array<ImportExportItem> | ImportExportItem;
|
|
1387
|
-
module: string;
|
|
1388
|
-
}) => ts.ExportDeclaration;
|
|
1389
|
-
/**
|
|
1390
|
-
* Create a const variable. Optionally, it can use const assertion or export
|
|
1391
|
-
* statement. Example: `export x = {} as const`.
|
|
1392
|
-
* @param assertion use const assertion?
|
|
1393
|
-
* @param exportConst export created variable?
|
|
1394
|
-
* @param expression expression for the variable.
|
|
1395
|
-
* @param name name of the variable.
|
|
1396
|
-
* @returns ts.VariableStatement
|
|
1397
|
-
*/
|
|
1398
|
-
declare const createConstVariable: ({
|
|
1399
|
-
assertion,
|
|
1400
|
-
comment,
|
|
1401
|
-
destructure,
|
|
1402
|
-
exportConst,
|
|
1403
|
-
expression,
|
|
1404
|
-
name,
|
|
1405
|
-
typeName
|
|
1406
|
-
}: {
|
|
1407
|
-
assertion?: "const" | ts.TypeNode;
|
|
1408
|
-
comment?: Comments;
|
|
1409
|
-
destructure?: boolean;
|
|
1410
|
-
exportConst?: boolean;
|
|
1411
|
-
expression: ts.Expression;
|
|
1412
|
-
name: string | ts.TypeReferenceNode;
|
|
1413
|
-
typeName?: string | ts.IndexedAccessTypeNode | ts.TypeNode;
|
|
1414
|
-
}) => ts.VariableStatement;
|
|
1415
|
-
/**
|
|
1416
|
-
* Create a named import declaration. Example: `import { X } from './y'`.
|
|
1417
|
-
* @param imports - named exports to import
|
|
1418
|
-
* @param module - module containing imports
|
|
1419
|
-
* @returns ts.ImportDeclaration
|
|
1420
|
-
*/
|
|
1421
|
-
declare const createNamedImportDeclarations: ({
|
|
1422
|
-
imports,
|
|
1423
|
-
module
|
|
1424
|
-
}: {
|
|
1425
|
-
imports: Array<ImportExportItem> | ImportExportItem;
|
|
1426
|
-
module: string;
|
|
1427
|
-
}) => ts.ImportDeclaration;
|
|
1428
|
-
//#endregion
|
|
1429
|
-
//#region src/tsc/typedef.d.ts
|
|
1430
|
-
type Property = {
|
|
1431
|
-
comment?: Comments;
|
|
1432
|
-
isReadOnly?: boolean;
|
|
1433
|
-
isRequired?: boolean;
|
|
1434
|
-
name: string | ts.PropertyName;
|
|
1435
|
-
type: any | ts.TypeNode;
|
|
1436
|
-
};
|
|
1437
|
-
//#endregion
|
|
1438
|
-
//#region src/tsc/index.d.ts
|
|
1439
|
-
declare const tsc: {
|
|
1440
|
-
anonymousFunction: ({
|
|
1441
|
-
async,
|
|
1442
|
-
comment,
|
|
1443
|
-
multiLine,
|
|
1444
|
-
parameters,
|
|
1445
|
-
returnType,
|
|
1446
|
-
statements,
|
|
1447
|
-
types: types_d_exports
|
|
1448
|
-
}: {
|
|
1449
|
-
async?: boolean;
|
|
1450
|
-
comment?: Comments;
|
|
1451
|
-
multiLine?: boolean;
|
|
1452
|
-
parameters?: FunctionParameter[];
|
|
1453
|
-
returnType?: string | typescript34.TypeNode;
|
|
1454
|
-
statements?: ReadonlyArray<typescript34.Statement>;
|
|
1455
|
-
types?: FunctionTypeParameter[];
|
|
1456
|
-
}) => typescript34.FunctionExpression;
|
|
1457
|
-
arrayLiteralExpression: <T>({
|
|
1458
|
-
elements,
|
|
1459
|
-
multiLine
|
|
1460
|
-
}: {
|
|
1461
|
-
elements: T[];
|
|
1462
|
-
multiLine?: boolean;
|
|
1463
|
-
}) => typescript34.ArrayLiteralExpression;
|
|
1464
|
-
arrowFunction: ({
|
|
1465
|
-
async,
|
|
1466
|
-
comment,
|
|
1467
|
-
multiLine,
|
|
1468
|
-
parameters,
|
|
1469
|
-
returnType,
|
|
1470
|
-
statements,
|
|
1471
|
-
types: types_d_exports
|
|
1472
|
-
}: {
|
|
1473
|
-
async?: boolean;
|
|
1474
|
-
comment?: Comments;
|
|
1475
|
-
multiLine?: boolean;
|
|
1476
|
-
parameters?: ReadonlyArray<FunctionParameter>;
|
|
1477
|
-
returnType?: string | typescript34.TypeNode;
|
|
1478
|
-
statements?: typescript34.Statement[] | typescript34.Expression;
|
|
1479
|
-
types?: FunctionTypeParameter[];
|
|
1480
|
-
}) => typescript34.ArrowFunction;
|
|
1481
|
-
asExpression: ({
|
|
1482
|
-
expression,
|
|
1483
|
-
type
|
|
1484
|
-
}: {
|
|
1485
|
-
expression: typescript34.Expression;
|
|
1486
|
-
type: typescript34.TypeNode;
|
|
1487
|
-
}) => typescript34.AsExpression;
|
|
1488
|
-
assignment: ({
|
|
1489
|
-
left,
|
|
1490
|
-
right
|
|
1491
|
-
}: {
|
|
1492
|
-
left: typescript34.Expression;
|
|
1493
|
-
right: typescript34.Expression;
|
|
1494
|
-
}) => typescript34.AssignmentExpression<typescript34.EqualsToken>;
|
|
1495
|
-
awaitExpression: ({
|
|
1496
|
-
expression
|
|
1497
|
-
}: {
|
|
1498
|
-
expression: typescript34.Expression;
|
|
1499
|
-
}) => typescript34.AwaitExpression;
|
|
1500
|
-
binaryExpression: ({
|
|
1501
|
-
left,
|
|
1502
|
-
operator,
|
|
1503
|
-
right
|
|
1504
|
-
}: {
|
|
1505
|
-
left: typescript34.Expression;
|
|
1506
|
-
operator?: "=" | "===" | "!==" | "in" | "??";
|
|
1507
|
-
right: typescript34.Expression | string;
|
|
1508
|
-
}) => typescript34.BinaryExpression;
|
|
1509
|
-
block: ({
|
|
1510
|
-
multiLine,
|
|
1511
|
-
statements
|
|
1512
|
-
}: {
|
|
1513
|
-
multiLine?: boolean;
|
|
1514
|
-
statements: ReadonlyArray<typescript34.Statement>;
|
|
1515
|
-
}) => typescript34.Block;
|
|
1516
|
-
callExpression: ({
|
|
1517
|
-
functionName,
|
|
1518
|
-
parameters,
|
|
1519
|
-
types: types_d_exports
|
|
1520
|
-
}: {
|
|
1521
|
-
functionName: string | typescript34.PropertyAccessExpression | typescript34.PropertyAccessChain | typescript34.ElementAccessExpression | typescript34.Expression;
|
|
1522
|
-
parameters?: Array<string | typescript34.Expression | undefined>;
|
|
1523
|
-
types?: ReadonlyArray<typescript34.TypeNode>;
|
|
1524
|
-
}) => typescript34.CallExpression;
|
|
1525
|
-
classDeclaration: ({
|
|
1526
|
-
decorator,
|
|
1527
|
-
exportClass,
|
|
1528
|
-
extendedClasses,
|
|
1529
|
-
name,
|
|
1530
|
-
nodes,
|
|
1531
|
-
typeParameters
|
|
1532
|
-
}: {
|
|
1533
|
-
decorator?: {
|
|
1534
|
-
args: any[];
|
|
1535
|
-
name: string;
|
|
1536
|
-
};
|
|
1537
|
-
exportClass?: boolean;
|
|
1538
|
-
extendedClasses?: ReadonlyArray<string>;
|
|
1539
|
-
name: string;
|
|
1540
|
-
nodes: ReadonlyArray<typescript34.ClassElement>;
|
|
1541
|
-
typeParameters?: ReadonlyArray<typescript34.TypeParameterDeclaration>;
|
|
1542
|
-
}) => typescript34.ClassDeclaration;
|
|
1543
|
-
conditionalExpression: ({
|
|
1544
|
-
condition,
|
|
1545
|
-
whenFalse,
|
|
1546
|
-
whenTrue
|
|
1547
|
-
}: {
|
|
1548
|
-
condition: typescript34.Expression;
|
|
1549
|
-
whenFalse: typescript34.Expression;
|
|
1550
|
-
whenTrue: typescript34.Expression;
|
|
1551
|
-
}) => typescript34.ConditionalExpression;
|
|
1552
|
-
constVariable: ({
|
|
1553
|
-
assertion,
|
|
1554
|
-
comment,
|
|
1555
|
-
destructure,
|
|
1556
|
-
exportConst,
|
|
1557
|
-
expression,
|
|
1558
|
-
name,
|
|
1559
|
-
typeName
|
|
1560
|
-
}: {
|
|
1561
|
-
assertion?: "const" | typescript34.TypeNode;
|
|
1562
|
-
comment?: Comments;
|
|
1563
|
-
destructure?: boolean;
|
|
1564
|
-
exportConst?: boolean;
|
|
1565
|
-
expression: typescript34.Expression;
|
|
1566
|
-
name: string | typescript34.TypeReferenceNode;
|
|
1567
|
-
typeName?: string | typescript34.IndexedAccessTypeNode | typescript34.TypeNode;
|
|
1568
|
-
}) => typescript34.VariableStatement;
|
|
1569
|
-
constructorDeclaration: ({
|
|
1570
|
-
accessLevel,
|
|
1571
|
-
comment,
|
|
1572
|
-
multiLine,
|
|
1573
|
-
parameters,
|
|
1574
|
-
statements
|
|
1575
|
-
}: {
|
|
1576
|
-
accessLevel?: AccessLevel;
|
|
1577
|
-
comment?: Comments;
|
|
1578
|
-
multiLine?: boolean;
|
|
1579
|
-
parameters?: FunctionParameter[];
|
|
1580
|
-
statements?: typescript34.Statement[];
|
|
1581
|
-
}) => typescript34.ConstructorDeclaration;
|
|
1582
|
-
enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
1583
|
-
asConst,
|
|
1584
|
-
comments: enumMemberComments,
|
|
1585
|
-
leadingComment: comments,
|
|
1586
|
-
name,
|
|
1587
|
-
obj
|
|
1588
|
-
}: {
|
|
1589
|
-
asConst: boolean;
|
|
1590
|
-
comments?: Record<string | number, Comments>;
|
|
1591
|
-
leadingComment?: Comments;
|
|
1592
|
-
name: string | typescript34.TypeReferenceNode;
|
|
1593
|
-
obj: T;
|
|
1594
|
-
}) => typescript34.EnumDeclaration;
|
|
1595
|
-
exportAllDeclaration: ({
|
|
1596
|
-
module: module_d_exports,
|
|
1597
|
-
shouldAppendJs
|
|
1598
|
-
}: {
|
|
1599
|
-
module: string;
|
|
1600
|
-
shouldAppendJs?: boolean;
|
|
1601
|
-
}) => typescript34.ExportDeclaration;
|
|
1602
|
-
exportNamedDeclaration: ({
|
|
1603
|
-
exports,
|
|
1604
|
-
module: module_d_exports
|
|
1605
|
-
}: {
|
|
1606
|
-
exports: Array<ImportExportItem> | ImportExportItem;
|
|
1607
|
-
module: string;
|
|
1608
|
-
}) => typescript34.ExportDeclaration;
|
|
1609
|
-
expressionToStatement: ({
|
|
1610
|
-
expression
|
|
1611
|
-
}: {
|
|
1612
|
-
expression: typescript34.Expression;
|
|
1613
|
-
}) => typescript34.ExpressionStatement;
|
|
1614
|
-
forOfStatement: ({
|
|
1615
|
-
awaitModifier,
|
|
1616
|
-
expression,
|
|
1617
|
-
initializer,
|
|
1618
|
-
statement
|
|
1619
|
-
}: {
|
|
1620
|
-
awaitModifier?: typescript34.AwaitKeyword;
|
|
1621
|
-
expression: typescript34.Expression;
|
|
1622
|
-
initializer: typescript34.ForInitializer;
|
|
1623
|
-
statement: typescript34.Statement;
|
|
1624
|
-
}) => typescript34.ForOfStatement;
|
|
1625
|
-
functionTypeNode: ({
|
|
1626
|
-
parameters,
|
|
1627
|
-
returnType,
|
|
1628
|
-
typeParameters
|
|
1629
|
-
}: {
|
|
1630
|
-
parameters?: typescript34.ParameterDeclaration[];
|
|
1631
|
-
returnType: typescript34.TypeNode;
|
|
1632
|
-
typeParameters?: typescript34.TypeParameterDeclaration[];
|
|
1633
|
-
}) => typescript34.FunctionTypeNode;
|
|
1634
|
-
getAccessorDeclaration: ({
|
|
1635
|
-
modifiers,
|
|
1636
|
-
name,
|
|
1637
|
-
returnType,
|
|
1638
|
-
statements
|
|
1639
|
-
}: {
|
|
1640
|
-
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
1641
|
-
name: string | typescript34.PropertyName;
|
|
1642
|
-
returnType?: string | typescript34.Identifier;
|
|
1643
|
-
statements: ReadonlyArray<typescript34.Statement>;
|
|
1644
|
-
}) => typescript34.GetAccessorDeclaration;
|
|
1645
|
-
identifier: (args: string | {
|
|
1646
|
-
text: string;
|
|
1647
|
-
}) => typescript34.Identifier;
|
|
1648
|
-
ifStatement: ({
|
|
1649
|
-
elseStatement,
|
|
1650
|
-
expression,
|
|
1651
|
-
thenStatement
|
|
1652
|
-
}: {
|
|
1653
|
-
elseStatement?: typescript34.Statement;
|
|
1654
|
-
expression: typescript34.Expression;
|
|
1655
|
-
thenStatement: typescript34.Statement;
|
|
1656
|
-
}) => typescript34.IfStatement;
|
|
1657
|
-
indexedAccessTypeNode: ({
|
|
1658
|
-
indexType,
|
|
1659
|
-
objectType
|
|
1660
|
-
}: {
|
|
1661
|
-
indexType: typescript34.TypeNode;
|
|
1662
|
-
objectType: typescript34.TypeNode;
|
|
1663
|
-
}) => typescript34.IndexedAccessTypeNode;
|
|
1664
|
-
isTsNode: (node: any) => node is typescript34.Expression;
|
|
1665
|
-
keywordTypeNode: ({
|
|
1666
|
-
keyword
|
|
1667
|
-
}: {
|
|
1668
|
-
keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
|
|
1669
|
-
}) => typescript34.KeywordTypeNode<typescript34.SyntaxKind.VoidKeyword | typescript34.SyntaxKind.AnyKeyword | typescript34.SyntaxKind.BooleanKeyword | typescript34.SyntaxKind.NeverKeyword | typescript34.SyntaxKind.NumberKeyword | typescript34.SyntaxKind.StringKeyword | typescript34.SyntaxKind.UndefinedKeyword | typescript34.SyntaxKind.UnknownKeyword>;
|
|
1670
|
-
literalTypeNode: ({
|
|
1671
|
-
literal
|
|
1672
|
-
}: {
|
|
1673
|
-
literal: typescript34.LiteralTypeNode["literal"];
|
|
1674
|
-
}) => typescript34.LiteralTypeNode;
|
|
1675
|
-
mappedTypeNode: ({
|
|
1676
|
-
members,
|
|
1677
|
-
nameType,
|
|
1678
|
-
questionToken,
|
|
1679
|
-
readonlyToken,
|
|
1680
|
-
type,
|
|
1681
|
-
typeParameter
|
|
1682
|
-
}: {
|
|
1683
|
-
members?: typescript34.NodeArray<typescript34.TypeElement>;
|
|
1684
|
-
nameType?: typescript34.TypeNode;
|
|
1685
|
-
questionToken?: typescript34.QuestionToken | typescript34.PlusToken | typescript34.MinusToken;
|
|
1686
|
-
readonlyToken?: typescript34.ReadonlyKeyword | typescript34.PlusToken | typescript34.MinusToken;
|
|
1687
|
-
type?: typescript34.TypeNode;
|
|
1688
|
-
typeParameter: typescript34.TypeParameterDeclaration;
|
|
1689
|
-
}) => typescript34.MappedTypeNode;
|
|
1690
|
-
methodDeclaration: ({
|
|
1691
|
-
accessLevel,
|
|
1692
|
-
comment,
|
|
1693
|
-
isStatic,
|
|
1694
|
-
multiLine,
|
|
1695
|
-
name,
|
|
1696
|
-
parameters,
|
|
1697
|
-
returnType,
|
|
1698
|
-
statements,
|
|
1699
|
-
types: types_d_exports
|
|
1700
|
-
}: {
|
|
1701
|
-
accessLevel?: AccessLevel;
|
|
1702
|
-
comment?: Comments;
|
|
1703
|
-
isStatic?: boolean;
|
|
1704
|
-
multiLine?: boolean;
|
|
1705
|
-
name: string;
|
|
1706
|
-
parameters?: ReadonlyArray<FunctionParameter>;
|
|
1707
|
-
returnType?: string | typescript34.TypeNode;
|
|
1708
|
-
statements?: typescript34.Statement[];
|
|
1709
|
-
types?: FunctionTypeParameter[];
|
|
1710
|
-
}) => typescript34.MethodDeclaration;
|
|
1711
|
-
namedImportDeclarations: ({
|
|
1712
|
-
imports,
|
|
1713
|
-
module: module_d_exports
|
|
1714
|
-
}: {
|
|
1715
|
-
imports: Array<ImportExportItem> | ImportExportItem;
|
|
1716
|
-
module: string;
|
|
1717
|
-
}) => typescript34.ImportDeclaration;
|
|
1718
|
-
namespaceDeclaration: ({
|
|
1719
|
-
name,
|
|
1720
|
-
statements
|
|
1721
|
-
}: {
|
|
1722
|
-
name: string;
|
|
1723
|
-
statements: Array<typescript34.Statement>;
|
|
1724
|
-
}) => typescript34.ModuleDeclaration;
|
|
1725
|
-
newExpression: ({
|
|
1726
|
-
argumentsArray,
|
|
1727
|
-
expression,
|
|
1728
|
-
typeArguments
|
|
1729
|
-
}: {
|
|
1730
|
-
argumentsArray?: Array<typescript34.Expression>;
|
|
1731
|
-
expression: typescript34.Expression;
|
|
1732
|
-
typeArguments?: Array<typescript34.TypeNode>;
|
|
1733
|
-
}) => typescript34.NewExpression;
|
|
1734
|
-
nodeToString: typeof tsNodeToString;
|
|
1735
|
-
null: () => typescript34.NullLiteral;
|
|
1736
|
-
objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
1737
|
-
comments,
|
|
1738
|
-
identifiers,
|
|
1739
|
-
multiLine,
|
|
1740
|
-
obj,
|
|
1741
|
-
shorthand,
|
|
1742
|
-
unescape
|
|
1743
|
-
}: {
|
|
1744
|
-
comments?: Comments;
|
|
1745
|
-
identifiers?: string[];
|
|
1746
|
-
multiLine?: boolean;
|
|
1747
|
-
obj: T;
|
|
1748
|
-
shorthand?: boolean;
|
|
1749
|
-
unescape?: boolean;
|
|
1750
|
-
}) => typescript34.ObjectLiteralExpression;
|
|
1751
|
-
ots: {
|
|
1752
|
-
boolean: (value: boolean) => typescript34.TrueLiteral | typescript34.FalseLiteral;
|
|
1753
|
-
export: ({
|
|
1754
|
-
alias,
|
|
1755
|
-
asType,
|
|
1756
|
-
name
|
|
1757
|
-
}: ImportExportItemObject) => typescript34.ExportSpecifier;
|
|
1758
|
-
import: ({
|
|
1759
|
-
alias,
|
|
1760
|
-
asType,
|
|
1761
|
-
name
|
|
1762
|
-
}: ImportExportItemObject) => typescript34.ImportSpecifier;
|
|
1763
|
-
number: (value: number) => typescript34.NumericLiteral | typescript34.PrefixUnaryExpression;
|
|
1764
|
-
string: (value: string, unescape?: boolean) => typescript34.Identifier | typescript34.StringLiteral;
|
|
1765
|
-
};
|
|
1766
|
-
parameterDeclaration: ({
|
|
1767
|
-
initializer,
|
|
1768
|
-
modifiers,
|
|
1769
|
-
name,
|
|
1770
|
-
required,
|
|
1771
|
-
type
|
|
1772
|
-
}: {
|
|
1773
|
-
initializer?: typescript34.Expression;
|
|
1774
|
-
modifiers?: ReadonlyArray<typescript34.ModifierLike>;
|
|
1775
|
-
name: string | typescript34.BindingName;
|
|
1776
|
-
required?: boolean;
|
|
1777
|
-
type?: typescript34.TypeNode;
|
|
1778
|
-
}) => typescript34.ParameterDeclaration;
|
|
1779
|
-
prefixUnaryExpression: ({
|
|
1780
|
-
expression,
|
|
1781
|
-
prefix
|
|
1782
|
-
}: {
|
|
1783
|
-
expression: string | typescript34.Expression;
|
|
1784
|
-
prefix: ("-" | "!") | typescript34.PrefixUnaryOperator;
|
|
1785
|
-
}) => typescript34.PrefixUnaryExpression;
|
|
1786
|
-
propertyAccessExpression: ({
|
|
1787
|
-
expression,
|
|
1788
|
-
isOptional,
|
|
1789
|
-
name
|
|
1790
|
-
}: {
|
|
1791
|
-
expression: string | typescript34.Expression;
|
|
1792
|
-
isOptional?: boolean;
|
|
1793
|
-
name: string | number | typescript34.MemberName;
|
|
1794
|
-
}) => typescript34.PropertyAccessChain | typescript34.PropertyAccessExpression | typescript34.ElementAccessExpression;
|
|
1795
|
-
propertyAccessExpressions: ({
|
|
1796
|
-
expressions
|
|
1797
|
-
}: {
|
|
1798
|
-
expressions: Array<string | typescript34.Expression | typescript34.MemberName>;
|
|
1799
|
-
}) => typescript34.PropertyAccessExpression;
|
|
1800
|
-
propertyAssignment: ({
|
|
1801
|
-
initializer,
|
|
1802
|
-
name
|
|
1803
|
-
}: {
|
|
1804
|
-
initializer: typescript34.Expression;
|
|
1805
|
-
name: string | typescript34.PropertyName;
|
|
1806
|
-
}) => typescript34.PropertyAssignment;
|
|
1807
|
-
propertyDeclaration: ({
|
|
1808
|
-
initializer,
|
|
1809
|
-
modifiers,
|
|
1810
|
-
name,
|
|
1811
|
-
type
|
|
1812
|
-
}: {
|
|
1813
|
-
initializer?: typescript34.Expression;
|
|
1814
|
-
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
1815
|
-
name: string | typescript34.PropertyName;
|
|
1816
|
-
type?: typescript34.TypeNode;
|
|
1817
|
-
}) => typescript34.PropertyDeclaration;
|
|
1818
|
-
regularExpressionLiteral: ({
|
|
1819
|
-
flags,
|
|
1820
|
-
text
|
|
1821
|
-
}: {
|
|
1822
|
-
flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
|
|
1823
|
-
text: string;
|
|
1824
|
-
}) => typescript34.RegularExpressionLiteral;
|
|
1825
|
-
returnFunctionCall: ({
|
|
1826
|
-
args,
|
|
1827
|
-
name,
|
|
1828
|
-
types: types_d_exports
|
|
1829
|
-
}: {
|
|
1830
|
-
args: any[];
|
|
1831
|
-
name: string | typescript34.Expression;
|
|
1832
|
-
types?: ReadonlyArray<string | typescript34.StringLiteral>;
|
|
1833
|
-
}) => typescript34.ReturnStatement;
|
|
1834
|
-
returnStatement: ({
|
|
1835
|
-
expression
|
|
1836
|
-
}: {
|
|
1837
|
-
expression?: typescript34.Expression;
|
|
1838
|
-
}) => typescript34.ReturnStatement;
|
|
1839
|
-
returnVariable: ({
|
|
1840
|
-
expression
|
|
1841
|
-
}: {
|
|
1842
|
-
expression: string | typescript34.Expression;
|
|
1843
|
-
}) => typescript34.ReturnStatement;
|
|
1844
|
-
safeAccessExpression: (path: string[]) => typescript34.Expression;
|
|
1845
|
-
stringLiteral: ({
|
|
1846
|
-
isSingleQuote,
|
|
1847
|
-
text
|
|
1848
|
-
}: {
|
|
1849
|
-
isSingleQuote?: boolean;
|
|
1850
|
-
text: string;
|
|
1851
|
-
}) => typescript34.StringLiteral;
|
|
1852
|
-
templateLiteralType: ({
|
|
1853
|
-
value
|
|
1854
|
-
}: {
|
|
1855
|
-
value: ReadonlyArray<string | typescript34.TypeNode>;
|
|
1856
|
-
}) => typescript34.TemplateLiteralTypeNode;
|
|
1857
|
-
this: () => typescript34.ThisExpression;
|
|
1858
|
-
transformArrayMap: ({
|
|
1859
|
-
path,
|
|
1860
|
-
transformExpression
|
|
1861
|
-
}: {
|
|
1862
|
-
path: string[];
|
|
1863
|
-
transformExpression: typescript34.Expression;
|
|
1864
|
-
}) => typescript34.IfStatement;
|
|
1865
|
-
transformArrayMutation: ({
|
|
1866
|
-
path,
|
|
1867
|
-
transformerName
|
|
1868
|
-
}: {
|
|
1869
|
-
path: string[];
|
|
1870
|
-
transformerName: string;
|
|
1871
|
-
}) => typescript34.Statement;
|
|
1872
|
-
transformDateMutation: ({
|
|
1873
|
-
path
|
|
1874
|
-
}: {
|
|
1875
|
-
path: string[];
|
|
1876
|
-
}) => typescript34.Statement;
|
|
1877
|
-
transformFunctionMutation: ({
|
|
1878
|
-
path,
|
|
1879
|
-
transformerName
|
|
1880
|
-
}: {
|
|
1881
|
-
path: string[];
|
|
1882
|
-
transformerName: string;
|
|
1883
|
-
}) => typescript34.IfStatement[];
|
|
1884
|
-
transformNewDate: ({
|
|
1885
|
-
parameterName
|
|
1886
|
-
}: {
|
|
1887
|
-
parameterName: string;
|
|
1888
|
-
}) => typescript34.NewExpression;
|
|
1889
|
-
typeAliasDeclaration: ({
|
|
1890
|
-
comment,
|
|
1891
|
-
exportType,
|
|
1892
|
-
name,
|
|
1893
|
-
type,
|
|
1894
|
-
typeParameters
|
|
1895
|
-
}: {
|
|
1896
|
-
comment?: Comments;
|
|
1897
|
-
exportType?: boolean;
|
|
1898
|
-
name: string | typescript34.TypeReferenceNode;
|
|
1899
|
-
type: string | typescript34.TypeNode | typescript34.Identifier;
|
|
1900
|
-
typeParameters?: FunctionTypeParameter[];
|
|
1901
|
-
}) => typescript34.TypeAliasDeclaration;
|
|
1902
|
-
typeArrayNode: (types: ReadonlyArray<any | typescript34.TypeNode> | typescript34.TypeNode | typescript34.Identifier | string, isNullable?: boolean) => typescript34.TypeNode;
|
|
1903
|
-
typeInterfaceNode: ({
|
|
1904
|
-
indexKey,
|
|
1905
|
-
indexProperty,
|
|
1906
|
-
isNullable,
|
|
1907
|
-
properties,
|
|
1908
|
-
useLegacyResolution
|
|
1909
|
-
}: {
|
|
1910
|
-
indexKey?: typescript34.TypeReferenceNode;
|
|
1911
|
-
indexProperty?: Property;
|
|
1912
|
-
isNullable?: boolean;
|
|
1913
|
-
properties: Property[];
|
|
1914
|
-
useLegacyResolution: boolean;
|
|
1915
|
-
}) => typescript34.TypeNode;
|
|
1916
|
-
typeIntersectionNode: ({
|
|
1917
|
-
isNullable,
|
|
1918
|
-
types: types_d_exports
|
|
1919
|
-
}: {
|
|
1920
|
-
isNullable?: boolean;
|
|
1921
|
-
types: (any | typescript34.TypeNode)[];
|
|
1922
|
-
}) => typescript34.TypeNode;
|
|
1923
|
-
typeNode: (base: any | typescript34.TypeNode, args?: (any | typescript34.TypeNode)[]) => typescript34.TypeNode;
|
|
1924
|
-
typeOfExpression: ({
|
|
1925
|
-
text
|
|
1926
|
-
}: {
|
|
1927
|
-
text: string | typescript34.Identifier;
|
|
1928
|
-
}) => typescript34.TypeOfExpression;
|
|
1929
|
-
typeOperatorNode: ({
|
|
1930
|
-
operator,
|
|
1931
|
-
type
|
|
1932
|
-
}: {
|
|
1933
|
-
operator: "keyof" | "readonly" | "unique";
|
|
1934
|
-
type: typescript34.TypeNode;
|
|
1935
|
-
}) => typescript34.TypeOperatorNode;
|
|
1936
|
-
typeParameterDeclaration: ({
|
|
1937
|
-
constraint,
|
|
1938
|
-
defaultType,
|
|
1939
|
-
modifiers,
|
|
1940
|
-
name
|
|
1941
|
-
}: {
|
|
1942
|
-
constraint?: typescript34.TypeNode;
|
|
1943
|
-
defaultType?: typescript34.TypeNode;
|
|
1944
|
-
modifiers?: Array<typescript34.Modifier>;
|
|
1945
|
-
name: string | typescript34.Identifier;
|
|
1946
|
-
}) => typescript34.TypeParameterDeclaration;
|
|
1947
|
-
typeParenthesizedNode: ({
|
|
1948
|
-
type
|
|
1949
|
-
}: {
|
|
1950
|
-
type: typescript34.TypeNode;
|
|
1951
|
-
}) => typescript34.ParenthesizedTypeNode;
|
|
1952
|
-
typeRecordNode: (keys: (any | typescript34.TypeNode)[], values: (any | typescript34.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript34.TypeNode;
|
|
1953
|
-
typeReferenceNode: ({
|
|
1954
|
-
typeArguments,
|
|
1955
|
-
typeName
|
|
1956
|
-
}: {
|
|
1957
|
-
typeArguments?: typescript34.TypeNode[];
|
|
1958
|
-
typeName: string | typescript34.EntityName;
|
|
1959
|
-
}) => typescript34.TypeReferenceNode;
|
|
1960
|
-
typeTupleNode: ({
|
|
1961
|
-
isNullable,
|
|
1962
|
-
types: types_d_exports
|
|
1963
|
-
}: {
|
|
1964
|
-
isNullable?: boolean;
|
|
1965
|
-
types: Array<any | typescript34.TypeNode>;
|
|
1966
|
-
}) => typescript34.TypeNode;
|
|
1967
|
-
typeUnionNode: ({
|
|
1968
|
-
isNullable,
|
|
1969
|
-
types: types_d_exports
|
|
1970
|
-
}: {
|
|
1971
|
-
isNullable?: boolean;
|
|
1972
|
-
types: ReadonlyArray<any | typescript34.TypeNode>;
|
|
1973
|
-
}) => typescript34.TypeNode;
|
|
1974
|
-
valueToExpression: <T = unknown>({
|
|
1975
|
-
identifiers,
|
|
1976
|
-
isValueAccess,
|
|
1977
|
-
shorthand,
|
|
1978
|
-
unescape,
|
|
1979
|
-
value
|
|
1980
|
-
}: {
|
|
1981
|
-
identifiers?: string[];
|
|
1982
|
-
isValueAccess?: boolean;
|
|
1983
|
-
shorthand?: boolean;
|
|
1984
|
-
unescape?: boolean;
|
|
1985
|
-
value: T;
|
|
1986
|
-
}) => typescript34.Expression | undefined;
|
|
1987
|
-
};
|
|
1988
|
-
/** @deprecated use tsc */
|
|
1989
|
-
declare const compiler: {
|
|
1990
|
-
anonymousFunction: ({
|
|
1991
|
-
async,
|
|
1992
|
-
comment,
|
|
1993
|
-
multiLine,
|
|
1994
|
-
parameters,
|
|
1995
|
-
returnType,
|
|
1996
|
-
statements,
|
|
1997
|
-
types: types_d_exports
|
|
1998
|
-
}: {
|
|
1999
|
-
async?: boolean;
|
|
2000
|
-
comment?: Comments;
|
|
2001
|
-
multiLine?: boolean;
|
|
2002
|
-
parameters?: FunctionParameter[];
|
|
2003
|
-
returnType?: string | typescript34.TypeNode;
|
|
2004
|
-
statements?: ReadonlyArray<typescript34.Statement>;
|
|
2005
|
-
types?: FunctionTypeParameter[];
|
|
2006
|
-
}) => typescript34.FunctionExpression;
|
|
2007
|
-
arrayLiteralExpression: <T>({
|
|
2008
|
-
elements,
|
|
2009
|
-
multiLine
|
|
2010
|
-
}: {
|
|
2011
|
-
elements: T[];
|
|
2012
|
-
multiLine?: boolean;
|
|
2013
|
-
}) => typescript34.ArrayLiteralExpression;
|
|
2014
|
-
arrowFunction: ({
|
|
2015
|
-
async,
|
|
2016
|
-
comment,
|
|
2017
|
-
multiLine,
|
|
2018
|
-
parameters,
|
|
2019
|
-
returnType,
|
|
2020
|
-
statements,
|
|
2021
|
-
types: types_d_exports
|
|
2022
|
-
}: {
|
|
2023
|
-
async?: boolean;
|
|
2024
|
-
comment?: Comments;
|
|
2025
|
-
multiLine?: boolean;
|
|
2026
|
-
parameters?: ReadonlyArray<FunctionParameter>;
|
|
2027
|
-
returnType?: string | typescript34.TypeNode;
|
|
2028
|
-
statements?: typescript34.Statement[] | typescript34.Expression;
|
|
2029
|
-
types?: FunctionTypeParameter[];
|
|
2030
|
-
}) => typescript34.ArrowFunction;
|
|
2031
|
-
asExpression: ({
|
|
2032
|
-
expression,
|
|
2033
|
-
type
|
|
2034
|
-
}: {
|
|
2035
|
-
expression: typescript34.Expression;
|
|
2036
|
-
type: typescript34.TypeNode;
|
|
2037
|
-
}) => typescript34.AsExpression;
|
|
2038
|
-
assignment: ({
|
|
2039
|
-
left,
|
|
2040
|
-
right
|
|
2041
|
-
}: {
|
|
2042
|
-
left: typescript34.Expression;
|
|
2043
|
-
right: typescript34.Expression;
|
|
2044
|
-
}) => typescript34.AssignmentExpression<typescript34.EqualsToken>;
|
|
2045
|
-
awaitExpression: ({
|
|
2046
|
-
expression
|
|
2047
|
-
}: {
|
|
2048
|
-
expression: typescript34.Expression;
|
|
2049
|
-
}) => typescript34.AwaitExpression;
|
|
2050
|
-
binaryExpression: ({
|
|
2051
|
-
left,
|
|
2052
|
-
operator,
|
|
2053
|
-
right
|
|
2054
|
-
}: {
|
|
2055
|
-
left: typescript34.Expression;
|
|
2056
|
-
operator?: "=" | "===" | "!==" | "in" | "??";
|
|
2057
|
-
right: typescript34.Expression | string;
|
|
2058
|
-
}) => typescript34.BinaryExpression;
|
|
2059
|
-
block: ({
|
|
2060
|
-
multiLine,
|
|
2061
|
-
statements
|
|
2062
|
-
}: {
|
|
2063
|
-
multiLine?: boolean;
|
|
2064
|
-
statements: ReadonlyArray<typescript34.Statement>;
|
|
2065
|
-
}) => typescript34.Block;
|
|
2066
|
-
callExpression: ({
|
|
2067
|
-
functionName,
|
|
2068
|
-
parameters,
|
|
2069
|
-
types: types_d_exports
|
|
2070
|
-
}: {
|
|
2071
|
-
functionName: string | typescript34.PropertyAccessExpression | typescript34.PropertyAccessChain | typescript34.ElementAccessExpression | typescript34.Expression;
|
|
2072
|
-
parameters?: Array<string | typescript34.Expression | undefined>;
|
|
2073
|
-
types?: ReadonlyArray<typescript34.TypeNode>;
|
|
2074
|
-
}) => typescript34.CallExpression;
|
|
2075
|
-
classDeclaration: ({
|
|
2076
|
-
decorator,
|
|
2077
|
-
exportClass,
|
|
2078
|
-
extendedClasses,
|
|
2079
|
-
name,
|
|
2080
|
-
nodes,
|
|
2081
|
-
typeParameters
|
|
2082
|
-
}: {
|
|
2083
|
-
decorator?: {
|
|
2084
|
-
args: any[];
|
|
2085
|
-
name: string;
|
|
2086
|
-
};
|
|
2087
|
-
exportClass?: boolean;
|
|
2088
|
-
extendedClasses?: ReadonlyArray<string>;
|
|
2089
|
-
name: string;
|
|
2090
|
-
nodes: ReadonlyArray<typescript34.ClassElement>;
|
|
2091
|
-
typeParameters?: ReadonlyArray<typescript34.TypeParameterDeclaration>;
|
|
2092
|
-
}) => typescript34.ClassDeclaration;
|
|
2093
|
-
conditionalExpression: ({
|
|
2094
|
-
condition,
|
|
2095
|
-
whenFalse,
|
|
2096
|
-
whenTrue
|
|
2097
|
-
}: {
|
|
2098
|
-
condition: typescript34.Expression;
|
|
2099
|
-
whenFalse: typescript34.Expression;
|
|
2100
|
-
whenTrue: typescript34.Expression;
|
|
2101
|
-
}) => typescript34.ConditionalExpression;
|
|
2102
|
-
constVariable: ({
|
|
2103
|
-
assertion,
|
|
2104
|
-
comment,
|
|
2105
|
-
destructure,
|
|
2106
|
-
exportConst,
|
|
2107
|
-
expression,
|
|
2108
|
-
name,
|
|
2109
|
-
typeName
|
|
2110
|
-
}: {
|
|
2111
|
-
assertion?: "const" | typescript34.TypeNode;
|
|
2112
|
-
comment?: Comments;
|
|
2113
|
-
destructure?: boolean;
|
|
2114
|
-
exportConst?: boolean;
|
|
2115
|
-
expression: typescript34.Expression;
|
|
2116
|
-
name: string | typescript34.TypeReferenceNode;
|
|
2117
|
-
typeName?: string | typescript34.IndexedAccessTypeNode | typescript34.TypeNode;
|
|
2118
|
-
}) => typescript34.VariableStatement;
|
|
2119
|
-
constructorDeclaration: ({
|
|
2120
|
-
accessLevel,
|
|
2121
|
-
comment,
|
|
2122
|
-
multiLine,
|
|
2123
|
-
parameters,
|
|
2124
|
-
statements
|
|
2125
|
-
}: {
|
|
2126
|
-
accessLevel?: AccessLevel;
|
|
2127
|
-
comment?: Comments;
|
|
2128
|
-
multiLine?: boolean;
|
|
2129
|
-
parameters?: FunctionParameter[];
|
|
2130
|
-
statements?: typescript34.Statement[];
|
|
2131
|
-
}) => typescript34.ConstructorDeclaration;
|
|
2132
|
-
enumDeclaration: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
2133
|
-
asConst,
|
|
2134
|
-
comments: enumMemberComments,
|
|
2135
|
-
leadingComment: comments,
|
|
2136
|
-
name,
|
|
2137
|
-
obj
|
|
2138
|
-
}: {
|
|
2139
|
-
asConst: boolean;
|
|
2140
|
-
comments?: Record<string | number, Comments>;
|
|
2141
|
-
leadingComment?: Comments;
|
|
2142
|
-
name: string | typescript34.TypeReferenceNode;
|
|
2143
|
-
obj: T;
|
|
2144
|
-
}) => typescript34.EnumDeclaration;
|
|
2145
|
-
exportAllDeclaration: ({
|
|
2146
|
-
module: module_d_exports,
|
|
2147
|
-
shouldAppendJs
|
|
2148
|
-
}: {
|
|
2149
|
-
module: string;
|
|
2150
|
-
shouldAppendJs?: boolean;
|
|
2151
|
-
}) => typescript34.ExportDeclaration;
|
|
2152
|
-
exportNamedDeclaration: ({
|
|
2153
|
-
exports,
|
|
2154
|
-
module: module_d_exports
|
|
2155
|
-
}: {
|
|
2156
|
-
exports: Array<ImportExportItem> | ImportExportItem;
|
|
2157
|
-
module: string;
|
|
2158
|
-
}) => typescript34.ExportDeclaration;
|
|
2159
|
-
expressionToStatement: ({
|
|
2160
|
-
expression
|
|
2161
|
-
}: {
|
|
2162
|
-
expression: typescript34.Expression;
|
|
2163
|
-
}) => typescript34.ExpressionStatement;
|
|
2164
|
-
forOfStatement: ({
|
|
2165
|
-
awaitModifier,
|
|
2166
|
-
expression,
|
|
2167
|
-
initializer,
|
|
2168
|
-
statement
|
|
2169
|
-
}: {
|
|
2170
|
-
awaitModifier?: typescript34.AwaitKeyword;
|
|
2171
|
-
expression: typescript34.Expression;
|
|
2172
|
-
initializer: typescript34.ForInitializer;
|
|
2173
|
-
statement: typescript34.Statement;
|
|
2174
|
-
}) => typescript34.ForOfStatement;
|
|
2175
|
-
functionTypeNode: ({
|
|
2176
|
-
parameters,
|
|
2177
|
-
returnType,
|
|
2178
|
-
typeParameters
|
|
2179
|
-
}: {
|
|
2180
|
-
parameters?: typescript34.ParameterDeclaration[];
|
|
2181
|
-
returnType: typescript34.TypeNode;
|
|
2182
|
-
typeParameters?: typescript34.TypeParameterDeclaration[];
|
|
2183
|
-
}) => typescript34.FunctionTypeNode;
|
|
2184
|
-
getAccessorDeclaration: ({
|
|
2185
|
-
modifiers,
|
|
2186
|
-
name,
|
|
2187
|
-
returnType,
|
|
2188
|
-
statements
|
|
2189
|
-
}: {
|
|
2190
|
-
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
2191
|
-
name: string | typescript34.PropertyName;
|
|
2192
|
-
returnType?: string | typescript34.Identifier;
|
|
2193
|
-
statements: ReadonlyArray<typescript34.Statement>;
|
|
2194
|
-
}) => typescript34.GetAccessorDeclaration;
|
|
2195
|
-
identifier: (args: string | {
|
|
2196
|
-
text: string;
|
|
2197
|
-
}) => typescript34.Identifier;
|
|
2198
|
-
ifStatement: ({
|
|
2199
|
-
elseStatement,
|
|
2200
|
-
expression,
|
|
2201
|
-
thenStatement
|
|
2202
|
-
}: {
|
|
2203
|
-
elseStatement?: typescript34.Statement;
|
|
2204
|
-
expression: typescript34.Expression;
|
|
2205
|
-
thenStatement: typescript34.Statement;
|
|
2206
|
-
}) => typescript34.IfStatement;
|
|
2207
|
-
indexedAccessTypeNode: ({
|
|
2208
|
-
indexType,
|
|
2209
|
-
objectType
|
|
2210
|
-
}: {
|
|
2211
|
-
indexType: typescript34.TypeNode;
|
|
2212
|
-
objectType: typescript34.TypeNode;
|
|
2213
|
-
}) => typescript34.IndexedAccessTypeNode;
|
|
2214
|
-
isTsNode: (node: any) => node is typescript34.Expression;
|
|
2215
|
-
keywordTypeNode: ({
|
|
2216
|
-
keyword
|
|
2217
|
-
}: {
|
|
2218
|
-
keyword: Extract<SyntaxKindKeyword, "any" | "boolean" | "never" | "number" | "string" | "undefined" | "unknown" | "void">;
|
|
2219
|
-
}) => typescript34.KeywordTypeNode<typescript34.SyntaxKind.VoidKeyword | typescript34.SyntaxKind.AnyKeyword | typescript34.SyntaxKind.BooleanKeyword | typescript34.SyntaxKind.NeverKeyword | typescript34.SyntaxKind.NumberKeyword | typescript34.SyntaxKind.StringKeyword | typescript34.SyntaxKind.UndefinedKeyword | typescript34.SyntaxKind.UnknownKeyword>;
|
|
2220
|
-
literalTypeNode: ({
|
|
2221
|
-
literal
|
|
2222
|
-
}: {
|
|
2223
|
-
literal: typescript34.LiteralTypeNode["literal"];
|
|
2224
|
-
}) => typescript34.LiteralTypeNode;
|
|
2225
|
-
mappedTypeNode: ({
|
|
2226
|
-
members,
|
|
2227
|
-
nameType,
|
|
2228
|
-
questionToken,
|
|
2229
|
-
readonlyToken,
|
|
2230
|
-
type,
|
|
2231
|
-
typeParameter
|
|
2232
|
-
}: {
|
|
2233
|
-
members?: typescript34.NodeArray<typescript34.TypeElement>;
|
|
2234
|
-
nameType?: typescript34.TypeNode;
|
|
2235
|
-
questionToken?: typescript34.QuestionToken | typescript34.PlusToken | typescript34.MinusToken;
|
|
2236
|
-
readonlyToken?: typescript34.ReadonlyKeyword | typescript34.PlusToken | typescript34.MinusToken;
|
|
2237
|
-
type?: typescript34.TypeNode;
|
|
2238
|
-
typeParameter: typescript34.TypeParameterDeclaration;
|
|
2239
|
-
}) => typescript34.MappedTypeNode;
|
|
2240
|
-
methodDeclaration: ({
|
|
2241
|
-
accessLevel,
|
|
2242
|
-
comment,
|
|
2243
|
-
isStatic,
|
|
2244
|
-
multiLine,
|
|
2245
|
-
name,
|
|
2246
|
-
parameters,
|
|
2247
|
-
returnType,
|
|
2248
|
-
statements,
|
|
2249
|
-
types: types_d_exports
|
|
2250
|
-
}: {
|
|
2251
|
-
accessLevel?: AccessLevel;
|
|
2252
|
-
comment?: Comments;
|
|
2253
|
-
isStatic?: boolean;
|
|
2254
|
-
multiLine?: boolean;
|
|
2255
|
-
name: string;
|
|
2256
|
-
parameters?: ReadonlyArray<FunctionParameter>;
|
|
2257
|
-
returnType?: string | typescript34.TypeNode;
|
|
2258
|
-
statements?: typescript34.Statement[];
|
|
2259
|
-
types?: FunctionTypeParameter[];
|
|
2260
|
-
}) => typescript34.MethodDeclaration;
|
|
2261
|
-
namedImportDeclarations: ({
|
|
2262
|
-
imports,
|
|
2263
|
-
module: module_d_exports
|
|
2264
|
-
}: {
|
|
2265
|
-
imports: Array<ImportExportItem> | ImportExportItem;
|
|
2266
|
-
module: string;
|
|
2267
|
-
}) => typescript34.ImportDeclaration;
|
|
2268
|
-
namespaceDeclaration: ({
|
|
2269
|
-
name,
|
|
2270
|
-
statements
|
|
2271
|
-
}: {
|
|
2272
|
-
name: string;
|
|
2273
|
-
statements: Array<typescript34.Statement>;
|
|
2274
|
-
}) => typescript34.ModuleDeclaration;
|
|
2275
|
-
newExpression: ({
|
|
2276
|
-
argumentsArray,
|
|
2277
|
-
expression,
|
|
2278
|
-
typeArguments
|
|
2279
|
-
}: {
|
|
2280
|
-
argumentsArray?: Array<typescript34.Expression>;
|
|
2281
|
-
expression: typescript34.Expression;
|
|
2282
|
-
typeArguments?: Array<typescript34.TypeNode>;
|
|
2283
|
-
}) => typescript34.NewExpression;
|
|
2284
|
-
nodeToString: typeof tsNodeToString;
|
|
2285
|
-
null: () => typescript34.NullLiteral;
|
|
2286
|
-
objectExpression: <T extends Record<string, any> | Array<ObjectValue>>({
|
|
2287
|
-
comments,
|
|
2288
|
-
identifiers,
|
|
2289
|
-
multiLine,
|
|
2290
|
-
obj,
|
|
2291
|
-
shorthand,
|
|
2292
|
-
unescape
|
|
2293
|
-
}: {
|
|
2294
|
-
comments?: Comments;
|
|
2295
|
-
identifiers?: string[];
|
|
2296
|
-
multiLine?: boolean;
|
|
2297
|
-
obj: T;
|
|
2298
|
-
shorthand?: boolean;
|
|
2299
|
-
unescape?: boolean;
|
|
2300
|
-
}) => typescript34.ObjectLiteralExpression;
|
|
2301
|
-
ots: {
|
|
2302
|
-
boolean: (value: boolean) => typescript34.TrueLiteral | typescript34.FalseLiteral;
|
|
2303
|
-
export: ({
|
|
2304
|
-
alias,
|
|
2305
|
-
asType,
|
|
2306
|
-
name
|
|
2307
|
-
}: ImportExportItemObject) => typescript34.ExportSpecifier;
|
|
2308
|
-
import: ({
|
|
2309
|
-
alias,
|
|
2310
|
-
asType,
|
|
2311
|
-
name
|
|
2312
|
-
}: ImportExportItemObject) => typescript34.ImportSpecifier;
|
|
2313
|
-
number: (value: number) => typescript34.NumericLiteral | typescript34.PrefixUnaryExpression;
|
|
2314
|
-
string: (value: string, unescape?: boolean) => typescript34.Identifier | typescript34.StringLiteral;
|
|
2315
|
-
};
|
|
2316
|
-
parameterDeclaration: ({
|
|
2317
|
-
initializer,
|
|
2318
|
-
modifiers,
|
|
2319
|
-
name,
|
|
2320
|
-
required,
|
|
2321
|
-
type
|
|
2322
|
-
}: {
|
|
2323
|
-
initializer?: typescript34.Expression;
|
|
2324
|
-
modifiers?: ReadonlyArray<typescript34.ModifierLike>;
|
|
2325
|
-
name: string | typescript34.BindingName;
|
|
2326
|
-
required?: boolean;
|
|
2327
|
-
type?: typescript34.TypeNode;
|
|
2328
|
-
}) => typescript34.ParameterDeclaration;
|
|
2329
|
-
prefixUnaryExpression: ({
|
|
2330
|
-
expression,
|
|
2331
|
-
prefix
|
|
2332
|
-
}: {
|
|
2333
|
-
expression: string | typescript34.Expression;
|
|
2334
|
-
prefix: ("-" | "!") | typescript34.PrefixUnaryOperator;
|
|
2335
|
-
}) => typescript34.PrefixUnaryExpression;
|
|
2336
|
-
propertyAccessExpression: ({
|
|
2337
|
-
expression,
|
|
2338
|
-
isOptional,
|
|
2339
|
-
name
|
|
2340
|
-
}: {
|
|
2341
|
-
expression: string | typescript34.Expression;
|
|
2342
|
-
isOptional?: boolean;
|
|
2343
|
-
name: string | number | typescript34.MemberName;
|
|
2344
|
-
}) => typescript34.PropertyAccessChain | typescript34.PropertyAccessExpression | typescript34.ElementAccessExpression;
|
|
2345
|
-
propertyAccessExpressions: ({
|
|
2346
|
-
expressions
|
|
2347
|
-
}: {
|
|
2348
|
-
expressions: Array<string | typescript34.Expression | typescript34.MemberName>;
|
|
2349
|
-
}) => typescript34.PropertyAccessExpression;
|
|
2350
|
-
propertyAssignment: ({
|
|
2351
|
-
initializer,
|
|
2352
|
-
name
|
|
2353
|
-
}: {
|
|
2354
|
-
initializer: typescript34.Expression;
|
|
2355
|
-
name: string | typescript34.PropertyName;
|
|
2356
|
-
}) => typescript34.PropertyAssignment;
|
|
2357
|
-
propertyDeclaration: ({
|
|
2358
|
-
initializer,
|
|
2359
|
-
modifiers,
|
|
2360
|
-
name,
|
|
2361
|
-
type
|
|
2362
|
-
}: {
|
|
2363
|
-
initializer?: typescript34.Expression;
|
|
2364
|
-
modifiers?: Modifier | ReadonlyArray<Modifier>;
|
|
2365
|
-
name: string | typescript34.PropertyName;
|
|
2366
|
-
type?: typescript34.TypeNode;
|
|
2367
|
-
}) => typescript34.PropertyDeclaration;
|
|
2368
|
-
regularExpressionLiteral: ({
|
|
2369
|
-
flags,
|
|
2370
|
-
text
|
|
2371
|
-
}: {
|
|
2372
|
-
flags?: ReadonlyArray<"g" | "i" | "m" | "s" | "u" | "y">;
|
|
2373
|
-
text: string;
|
|
2374
|
-
}) => typescript34.RegularExpressionLiteral;
|
|
2375
|
-
returnFunctionCall: ({
|
|
2376
|
-
args,
|
|
2377
|
-
name,
|
|
2378
|
-
types: types_d_exports
|
|
2379
|
-
}: {
|
|
2380
|
-
args: any[];
|
|
2381
|
-
name: string | typescript34.Expression;
|
|
2382
|
-
types?: ReadonlyArray<string | typescript34.StringLiteral>;
|
|
2383
|
-
}) => typescript34.ReturnStatement;
|
|
2384
|
-
returnStatement: ({
|
|
2385
|
-
expression
|
|
2386
|
-
}: {
|
|
2387
|
-
expression?: typescript34.Expression;
|
|
2388
|
-
}) => typescript34.ReturnStatement;
|
|
2389
|
-
returnVariable: ({
|
|
2390
|
-
expression
|
|
2391
|
-
}: {
|
|
2392
|
-
expression: string | typescript34.Expression;
|
|
2393
|
-
}) => typescript34.ReturnStatement;
|
|
2394
|
-
safeAccessExpression: (path: string[]) => typescript34.Expression;
|
|
2395
|
-
stringLiteral: ({
|
|
2396
|
-
isSingleQuote,
|
|
2397
|
-
text
|
|
2398
|
-
}: {
|
|
2399
|
-
isSingleQuote?: boolean;
|
|
2400
|
-
text: string;
|
|
2401
|
-
}) => typescript34.StringLiteral;
|
|
2402
|
-
templateLiteralType: ({
|
|
2403
|
-
value
|
|
2404
|
-
}: {
|
|
2405
|
-
value: ReadonlyArray<string | typescript34.TypeNode>;
|
|
2406
|
-
}) => typescript34.TemplateLiteralTypeNode;
|
|
2407
|
-
this: () => typescript34.ThisExpression;
|
|
2408
|
-
transformArrayMap: ({
|
|
2409
|
-
path,
|
|
2410
|
-
transformExpression
|
|
2411
|
-
}: {
|
|
2412
|
-
path: string[];
|
|
2413
|
-
transformExpression: typescript34.Expression;
|
|
2414
|
-
}) => typescript34.IfStatement;
|
|
2415
|
-
transformArrayMutation: ({
|
|
2416
|
-
path,
|
|
2417
|
-
transformerName
|
|
2418
|
-
}: {
|
|
2419
|
-
path: string[];
|
|
2420
|
-
transformerName: string;
|
|
2421
|
-
}) => typescript34.Statement;
|
|
2422
|
-
transformDateMutation: ({
|
|
2423
|
-
path
|
|
2424
|
-
}: {
|
|
2425
|
-
path: string[];
|
|
2426
|
-
}) => typescript34.Statement;
|
|
2427
|
-
transformFunctionMutation: ({
|
|
2428
|
-
path,
|
|
2429
|
-
transformerName
|
|
2430
|
-
}: {
|
|
2431
|
-
path: string[];
|
|
2432
|
-
transformerName: string;
|
|
2433
|
-
}) => typescript34.IfStatement[];
|
|
2434
|
-
transformNewDate: ({
|
|
2435
|
-
parameterName
|
|
2436
|
-
}: {
|
|
2437
|
-
parameterName: string;
|
|
2438
|
-
}) => typescript34.NewExpression;
|
|
2439
|
-
typeAliasDeclaration: ({
|
|
2440
|
-
comment,
|
|
2441
|
-
exportType,
|
|
2442
|
-
name,
|
|
2443
|
-
type,
|
|
2444
|
-
typeParameters
|
|
2445
|
-
}: {
|
|
2446
|
-
comment?: Comments;
|
|
2447
|
-
exportType?: boolean;
|
|
2448
|
-
name: string | typescript34.TypeReferenceNode;
|
|
2449
|
-
type: string | typescript34.TypeNode | typescript34.Identifier;
|
|
2450
|
-
typeParameters?: FunctionTypeParameter[];
|
|
2451
|
-
}) => typescript34.TypeAliasDeclaration;
|
|
2452
|
-
typeArrayNode: (types: ReadonlyArray<any | typescript34.TypeNode> | typescript34.TypeNode | typescript34.Identifier | string, isNullable?: boolean) => typescript34.TypeNode;
|
|
2453
|
-
typeInterfaceNode: ({
|
|
2454
|
-
indexKey,
|
|
2455
|
-
indexProperty,
|
|
2456
|
-
isNullable,
|
|
2457
|
-
properties,
|
|
2458
|
-
useLegacyResolution
|
|
2459
|
-
}: {
|
|
2460
|
-
indexKey?: typescript34.TypeReferenceNode;
|
|
2461
|
-
indexProperty?: Property;
|
|
2462
|
-
isNullable?: boolean;
|
|
2463
|
-
properties: Property[];
|
|
2464
|
-
useLegacyResolution: boolean;
|
|
2465
|
-
}) => typescript34.TypeNode;
|
|
2466
|
-
typeIntersectionNode: ({
|
|
2467
|
-
isNullable,
|
|
2468
|
-
types: types_d_exports
|
|
2469
|
-
}: {
|
|
2470
|
-
isNullable?: boolean;
|
|
2471
|
-
types: (any | typescript34.TypeNode)[];
|
|
2472
|
-
}) => typescript34.TypeNode;
|
|
2473
|
-
typeNode: (base: any | typescript34.TypeNode, args?: (any | typescript34.TypeNode)[]) => typescript34.TypeNode;
|
|
2474
|
-
typeOfExpression: ({
|
|
2475
|
-
text
|
|
2476
|
-
}: {
|
|
2477
|
-
text: string | typescript34.Identifier;
|
|
2478
|
-
}) => typescript34.TypeOfExpression;
|
|
2479
|
-
typeOperatorNode: ({
|
|
2480
|
-
operator,
|
|
2481
|
-
type
|
|
2482
|
-
}: {
|
|
2483
|
-
operator: "keyof" | "readonly" | "unique";
|
|
2484
|
-
type: typescript34.TypeNode;
|
|
2485
|
-
}) => typescript34.TypeOperatorNode;
|
|
2486
|
-
typeParameterDeclaration: ({
|
|
2487
|
-
constraint,
|
|
2488
|
-
defaultType,
|
|
2489
|
-
modifiers,
|
|
2490
|
-
name
|
|
2491
|
-
}: {
|
|
2492
|
-
constraint?: typescript34.TypeNode;
|
|
2493
|
-
defaultType?: typescript34.TypeNode;
|
|
2494
|
-
modifiers?: Array<typescript34.Modifier>;
|
|
2495
|
-
name: string | typescript34.Identifier;
|
|
2496
|
-
}) => typescript34.TypeParameterDeclaration;
|
|
2497
|
-
typeParenthesizedNode: ({
|
|
2498
|
-
type
|
|
2499
|
-
}: {
|
|
2500
|
-
type: typescript34.TypeNode;
|
|
2501
|
-
}) => typescript34.ParenthesizedTypeNode;
|
|
2502
|
-
typeRecordNode: (keys: (any | typescript34.TypeNode)[], values: (any | typescript34.TypeNode)[], isNullable?: boolean, useLegacyResolution?: boolean) => typescript34.TypeNode;
|
|
2503
|
-
typeReferenceNode: ({
|
|
2504
|
-
typeArguments,
|
|
2505
|
-
typeName
|
|
2506
|
-
}: {
|
|
2507
|
-
typeArguments?: typescript34.TypeNode[];
|
|
2508
|
-
typeName: string | typescript34.EntityName;
|
|
2509
|
-
}) => typescript34.TypeReferenceNode;
|
|
2510
|
-
typeTupleNode: ({
|
|
2511
|
-
isNullable,
|
|
2512
|
-
types: types_d_exports
|
|
2513
|
-
}: {
|
|
2514
|
-
isNullable?: boolean;
|
|
2515
|
-
types: Array<any | typescript34.TypeNode>;
|
|
2516
|
-
}) => typescript34.TypeNode;
|
|
2517
|
-
typeUnionNode: ({
|
|
2518
|
-
isNullable,
|
|
2519
|
-
types: types_d_exports
|
|
2520
|
-
}: {
|
|
2521
|
-
isNullable?: boolean;
|
|
2522
|
-
types: ReadonlyArray<any | typescript34.TypeNode>;
|
|
2523
|
-
}) => typescript34.TypeNode;
|
|
2524
|
-
valueToExpression: <T = unknown>({
|
|
2525
|
-
identifiers,
|
|
2526
|
-
isValueAccess,
|
|
2527
|
-
shorthand,
|
|
2528
|
-
unescape,
|
|
2529
|
-
value
|
|
2530
|
-
}: {
|
|
2531
|
-
identifiers?: string[];
|
|
2532
|
-
isValueAccess?: boolean;
|
|
2533
|
-
shorthand?: boolean;
|
|
2534
|
-
unescape?: boolean;
|
|
2535
|
-
value: T;
|
|
2536
|
-
}) => typescript34.Expression | undefined;
|
|
2537
|
-
};
|
|
2538
918
|
//#endregion
|
|
2539
919
|
//#region src/utils/exports.d.ts
|
|
2540
920
|
declare const utils: {
|
|
@@ -2587,5 +967,5 @@ declare module '@hey-api/codegen-core' {
|
|
|
2587
967
|
*/
|
|
2588
968
|
declare const defineConfig: <T extends MaybeArray<UserConfig>>(config: LazyOrAsync<T>) => Promise<T>;
|
|
2589
969
|
//#endregion
|
|
2590
|
-
export { $, type Client as AngularClient,
|
|
970
|
+
export { $, type Client as AngularClient, type Client$1 as AxiosClient, type Client$2 as Client, type DefinePlugin, DollarTsDsl, type ExpressionTransformer, type Client$3 as FetchClient, type IR, Logger, MaybeTsDsl, type Client$4 as NextClient, type Client$5 as NuxtClient, type Client$6 as OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, type Plugin, TsDsl, type TypeTransformer, TypeTsDsl, type UserConfig, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, createClient, defaultPaginationKeywords, defaultPlugins, defineConfig, definePluginConfig, utils };
|
|
2591
971
|
//# sourceMappingURL=index.d.cts.map
|