m4heshd / better-sqlite3-multiple-ciphers

better-sqlite3 with multiple-cipher encryption support 🔒
MIT License
140 stars 27 forks source link

Declaration file for module in Strict Mode #39

Closed dlh2 closed 1 year ago

dlh2 commented 1 year ago

Looking at #22

import Database from 'better-sqlite3-multiple-ciphers'

{
  "compilerOptions": {
    "target": "ES6",
    "module": "es2022",
    "moduleResolution": "NodeNext", // Node for ES6, Classic for Commonjs
    "lib": [
      "es2019",
      "dom"
    ],
    "strict": true,
  }
}

Shows the error:

Could not find a declaration file for module 'better-sqlite3-multiple-ciphers' node_modules/better-sqlite3-multiple-ciphers/lib/index.js' implicitly has an 'any' type

But if strict is false, it does work.

m4heshd commented 1 year ago

Hi, Can you check if you have the same issue with better-sqlite3?

m4heshd commented 1 year ago

Closing this issue since there isn't any activity. Feel free to reopen if there's any update.