chore(api): update @since tag to 2.0.0 (#395)

This commit is contained in:
Lucas Fernandes Nogueira authored and GitHub committed 2023-05-23 23:44:05 -03:00
1 parent 7e3034904c
commit 9bf98f68e7
14 files changed
+227 -113

No files matched your search

+5 -5
View File
@@ -32,7 +32,7 @@ export type ShortcutHandler = (shortcut: string) => void;
* @param shortcut Shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
* @param handler Shortcut handler callback - takes the triggered shortcut as argument
*
* @since 1.0.0
* @since 2.0.0
*/
async function register(
shortcut: string,
@@ -57,7 +57,7 @@ async function register(
* @param shortcuts Array of shortcut definitions, modifiers and key separated by "+" e.g. CmdOrControl+Q
* @param handler Shortcut handler callback - takes the triggered shortcut as argument
*
* @since 1.0.0
* @since 2.0.0
*/
async function registerAll(
shortcuts: string[],
@@ -82,7 +82,7 @@ async function registerAll(
*
* @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
*
* @since 1.0.0
* @since 2.0.0
*/
async function isRegistered(shortcut: string): Promise<boolean> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|is_registered", {
@@ -100,7 +100,7 @@ async function isRegistered(shortcut: string): Promise<boolean> {
*
* @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q
*
* @since 1.0.0
* @since 2.0.0
*/
async function unregister(shortcut: string): Promise<void> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister", {
@@ -116,7 +116,7 @@ async function unregister(shortcut: string): Promise<void> {
* await unregisterAll();
* ```
*
* @since 1.0.0
* @since 2.0.0
*/
async function unregisterAll(): Promise<void> {
return await window.__TAURI_INVOKE__("plugin:globalShortcut|unregister_all");