chrome-types
chrome-types copied to clipboard
Code to parse Chrome's internal extension type definitions—published on NPM as chrome-types
As per documentation of [runtime.sendMessage](https://developer.chrome.com/docs/extensions/reference/api/runtime#method-sendMessage) and [tabs.sendMessage](https://developer.chrome.com/docs/extensions/reference/api/tabs#method-sendMessage) the methods have a 4th parameter `callback`. At the moment this parameter is missing from the types and typescript complains.
As I expected, the `sendResponse` callback should accept 1 param in `any` type but now 0. Thus the following codes will fail to pass the type checking.
The [`devtools.panels`](https://developer.chrome.com/docs/extensions/reference/api/devtools/panels) namespace has a method called [`setOpenResourceHandler()`](https://developer.chrome.com/docs/extensions/reference/api/devtools/panels#method-setOpenResourceHandler) that links to [`devtools.inspectedWindow.resource`](https://chrome.devsite.corp.google.com/docs/extensions/reference/api/devtools/inspectedWindow#type-Resource). For some reason it's rendering the last part of the link as `devtools_inpsectedWindow` instead of `devtools.inspectedWindow`. I suspect...
I have just copy-pasted the [official chrome extension samples](https://github.com/GoogleChrome/chrome-extensions-samples/blob/main/functional-samples/sample.tabcapture-recorder/offscreen.js) into a typescript project and typescript complains eventhough the code works correctly. tsconfig `{ "compilerOptions": { "strict": true, "target": "es6", "moduleResolution":...
I tried to execute ```js await chrome.scripting.executeScript({ target: {tabId: tab.id}, func: (text) => { (document.activeElement! as HTMLInputElement).value += (text || ''); }, args: [text], }); ``` and TypeScript tells me...
Bumps [lodash](https://github.com/lodash/lodash) to 4.17.21 and updates ancestor dependency [check-code-coverage](https://github.com/bahmutov/check-code-coverage). These dependencies need to be updated together. Updates `lodash` from 4.17.15 to 4.17.21 Commits f299b52 Bump to v4.17.21 c4847eb Improve performance...
Check out [bluetoothSocket.CreateInfo](https://developer.chrome.com/docs/extensions/reference/bluetoothSocket/#type-CreateInfo), which is generated from [this file](https://source.chromium.org/chromium/chromium/src/+/main:extensions/common/api/bluetooth_socket.idl;l=33;drc=60039d4d4bd70512e21a2dfe586602aca1d9d35e). The description in the file is: ``` // The ID of the newly created socket. Note that socket IDs created //...
## Background It's my understanding that browser support data is transferred to the output as it is encountered. This means that the only option for displaying support information is to...
If there is a method that has moved to the stable channel and then another channel, will stable still be shown? Moved from https://bugs.chromium.org/p/chromium/issues/detail?id=1325919
Based on the official documentation [here](https://developer.chrome.com/docs/extensions/reference/enterprise_hardwarePlatform/) chrome.enterprise.hardwarePlatform is an official API. However, the namespace and it's types are missing.