docs(clipboard): Fixed typo from rbga to rgba (#2499)

Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/13707554123

Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
This commit is contained in:
Khoshbin Ali Ahmed
2025-03-06 20:29:23 +00:00
committed by tauri-bot
parent 1361ccd58f
commit 3bc80eef9a
4 changed files with 4 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ async function writeImage(image$1) {
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
*
* const clipboardImage = await readImage();
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
* const url = URL.createObjectURL(blob)
* ```
* @since 2.0.0

2
dist-js/index.d.ts vendored
View File

@@ -62,7 +62,7 @@ declare function writeImage(image: string | Image | Uint8Array | ArrayBuffer | n
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
*
* const clipboardImage = await readImage();
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
* const url = URL.createObjectURL(blob)
* ```
* @since 2.0.0

View File

@@ -81,7 +81,7 @@ async function writeImage(image) {
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
*
* const clipboardImage = await readImage();
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
* const url = URL.createObjectURL(blob)
* ```
* @since 2.0.0

View File

@@ -91,7 +91,7 @@ async function writeImage(
* import { readImage } from '@tauri-apps/plugin-clipboard-manager';
*
* const clipboardImage = await readImage();
* const blob = new Blob([await clipboardImage.rbga()], { type: 'image' })
* const blob = new Blob([await clipboardImage.rgba()], { type: 'image' })
* const url = URL.createObjectURL(blob)
* ```
* @since 2.0.0