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 Dec 27, 2019. It is now read-only.
Not sure exactly why, but doing this doesn't work in TypeScript:
import * as QueryStream from 'pg-query-stream';
const query = new QueryStream('SELECT true', []);
This produces the following errors:
file.ts (1,1): A namespace-style import cannot be called or constructed, and will cause a failure at runtime. (7038)
file.ts (2,14): Cannot use 'new' with an expression whose type lacks a call or construct signature. (2351)
I even tried installing @types/pg-query-stream, but that didn't help.
But the import method recommended in the README does work in TypeScript, even if the rest of your imports use the es6 style.
Not sure exactly why, but doing this doesn't work in TypeScript:
This produces the following errors:
I even tried installing
@types/pg-query-stream
, but that didn't help.But the import method recommended in the README does work in TypeScript, even if the rest of your imports use the es6 style.
The text was updated successfully, but these errors were encountered: