Skip to content

Commit

Permalink
Rename lib.ts to types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Oct 5, 2023
1 parent acf6f75 commit 9f0f99b
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 337 deletions.
2 changes: 1 addition & 1 deletion src/core/pyproxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare var Tests: any;
declare var Module: any;
declare var Hiwire: any;

import { TypedArray } from "lib";
import { TypedArray } from "types";
import { warnOnce } from "pyodide_util";

// pyodide-skip
Expand Down
2 changes: 1 addition & 1 deletion src/js/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { loadBinaryFile } from "./compat";
import { version } from "./version";
import "./error_handling.gen.js";
import { setStdin, setStdout, setStderr } from "./streams";
import { TypedArray } from "./lib";
import { TypedArray } from "./types";

// Exported for micropip
API.loadBinaryFile = loadBinaryFile;
Expand Down
2 changes: 1 addition & 1 deletion src/js/ffi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type {
PyMutableSequence,
} from "./pyproxy.gen";

export type { TypedArray } from "./lib";
export type { TypedArray } from "./types";

export type { PythonError } from "./error_handling.gen";

Expand Down
330 changes: 0 additions & 330 deletions src/js/lib.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/js/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { ConfigType } from "./pyodide";
import { initializeNativeFS } from "./nativefs";
import { loadBinaryFile, getBinaryResponse } from "./compat";
import { FS, Module } from "./lib";
import { Module } from "./types";

/**
* The Emscripten Module.
Expand Down
2 changes: 1 addition & 1 deletion src/js/nativefs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Module } from "./lib";
import { Module } from "./types";

/**
* @private
Expand Down
2 changes: 1 addition & 1 deletion src/js/pyodide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { version } from "./version";

import type { PyodideInterface } from "./api.js";
import type { PyProxy, PyDict } from "./pyproxy.gen";
import type { TypedArray } from "./lib";
import type { TypedArray } from "./types";
export type { PyodideInterface, TypedArray };

export type {
Expand Down
2 changes: 1 addition & 1 deletion src/js/streams.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { IN_NODE } from "./compat.js";
import "./constants";

import type { FSStream, FSStreamOpsGen } from "./lib";
import type { FSStream, FSStreamOpsGen } from "./types";
const fs: any = IN_NODE ? require("fs") : undefined;
const tty: any = IN_NODE ? require("tty") : undefined;

Expand Down

0 comments on commit 9f0f99b

Please sign in to comment.