Skip to content

Commit

Permalink
Do not do ts-ignore in webcrypto
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Feb 12, 2024
1 parent 11df073 commit e66df99
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/webcrypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// Once node.js 18 is deprecated, we can just drop the import.
//
// Use full path so that Node.js can rewrite it to `cryptoNode.js`.
// @ts-ignore: `tsc` doesn't understand `@noble/ciphers/crypto` is a valid import.
import { randomBytes, getWebcryptoSubtle } from '@noble/ciphers/crypto';
import { Cipher, concatBytes } from './utils.js';
import { number } from './_assert.js';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"noUnusedParameters": true,
"baseUrl": ".",
"paths": {
"@noble/ciphers/crypto": ["src/crypto"]
"@noble/ciphers/crypto": ["src/crypto.ts"]
},
"module": "Node16",
"outDir": "esm",
Expand Down

0 comments on commit e66df99

Please sign in to comment.