mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
feat(plugins): use @tauri-apps namespace on NPM (#368)
Co-authored-by: Amr Bashir <amr.bashir2015@gmail.com>
This commit is contained in:
1 parent
caf8456864
commit
22991af9f4
72 files changed
+435
-419
No files matched your search
@@ -30,7 +30,7 @@ import { invoke } from "@tauri-apps/api/tauri";
|
||||
* Gets the application version.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getVersion } from 'tauri-plugin-app-api';
|
||||
* import { getVersion } from '@tauri-apps/plugin-app';
|
||||
* const appVersion = await getVersion();
|
||||
* ```
|
||||
*
|
||||
@@ -44,7 +44,7 @@ async function getVersion(): Promise<string> {
|
||||
* Gets the application name.
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getName } from 'tauri-plugin-app-api';
|
||||
* import { getName } from '@tauri-apps/plugin-app';
|
||||
* const appName = await getName();
|
||||
* ```
|
||||
*
|
||||
@@ -59,7 +59,7 @@ async function getName(): Promise<string> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { getTauriVersion } from 'tauri-plugin-app-api';
|
||||
* import { getTauriVersion } from '@tauri-apps/plugin-app';
|
||||
* const tauriVersion = await getTauriVersion();
|
||||
* ```
|
||||
*
|
||||
@@ -74,7 +74,7 @@ async function getTauriVersion(): Promise<string> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { show } from 'tauri-plugin-app-api';
|
||||
* import { show } from '@tauri-apps/plugin-app';
|
||||
* await show();
|
||||
* ```
|
||||
*
|
||||
@@ -89,7 +89,7 @@ async function show(): Promise<void> {
|
||||
*
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { hide } from 'tauri-plugin-app-api';
|
||||
* import { hide } from '@tauri-apps/plugin-app';
|
||||
* await hide();
|
||||
* ```
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user