Installation
npm install --save @types/pem-jwk
Summary
This package contains type definitions for pem-jwk (https://github.com/dannycoates/pem-jwk).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pem-jwk.
export interface RSA_JWK {
kty: string;
n: string;
e: string;
d?: string | undefined;
p?: string | undefined;
q?: string | undefined;
dp?: string | undefined;
dq?: string | undefined;
qi?: string | undefined;
}
export interface Extras {
[key: string]: Extras | string | boolean | number;
}
export type JWK<T extends Extras> = RSA_JWK & T;
export function pem2jwk<T extends Extras>(rsa_pem: string, extras?: T): JWK<T>;
export function jwk2pem(rsa_jwk: RSA_JWK): string;
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: none
Credits
These definitions were written by Alessio Paccoia.