Skip to content

Commit 4bb1c0a

Browse files
authored
Fix types for options, which are actually required (#35)
1 parent 3f1ec4c commit 4bb1c0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ declare const cryptoRandomString: {
8484
//=> '2cf05d94db'
8585
```
8686
*/
87-
(options?: cryptoRandomString.Options): string;
87+
(options: cryptoRandomString.Options): string;
8888

8989
/**
9090
Asynchronously generate a [cryptographically strong](https://en.wikipedia.org/wiki/Strong_cryptography) random string.
@@ -99,7 +99,7 @@ declare const cryptoRandomString: {
9999
//=> '2cf05d94db'
100100
```
101101
*/
102-
async(options?: cryptoRandomString.Options): Promise<string>;
102+
async(options: cryptoRandomString.Options): Promise<string>;
103103
}
104104

105105
export = cryptoRandomString;

0 commit comments

Comments
 (0)