Skip to content

Commit

Permalink
Merge pull request #13 from eskelter/master
Browse files Browse the repository at this point in the history
Adds Typescript definition file index.d.ts
  • Loading branch information
juliangruber authored Jan 30, 2021
2 parents 1adc003 + 3853737 commit c39678d
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Type definitions for keypair 1.0
// Project: https://www.npmjs.com/package/keypair
// Definitions by: eskelter <https://github.com/eskelter>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
export interface KeypairOptions {
bits?: number;
e?: number;
}
export interface KeypairResults {
public: string;
private: string;
}

/**
* Get an RSA PEM key pair.
* @param opts
*/
export function keypair(opts?: KeypairOptions): KeypairResults;

0 comments on commit c39678d

Please sign in to comment.