@@ -171,22 +171,26 @@ declare global {
171
171
export const __iscoroutinefunction : ( a : number ) => number ;
172
172
}
173
173
174
+ /** @hidden */
174
175
export type FSNode = {
175
176
timestamp : number ;
176
177
rdev : number ;
177
178
contents : Uint8Array ;
178
179
mode : number ;
179
180
} ;
180
181
182
+ /** @hidden */
181
183
export type FSStream = {
182
184
tty ?: boolean ;
183
185
seekable ?: boolean ;
184
186
stream_ops : FSStreamOps ;
185
187
node : FSNode ;
186
188
} ;
187
189
190
+ /** @hidden */
188
191
export type FSStreamOps = FSStreamOpsGen < FSStream > ;
189
192
193
+ /** @hidden */
190
194
export type FSStreamOpsGen < T > = {
191
195
open : ( a : T ) => void ;
192
196
close : ( a : T ) => void ;
@@ -207,6 +211,7 @@ export type FSStreamOpsGen<T> = {
207
211
) => number ;
208
212
} ;
209
213
214
+ /** @hidden */
210
215
export interface FS {
211
216
unlink : ( path : string ) => void ;
212
217
mkdirTree : ( path : string , mode ?: number ) => void ;
@@ -256,26 +261,30 @@ export interface FS {
256
261
readFile ( a : string ) : Uint8Array ;
257
262
}
258
263
259
- /** @private */
264
+ /** @hidden */
260
265
export type PreRunFunc = ( Module : Module ) => void ;
261
266
267
+ /** @hidden */
262
268
export type ReadFileType = ( path : string ) => Uint8Array ;
263
269
264
270
// File System-like type which can be passed to
265
271
// Module.loadDynamicLibrary or Module.loadWebAssemblyModule
272
+ /** @hidden */
266
273
export type LoadDynlibFS = {
267
274
readFile : ReadFileType ;
268
275
findObject : ( path : string , dontResolveLastLink : boolean ) => any ;
269
276
} ;
270
277
271
278
type DSO = any ;
272
279
280
+ /** @hidden */
273
281
export interface LDSO {
274
282
loadedLibsByName : {
275
283
[ key : string ] : DSO ;
276
284
} ;
277
285
}
278
286
287
+ /** @hidden */
279
288
export interface Module {
280
289
API : API ;
281
290
locateFile : ( file : string ) => string ;
@@ -340,11 +349,13 @@ type LockfileInfo = {
340
349
python : string ;
341
350
} ;
342
351
352
+ /** @hidden */
343
353
export type Lockfile = {
344
354
info : LockfileInfo ;
345
355
packages : Record < string , InternalPackageData > ;
346
356
} ;
347
357
358
+ /** @hidden */
348
359
export type PackageType =
349
360
| "package"
350
361
| "cpython_module"
@@ -361,6 +372,9 @@ export interface PackageData {
361
372
packageType : PackageType ;
362
373
}
363
374
375
+ /** @hidden */
376
+ export type LoadedPackages = Record < string , string > ;
377
+
364
378
/**
365
379
* @hidden
366
380
*/
@@ -388,6 +402,7 @@ export type PackageLoadMetadata = {
388
402
packageData : InternalPackageData ;
389
403
} ;
390
404
405
+ /** @hidden */
391
406
export interface API {
392
407
fatal_error : ( e : any ) => never ;
393
408
isPyProxy : ( e : any ) => e is PyProxy ;
0 commit comments