type: Fix index.d.ts deleteScope declaration, fix README deleteScope (#362)

pull/364/head
Valentin Kruglikov 3 years ago committed by GitHub
parent 067d3df62f
commit 0dc845bac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

2
index.d.ts vendored

@ -37,7 +37,7 @@ interface Hotkeys {
setScope(scopeName: string): void;
getScope(): string;
deleteScope(scopeName: string): void;
deleteScope(scopeName: string, newScopeName?: string): void;
noConflict(): Hotkeys;

Loading…
Cancel
Save