You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider that I've installed the library via npm install --save node-pty to my current project, and trying to import it into main.ts file like that:
// main.tsimport*asptyfrom"node-pty";
When compiling this file, I get the error:
Could not find a declaration file for module 'node-pty'
Actually, that's a distribution issue: according to the official TypeScript Publishing guide, you need to define a "types" property in your package.json (and probably point that to "./lib/index.d.ts").
The text was updated successfully, but these errors were encountered:
ForNeVeR
added a commit
to ForNeVeR/node-pty
that referenced
this issue
May 20, 2017
Consider that I've installed the library via
npm install --save node-pty
to my current project, and trying to import it intomain.ts
file like that:When compiling this file, I get the error:
Actually, that's a distribution issue: according to the official TypeScript Publishing guide, you need to define a
"types"
property in yourpackage.json
(and probably point that to"./lib/index.d.ts"
).The text was updated successfully, but these errors were encountered: