Skip to content

Commit

Permalink
types: update generateRSAKeyPair to return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
wuriyanto48 committed Jan 11, 2023
1 parent b031404 commit 7668390
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dist/lib/rsa.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
export function generateRSAKeyPair(keySize?: number, passphrase?: string, encrypted?: boolean): any;
export interface RSAPair {
privateKey: string | Buffer;
publicKey: string | Buffer;
}

export function generateRSAKeyPair(keySize?: number, passphrase?: string, encrypted?: boolean): Promise<RSAPair>;
export function loadPrivateKey(data: string | Buffer): string | Buffer;
export function loadPublicKey(data: string | Buffer): string | Buffer;
export function loadPrivateKeyFromBase64(data: string | Buffer): string | Buffer;
Expand Down

0 comments on commit 7668390

Please sign in to comment.