-
-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typescript): fix compiling by adding .d.ts files for runtime modules
- Loading branch information
Showing
20 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { AesGcmKwUnwrapFunction, AesGcmKwWrapFunction } from './interfaces.d'; | ||
export declare const wrap: AesGcmKwWrapFunction; | ||
export declare const unwrap: AesGcmKwUnwrapFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { AesKwUnwrapFunction, AesKwWrapFunction } from './interfaces.d'; | ||
export declare const wrap: AesKwWrapFunction; | ||
export declare const unwrap: AesKwUnwrapFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { Base64UrlDecode, Base64UrlEncode } from './interfaces.d'; | ||
export declare const encode: Base64UrlEncode; | ||
export declare const decode: Base64UrlDecode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { DecryptFunction } from './interfaces.d'; | ||
declare const decrypt: DecryptFunction; | ||
export default decrypt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { AsyncOrSync } from '../types.i.d' | ||
declare const _default: (digest: string, data: Uint8Array) => AsyncOrSync<Uint8Array>; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { EcdhAllowedFunction, EcdhESDeriveKeyFunction, EphemeralKeyToPublicJwkFunction, GenerateEpkFunction, PublicJwkToEphemeralKeyFunction } from './interfaces.d'; | ||
export declare const deriveKey: EcdhESDeriveKeyFunction; | ||
export declare const ephemeralKeyToPublicJWK: EphemeralKeyToPublicJwkFunction; | ||
export declare const generateEpk: GenerateEpkFunction; | ||
export declare const publicJwkToEphemeralKey: PublicJwkToEphemeralKeyFunction; | ||
export declare const ecdhAllowed: EcdhAllowedFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { EncryptFunction } from './interfaces.d'; | ||
declare const encrypt: EncryptFunction; | ||
export default encrypt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
declare const _default: (url: URL, timeout: number) => Promise<any>; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { KeyObject } from 'crypto'; | ||
import type { KeyLike } from '../types.d'; | ||
export declare function generateSecret(alg: string): Promise<KeyLike>; | ||
interface Options { | ||
crv?: string; | ||
} | ||
export declare function generateKeyPair(alg: string, options?: Options): Promise<{ | ||
privateKey: CryptoKey | KeyObject, | ||
publicKey: CryptoKey | KeyObject | ||
}>; | ||
export {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { KeyLike, JWK } from '../types.d'; | ||
declare const _default: (jwk: JWK) => Promise<KeyLike>; | ||
export default _default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { Pbes2KWDecryptFunction, Pbes2KWEncryptFunction } from './interfaces.d'; | ||
export declare const encrypt: Pbes2KWEncryptFunction; | ||
export declare const decrypt: Pbes2KWDecryptFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { GetRandomValuesFunction } from './interfaces.d'; | ||
declare const random: GetRandomValuesFunction; | ||
export default random; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { RsaEsDecryptFunction, RsaEsEncryptFunction } from './interfaces.d'; | ||
export declare const encrypt: RsaEsEncryptFunction; | ||
export declare const decrypt: RsaEsDecryptFunction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { SignFunction } from './interfaces.d'; | ||
declare const sign: SignFunction; | ||
export default sign; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { VerifyFunction } from './interfaces.d'; | ||
declare const verify: VerifyFunction; | ||
export default verify; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { InflateFunction, DeflateFunction } from '../types.d'; | ||
export declare const inflate: InflateFunction; | ||
export declare const deflate: DeflateFunction; |