Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Wrong module name in typescript type info #10

Open
theronfff opened this issue Nov 29, 2018 · 0 comments
Open

Wrong module name in typescript type info #10

theronfff opened this issue Nov 29, 2018 · 0 comments

Comments

@theronfff
Copy link

Environment details

  • OS: linux
  • node-pty version: 0.7.6

Issue description

If using node-pty-prebuilt in a typescript app I get the following error from tsc:

 error TS2306: File '.../node_modules/node-pty-prebuilt/typings/node-pty.d.ts' is not a module.

7 import * as pty from "node-pty-prebuilt";
                       ~~~~~~~~~~~~~~~~~~~

The fix is to modify node-pty.d.ts from this:

declare module 'node-pty' {

to:

declare module 'node-pty-prebuilt' {
mrmeku added a commit to mrmeku/node-pty-prebuilt that referenced this issue Dec 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant