From bda1d22369880cfbb8e44a86fb1bedf1d8bf5621 Mon Sep 17 00:00:00 2001 From: Braden Wong <13159333+braden-w@users.noreply.github.com> Date: Wed, 29 Oct 2025 00:34:16 -0700 Subject: [PATCH] docs(webviewWindow): fix incorrect import in JSDoc example (#14388) The getByLabel method is a static method on WebviewWindow, not Webview. Updated the JSDoc example to import and use the correct class name. --- packages/api/src/webviewWindow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/api/src/webviewWindow.ts b/packages/api/src/webviewWindow.ts index 289902b95..ed1ebcfe9 100644 --- a/packages/api/src/webviewWindow.ts +++ b/packages/api/src/webviewWindow.ts @@ -102,8 +102,8 @@ class WebviewWindow { * Gets the Webview for the webview associated with the given label. * @example * ```typescript - * import { Webview } from '@tauri-apps/api/webviewWindow'; - * const mainWebview = Webview.getByLabel('main'); + * import { WebviewWindow } from '@tauri-apps/api/webviewWindow'; + * const mainWebview = WebviewWindow.getByLabel('main'); * ``` * * @param label The webview label.