File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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 ;
1113}
1214
1315/**
1416 * Get an RSA PEM key pair.
1517 * @param opts
1618 */
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