diff options
| author | Marin Ivanov <[email protected]> | 2019-04-26 03:09:23 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2019-04-26 10:49:00 +0300 |
| commit | a9b73cc643471a937eda430b77610579a09c25ce (patch) | |
| tree | 5349d057af6a326e579d1e133e490d5e453cf5eb /src | |
| parent | c5183ad3d99fd7b0e4208a257da51445c53f69a6 (diff) | |
Bump verstion to 1.0.1
Add acknowledgments to the readme
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.ts b/src/index.ts index aa07055..3608ae1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,7 +51,7 @@ export default function nitt(all: EventHandlerMap) { * @returns {Promise<any>} */ when(type: string): Promise<any> { - return new Promise<any>(r => this.once(type, r)); + return new Promise<any>(resolve => this.once(type, resolve)); }, /** |
