@types/pem-jwk
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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.

index.d.ts

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/pem-jwk

      Weekly Downloads

      24,340

      Version

      2.0.2

      License

      MIT

      Unpacked Size

      3.56 kB

      Total Files

      5

      Last publish

      Collaborators

      • types