[go: up one dir, main page]

Skip to content

Commit

Permalink
Merge pull request #17 from westy92/master
Browse files Browse the repository at this point in the history
Add TypeScript typings.
  • Loading branch information
bermi authored Dec 15, 2016
2 parents 1bb5c3e + cd2cd8a commit c1577ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Usage: import * as generatePassword from 'password-generator';
// generatePassword();

declare namespace generatePassword {
}

declare function generatePassword(length?: number, memorable?: boolean, pattern?: RegExp, prefix?: string): string;

export = generatePassword;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"scripts": {
"test": "make test"
},
"typings": "index.d.ts",
"main": "index",
"bin": "./bin/password-generator",
"directories": {
Expand Down

0 comments on commit c1577ee

Please sign in to comment.