Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion types/chrome/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,10 @@ declare namespace chrome {
indexedDB?: boolean | undefined;
/** The browser's cookies. */
cookies?: boolean | undefined;
/** Stored passwords. */
/**
* Stored passwords.
* @deprecated Support for password deletion through extensions has been removed. This data type will be ignored.
*/
passwords?: boolean | undefined;
/**
* Server-bound certificates.
Expand Down Expand Up @@ -1122,6 +1125,7 @@ declare namespace chrome {
* Clears the browser's stored passwords.
*
* Can return its result via Promise in Manifest V3 or later since Chrome 96.
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
*/
export function removePasswords(options: RemovalOptions): Promise<void>;
export function removePasswords(options: RemovalOptions, callback: () => void): void;
Expand Down Expand Up @@ -9549,6 +9553,13 @@ declare namespace chrome {
*/
export function getURL(path: string): string;

/**
* Returns the extension's version as declared in the manifest.
* @returns The extension's version.
* @since Chrome 143
*/
export function getVersion(): string;

/** Reloads the app or extension. This method is not supported in kiosk mode. For kiosk mode, use {@link chrome.runtime.restart()} method. */
export function reload(): void;

Expand Down
2 changes: 2 additions & 0 deletions types/chrome/test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,8 @@ function testRuntime() {

chrome.runtime.getURL(""); // $ExpectType string

chrome.runtime.getVersion(); // $ExpectType string

chrome.runtime.openOptionsPage(); // $ExpectType Promise<void>
chrome.runtime.openOptionsPage(() => {}); // $ExpectType void
// @ts-expect-error
Expand Down
1 change: 1 addition & 0 deletions types/dom-webcodecs/webcodecs.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ interface VideoFrameInit {
duration?: number | undefined;
timestamp?: number | undefined;
visibleRect?: DOMRectInit | undefined;
rotation?: number;
}

interface AudioData {
Expand Down
3 changes: 0 additions & 3 deletions types/express/express-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ namespace express_tests {
app.engine("jade", require("jade").__express);
app.engine("html", require("ejs").renderFile);

express.static.mime.define({
"application/fx": ["fx"],
});
app.use(
"/static",
express.static(__dirname + "/public", {
Expand Down
2 changes: 1 addition & 1 deletion types/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"@types/body-parser": "*",
"@types/express-serve-static-core": "^5.0.0",
"@types/serve-static": "^1"
"@types/serve-static": "^2"
},
"devDependencies": {
"@types/express": "workspace:.",
Expand Down
Loading