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
{{ message }}
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.
I ran the script with ts-node and got this type error:
TSError: ⨯ Unable to compile TypeScript:
foo.ts:5:17 - error TS2349: This expression is not callable.
Type 'typeof import("redacted/path/node_modules/@nodeguy/channel/lib/index")' has no call signatures.
5 const channel = Channel();
~~~~~~~
It runs fine, when I add // @ts-ignore before the offending line, so it seems the module itself is fine? Still I'd like not to use that hack and have it typecheck properly ;)
Am I just using this wrong? Perhaps @graup could weigh in, as they added the type definitions.
The text was updated successfully, but these errors were encountered:
I tried using channel with TypeScript and found it to fail type checking.
With the following code (mostly from the README):
I ran the script with
ts-node
and got this type error:It runs fine, when I add
// @ts-ignore
before the offending line, so it seems the module itself is fine? Still I'd like not to use that hack and have it typecheck properly ;)Am I just using this wrong? Perhaps @graup could weigh in, as they added the type definitions.
The text was updated successfully, but these errors were encountered: