v8n import typescript - has no call signatures #236
Labels
Note: Help Wanted
Scope: Build
Status: Reproduction Needed
This issue requires reproduction code to address.
I've been trying to integrate the v8n into my project for a few days now. But that fails once when typescript is compiled with the import or with the call of v8n().
TS2349: This expression is not callable. Type 'typeof import("/node_modules/v8n/types/index")' has no call signatures.
I have now tried the following:
import v8n from 'v8n';
v8n().number()
or
v8n.default().number()
This allows Typescript and then translates it into Javascript but when you start in nodejs the object is not found on "default".
My tsconfig:
Does it have to be imported differently? Or is that a bug?
The text was updated successfully, but these errors were encountered: