diff --git a/src/pty/index.ts b/src/pty/index.ts index d9cc2e1c..25c969ce 100644 --- a/src/pty/index.ts +++ b/src/pty/index.ts @@ -26,9 +26,4 @@ export function require_dlopen(modulename: string) { process.dlopen(module, path.join(import__dirname, modulename)); // eslint-disable-next-line @typescript-eslint/no-explicit-any return module.exports as any; -} -/** - * Expose the native API when not Windows, note that this is not public API and - * could be removed at any time. - */ -export const native = (process.platform !== 'win32' ? require_dlopen('./pty/' + process.platform + '.' + process.arch + '/pty.node') : null); +} \ No newline at end of file