Skip to content

Commit

Permalink
type: Fix index.d.ts deleteScope declaration, fix README deleteScope (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vkruglikov authored Apr 30, 2022
1 parent 067d3df commit 0dc845b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ Use the `hotkeys.deleteScope` method to delete a scope. This will also remove al
```js
hotkeys.deleteScope('issues');
```
You can use second argument, if need set new scope after deleting.

```js
hotkeys.deleteScope('issues', 'newScopeName');
```

### unbind

Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ interface Hotkeys {

setScope(scopeName: string): void;
getScope(): string;
deleteScope(scopeName: string): void;
deleteScope(scopeName: string, newScopeName?: string): void;

noConflict(): Hotkeys;

Expand Down

0 comments on commit 0dc845b

Please sign in to comment.