-
Notifications
You must be signed in to change notification settings - Fork 44
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
Types provided don't seem to work #24
Comments
@toddobryan-clever I've made these typings... Have you tried |
OK. I upgraded to the latest version of TypeScript (just to be sure), then I tried
None of those worked. I also tried setting |
I've gotten it to work, but had to make a couple of changes. I'm not sure if there's an easier/better way to do this. I changed the types declaration to
Note But then my import has to be changed to the TS-only:
Maybe this is the only way to do it? I don't know enough about TypeScript to be sure. |
Doesn't work for me too. |
Does not work with the same ts(2349) error:
|
Here's my hacky solution to make it work index2.d.ts indexv2.js
code |
We can't get our previously working code to work with the new types provided.
import * as sizeof from 'object-sizeof';
results inerror TS2349: Cannot invoke an expression whose type lacks a call signature. Type 'typeof 'object-sizeof'' has no compatible call signatures.
at compile time, but...import sizeof from 'object-sizeof';
results inobject_sizeof_1.default is not a function
at runtime.The text was updated successfully, but these errors were encountered: