File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 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
- }
1
+ // Type definitions for keypair 1.0
2
+ // Project: https://www.npmjs.com/package/keypair
3
+ // Definitions by: eskelter <https://github.com/eskelter>
4
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
+ // TypeScript Version: 2.2
6
+ export interface KeypairOptions {
7
+ bits ?: number ;
8
+ e ?: number ;
9
+ }
10
+ export interface KeypairResults {
11
+ public : string ;
12
+ private : string ;
11
13
}
12
14
13
15
/**
14
16
* Get an RSA PEM key pair.
15
17
* @param opts
16
18
*/
17
- declare function keypair ( opts ?: keypair . Options ) : keypair . Results ;
18
-
19
- export = keypair ;
19
+ export function keypair ( opts ?: KeypairOptions ) : KeypairResults ;
You can’t perform that action at this time.
0 commit comments