Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with TypeScript 2.9 #27

Closed
mrdziuban opened this issue Jun 12, 2018 · 3 comments
Closed

Issue with TypeScript 2.9 #27

mrdziuban opened this issue Jun 12, 2018 · 3 comments

Comments

@mrdziuban
Copy link

When trying to call openAboutWindow in an app using TypeScript 2.9, I get this error:

TS2349: Cannot invoke an expression whose type lacks a call signature.
Type 'typeof import("/path/to/node_modules/about-window/src/index")'
has no compatible call signatures.

It seems like the TypeScript compiler is looking at index.ts instead of the type declarations in index.d.ts?

@rhysd
Copy link
Owner

rhysd commented Jun 13, 2018

Could you show the code snippet which utilizes this library's API)? I guess a compiler raises an error where openAboutWindow is called, am I correct?

@rhysd
Copy link
Owner

rhysd commented Jun 13, 2018

I found some problem with TypeScript 2.9. Though the reported compilation error is different from yours. Could you update package version to v1.11.1 and try it?

@mrdziuban
Copy link
Author

Thanks @rhysd, v1.11.1 does fix my issue. And yes, the error was raised when calling openAboutWindow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants