Skip to content

Commit

Permalink
Adds Typescript definition file index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
eskelter committed Oct 12, 2017
1 parent 1adc003 commit ba3d104
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 @@
declare namespace keypair {
export interface Options {
bits?: number,
e?: number
}

export interface Results {
public: string,
private: string
}
}

/**
* Get an RSA PEM key pair.
* @param opts
*/
declare function keypair (opts?: keypair.Options): keypair.Results;

export = keypair;

0 comments on commit ba3d104

Please sign in to comment.