panates / postgrejs

Professional PostgreSQL client for NodeJS
https://postgrejs.panates.com
MIT License
50 stars 12 forks source link

skipLibCheck: false #32

Closed JimmyBjorklund closed 9 months ago

JimmyBjorklund commented 9 months ago

When adding the client to the project its no longer possible to have lib checks. I am using commonjs.


node_modules/doublylinked/lib/doubly-linked.d.ts:52:14 - error TS7006: Parameter 'separator' implicitly has an 'any' type.

52         join(separator): string;
                ~~~~~~~~~

node_modules/postgresql-client/typings/interfaces/database-connection-params.d.ts:3:13 - error TS1192: Module '"tls"' has no default export.

3 import type tls from 'tls';
              ~~~

node_modules/strict-typed-events/esm/async-event-emitter.d.ts:2:8 - error TS1259: Module '"events"' can only be default-imported using the 'esModuleInterop' flag

2 import EventEmitter from 'events';
         ~~~~~~~~~~~~

  node_modules/@types/node/events.d.ts:798:5
    798     export = EventEmitter;
            ~~~~~~~~~~~~~~~~~~~~~~
    This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

node_modules/ts-gems/lib/common.d.ts:29:11 - error TS2304: Cannot find name 'ReadableStream'.

29     URL | ReadableStream | WritableStream;
             ~~~~~~~~~~~~~~

node_modules/ts-gems/lib/common.d.ts:29:28 - error TS2304: Cannot find name 'WritableStream'.

29     URL | ReadableStream | WritableStream;
                              ~~~~~~~~~~~~~~

tsconfig.json

{
    "compileOnSave": true,
    "compilerOptions": {
      "allowJs": true,
      "baseUrl": ".",
      "experimentalDecorators": true,
      "emitDecoratorMetadata": true,
      "forceConsistentCasingInFileNames": true,
      "lib": ["es2022"],
      "types": ["reflect-metadata"],
      "module": "commonjs",
      "moduleResolution": "node",
      //"noEmit": true,
      "outDir": "build",
      "noImplicitAny": true,
      "noImplicitReturns": true,
      "noImplicitThis": true,
      "noFallthroughCasesInSwitch": false,
      "noUnusedLocals": false,
      "noUnusedParameters": false,
      "pretty": true,
      "strictNullChecks": true,
      "sourceMap": true,
      //"skipLibCheck": true,
      "target": "es5"
    },
    "exclude": ["node_modules", "build", "scripts"],
    "include": ["./app/**.ts"]
  }
erayhanoglu commented 9 months ago

Updated all dependencies and released 2.10.4