You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nodejs/index.d.ts
+321Lines changed: 321 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,318 @@
3
3
4
4
/* auto-generated by NAPI-RS */
5
5
6
+
exportinterfaceCmdExternalPkgSpec{
7
+
pkgName: string
8
+
pkgPath: string
9
+
}
10
+
/** kcl main.k -D name=value */
11
+
exportinterfaceCmdArgSpec{
12
+
name: string
13
+
value: string
14
+
}
15
+
exportinterfaceCmdOverrideSpec{
16
+
pkgpath: string
17
+
fieldPath: string
18
+
fieldValue: string
19
+
action: string
20
+
}
21
+
exportinterfaceError{
22
+
level: string
23
+
code: string
24
+
messages: Array<Message>
25
+
}
26
+
exportinterfaceMessage{
27
+
msg: string
28
+
pos?: Position
29
+
}
30
+
exportinterfacePingArgs{
31
+
value: string
32
+
}
33
+
exportinterfacePingResult{
34
+
value: string
35
+
}
36
+
/** empty */
37
+
exportinterfaceListMethodArgs{}
38
+
exportinterfaceListMethodResult{
39
+
methodNameList: Array<string>
40
+
}
41
+
exportinterfaceParseFileArgs{
42
+
path: string
43
+
source: string
44
+
externalPkgs: Array<CmdExternalPkgSpec>
45
+
}
46
+
exportinterfaceParseFileResult{
47
+
/** JSON string value */
48
+
astJson: string
49
+
/** file dependency paths */
50
+
deps: Array<string>
51
+
/** Parse errors */
52
+
errors: Array<Error>
53
+
}
54
+
exportinterfaceParseProgramArgs{
55
+
paths: Array<string>
56
+
sources: Array<string>
57
+
/** External packages path */
58
+
externalPkgs: Array<CmdExternalPkgSpec>
59
+
}
60
+
exportinterfaceParseProgramResult{
61
+
/** JSON string value */
62
+
astJson: string
63
+
/** Returns the files in the order they should be compiled */
64
+
paths: Array<string>
65
+
/** Parse errors */
66
+
errors: Array<Error>
67
+
}
68
+
exportinterfaceLoadPackageResult{
69
+
/** JSON string value */
70
+
program: string
71
+
/** Returns the files in the order they should be compiled */
72
+
paths: Array<string>
73
+
/** Parse errors */
74
+
parseErrors: Array<Error>
75
+
/** Type errors */
76
+
typeErrors: Array<Error>
77
+
/** Map key is the ScopeIndex json string. */
78
+
scopes: Record<string,Scope>
79
+
/** Map key is the SymbolIndex json string. */
80
+
symbols: Record<string,symbol>
81
+
/** Map key is the AST index UUID string. */
82
+
nodeSymbolMap: Record<string,SymbolIndex>
83
+
/** Map key is the SymbolIndex json string. */
84
+
symbolNodeMap: Record<string,string>
85
+
/** Map key is the fully_qualified_name e.g. `pkg.Name` */
86
+
fullyQualifiedNameMap: Record<string,SymbolIndex>
87
+
/** Map key is the package path. */
88
+
pkgScopeMap: Record<string,ScopeIndex>
89
+
}
90
+
exportinterfaceListOptionsResult{
91
+
/** Returns the files in the order they should be compiled */
92
+
options: Array<OptionHelp>
93
+
}
94
+
exportinterfaceOptionHelp{
95
+
name: string
96
+
type: string
97
+
required: boolean
98
+
defaultValue: string
99
+
help: string
100
+
}
101
+
exportinterfaceSymbol{
102
+
ty?: string
103
+
name: string
104
+
owner?: SymbolIndex
105
+
def?: SymbolIndex
106
+
attrs: Array<SymbolIndex>
107
+
isGlobal: boolean
108
+
}
109
+
exportinterfaceScope{
110
+
kind: string
111
+
parent?: ScopeIndex
112
+
owner?: SymbolIndex
113
+
children: Array<ScopeIndex>
114
+
defs: Array<SymbolIndex>
115
+
}
116
+
exportinterfaceSymbolIndex{
117
+
i: number
118
+
g: number
119
+
kind: string
120
+
}
121
+
exportinterfaceScopeIndex{
122
+
i: number
123
+
g: number
124
+
kind: string
125
+
}
126
+
exportinterfaceExecProgramResult{
127
+
jsonResult: string
128
+
yamlResult: string
129
+
logMessage: string
130
+
errMessage: string
131
+
}
132
+
exportinterfaceBuildProgramResult{
133
+
path: string
134
+
}
135
+
exportinterfaceResetPluginArgs{
136
+
pluginRoot: string
137
+
}
138
+
/** empty */
139
+
exportinterfaceResetPluginResult{}
140
+
exportinterfaceFormatCodeArgs{
141
+
source: string
142
+
}
143
+
exportinterfaceFormatCodeResult{
144
+
formatted: Array<number>
145
+
}
146
+
exportinterfaceFormatPathArgs{
147
+
path: string
148
+
}
149
+
exportinterfaceFormatPathResult{
150
+
changedPaths: Array<string>
151
+
}
152
+
exportinterfaceLintPathArgs{
153
+
paths: Array<string>
154
+
}
155
+
exportinterfaceLintPathResult{
156
+
results: Array<string>
157
+
}
158
+
exportinterfaceOverrideFileArgs{
159
+
file: string
160
+
specs: Array<string>
161
+
importPaths: Array<string>
162
+
}
163
+
exportinterfaceOverrideFileResult{
164
+
result: boolean
165
+
}
166
+
exportinterfaceListVariablesResult{
167
+
variables: Record<string,Variable>
168
+
unsupportedCodes: Array<string>
169
+
}
170
+
exportinterfaceVariable{
171
+
value: string
172
+
}
173
+
exportinterfaceGetSchemaTypeResult{
174
+
schemaTypeList: Array<KclType>
175
+
}
176
+
exportinterfaceGetSchemaTypeMappingArgs{
177
+
file: string
178
+
code: string
179
+
schemaName: string
180
+
}
181
+
exportinterfaceGetSchemaTypeMappingResult{
182
+
schemaTypeMapping: Record<string,KclType>
183
+
}
184
+
exportinterfaceValidateCodeArgs{
185
+
datafile: string
186
+
data: string
187
+
file: string
188
+
code: string
189
+
schema: string
190
+
attributeName: string
191
+
format: string
192
+
}
193
+
exportinterfaceValidateCodeResult{
194
+
success: boolean
195
+
errMessage: string
196
+
}
197
+
exportinterfacePosition{
198
+
line: number
199
+
column: number
200
+
filename: string
201
+
}
202
+
exportinterfaceListDepFilesArgs{
203
+
workDir: string
204
+
useAbsPath: boolean
205
+
includeAll: boolean
206
+
useFastParser: boolean
207
+
}
208
+
exportinterfaceListDepFilesResult{
209
+
pkgroot: string
210
+
pkgpath: string
211
+
files: Array<string>
212
+
}
213
+
exportinterfaceLoadSettingsFilesArgs{
214
+
workDir: string
215
+
files: Array<string>
216
+
}
217
+
exportinterfaceLoadSettingsFilesResult{
218
+
kclCliConfigs?: CliConfig
219
+
kclOptions: Array<KeyValuePair>
220
+
}
221
+
exportinterfaceCliConfig{
222
+
files: Array<string>
223
+
output: string
224
+
overrides: Array<string>
225
+
pathSelector: Array<string>
226
+
strictRangeCheck: boolean
227
+
disableNone: boolean
228
+
verbose: number
229
+
debug: boolean
230
+
sortKeys: boolean
231
+
showHidden: boolean
232
+
includeSchemaTypePath: boolean
233
+
fastEval: boolean
234
+
}
235
+
exportinterfaceKeyValuePair{
236
+
key: string
237
+
value: string
238
+
}
239
+
exportinterfaceRenameArgs{
240
+
/** the file path to the package root */
241
+
packageRoot: string
242
+
/** the path to the target symbol to be renamed. The symbol path should conform to format: `<pkgpath>:<field_path>` When the pkgpath is '__main__', `<pkgpath>:` can be omitted. */
243
+
symbolPath: string
244
+
/** the paths to the source code files */
245
+
filePaths: Array<string>
246
+
/** the new name of the symbol */
247
+
newName: string
248
+
}
249
+
exportinterfaceRenameResult{
250
+
/** the file paths got changed */
251
+
changedFiles: Array<string>
252
+
}
253
+
exportinterfaceRenameCodeArgs{
254
+
/** the file path to the package root */
255
+
packageRoot: string
256
+
/** the path to the target symbol to be renamed. The symbol path should conform to format: `<pkgpath>:<field_path>` When the pkgpath is '__main__', `<pkgpath>:` can be omitted. */
0 commit comments