File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1027,7 +1027,10 @@ declare namespace chrome {
10271027 indexedDB?: boolean | undefined;
10281028 /** The browser's cookies. */
10291029 cookies?: boolean | undefined;
1030- /** Stored passwords. */
1030+ /**
1031+ * Stored passwords.
1032+ * @deprecated Support for password deletion through extensions has been removed. This data type will be ignored.
1033+ */
10311034 passwords?: boolean | undefined;
10321035 /**
10331036 * Server-bound certificates.
@@ -1122,6 +1125,7 @@ declare namespace chrome {
11221125 * Clears the browser's stored passwords.
11231126 *
11241127 * Can return its result via Promise in Manifest V3 or later since Chrome 96.
1128+ * @deprecated Support for password deletion through extensions has been removed. This function has no effect.
11251129 */
11261130 export function removePasswords(options: RemovalOptions): Promise<void>;
11271131 export function removePasswords(options: RemovalOptions, callback: () => void): void;
@@ -9549,6 +9553,13 @@ declare namespace chrome {
95499553 */
95509554 export function getURL(path: string): string;
95519555
9556+ /**
9557+ * Returns the extension's version as declared in the manifest.
9558+ * @returns The extension's version.
9559+ * @since Chrome 143
9560+ */
9561+ export function getVersion(): string;
9562+
95529563 /** Reloads the app or extension. This method is not supported in kiosk mode. For kiosk mode, use {@link chrome.runtime.restart()} method. */
95539564 export function reload(): void;
95549565
Original file line number Diff line number Diff line change @@ -872,6 +872,8 @@ function testRuntime() {
872872
873873 chrome . runtime . getURL ( "" ) ; // $ExpectType string
874874
875+ chrome . runtime . getVersion ( ) ; // $ExpectType string
876+
875877 chrome . runtime . openOptionsPage ( ) ; // $ExpectType Promise<void>
876878 chrome . runtime . openOptionsPage ( ( ) => { } ) ; // $ExpectType void
877879 // @ts -expect-error
You can’t perform that action at this time.
0 commit comments