From 357b07a25f11c8d05075c72d8bee35d503219342 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 11 Oct 2023 10:05:44 -0700 Subject: [PATCH] NFC Minor rearrangement of types.ts (#4215) This puts package loading stuff together. --- src/js/types.ts | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/js/types.ts b/src/js/types.ts index 4ff8a1164..e012062cd 100644 --- a/src/js/types.ts +++ b/src/js/types.ts @@ -287,18 +287,6 @@ export interface API { errorConstructors: Map; deserializeError: (name: string, message: string, stack: string) => Error; - package_loader: any; - importlib: any; - _import_name_to_package_name: Map; - lockfile_unvendored_stdlibs: string[]; - lockfile_unvendored_stdlibs_and_test: string[]; - repodata_packages: any; - repodata_info: any; - loadBinaryFile: ( - path: string, - file_sub_resource_hash?: string | undefined, - ) => Promise; - _pyodide: any; pyodide_py: any; pyodide_code: any; @@ -310,11 +298,22 @@ export interface API { saveState: () => any; restoreState: (state: any) => void; + package_loader: any; + importlib: any; + _import_name_to_package_name: Map; + lockFilePromise: Promise; + lockfile_unvendored_stdlibs: string[]; + lockfile_unvendored_stdlibs_and_test: string[]; lockfile_info: any; lockfile_packages: any; - lockFilePromise: Promise; + repodata_packages: any; + repodata_info: any; defaultLdLibraryPath: string[]; sitepackages: string; + loadBinaryFile: ( + path: string, + file_sub_resource_hash?: string | undefined, + ) => Promise; loadDynlib: ( lib: string, global: boolean,