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