Skip to content

Commit 1627965

Browse files
committed
fix: resolve missing types for the cryptoRuntime const
1 parent b58b2de commit 1627965

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export type {
9595
CompactJWSHeaderParameters,
9696
JWTHeaderParameters,
9797
JSONWebKeySet,
98+
CryptoRuntime,
9899
} from './types.d'
99100

100-
export { default as cryptoRuntime } from './runtime/runtime.js'
101+
export { default as cryptoRuntime } from './util/runtime.js'

src/runtime/browser/runtime.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import { CryptoRuntime } from '../../types.d'
2-
3-
export default 'WebCryptoAPI' as CryptoRuntime
1+
export default 'WebCryptoAPI'

src/runtime/node/runtime.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
import { CryptoRuntime } from '../../types.d'
2-
3-
export default 'node:crypto' as CryptoRuntime
1+
export default 'node:crypto'

src/util/runtime.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import value from '../runtime/runtime.js'
2+
import type { CryptoRuntime } from '../types.d'
3+
export default value as CryptoRuntime

0 commit comments

Comments
 (0)