Skip to content

Commit ba3d104

Browse files
committed
Adds Typescript definition file index.d.ts
1 parent 1adc003 commit ba3d104

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
declare namespace keypair {
2+
export interface Options {
3+
bits?: number,
4+
e?: number
5+
}
6+
7+
export interface Results {
8+
public: string,
9+
private: string
10+
}
11+
}
12+
13+
/**
14+
* Get an RSA PEM key pair.
15+
* @param opts
16+
*/
17+
declare function keypair (opts?: keypair.Options): keypair.Results;
18+
19+
export = keypair;

0 commit comments

Comments
 (0)