Skip to content

Commit

Permalink
Fix a few problems
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Oct 4, 2023
1 parent bceaef3 commit cf0dc9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/js/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type PyProxy } from "./pyproxy.gen";
import { type PyodideInterface } from "./api";
import { type ConfigType } from "./pyodide";
import { type InFuncType } from "./streams";
import { type PackageData } from "./load-package";

declare global {
export type TypedArray =
Expand Down Expand Up @@ -270,6 +271,17 @@ export interface API {
restoreState: (state: any) => void;

defaultLdLibraryPath: string[];
sitepackages: string;
loadDynlib: (
lib: string,
global: boolean,
searchDirs?: string[] | undefined,
readFileFunc?: (path: string) => Uint8Array,
) => Promise<void>;
loadDynlibsFromPackage: (
pkg: PackageData,
dynlibPaths: string[],
) => Promise<void>;

makePublicAPI: () => PyodideInterface;
_Comlink: any;
Expand Down

0 comments on commit cf0dc9d

Please sign in to comment.