Commit Graph

83 Commits

Author SHA1 Message Date
Nicky Goethals
92933e1ddd chrome typings: added chrome.serial bindings (#34779)
* Update index.d.ts

implemented chrome.serial ( https://developer.chrome.com/apps/serial ), Use the chrome.serial API to read from and write to a device connected to a serial port.

* Update index.d.ts

added ekinsol to the definitions by list
2019-04-18 16:17:15 -07:00
MiOnim
0f99e1248c Add missing type to chrome.runtime 2019-04-04 16:40:59 -04:00
Nathan Shively-Sanders
64fc88601e
Disable npm-naming with dt-header (#34112)
npm-naming is a new rule but the code it runs was already disabled
whenever dt-header was disabled. This change keeps the behaviour the
same.
2019-03-22 09:26:34 -07:00
g8up
cbc764162f
sendResponse's param can be optional
> sendResponse: (response?: any) => void) => void
2019-02-19 00:25:37 +08:00
ekinsol
99b2fda960 Updated conditional types 2019-02-05 17:41:56 +01:00
ekinsol
4cbf48a0a7 Merge remote-tracking branch 'upstream/master' 2019-02-05 17:25:26 +01:00
photz
7f40f42354
Fix parameter type in chrome.tabs.onHighlighted.addListener callback
On https://developer.chrome.com/extensions/tabs#event-onHighlighted it can be seen that the callback for `chrome.tabs.onHighlighted.addListener` receives an object with a `tabIds` property, but the currently used `HighlightInfo` interface only has a `tabs` property.  I noticed that there exists a definition for a TabHighlightInfo interface which is currently unused.  It looks as though `TabHighlightInfo` was meant to be used here, but by mistake the very similiar `HighlightInfo` was used instead.
2019-01-30 17:25:28 +01:00
Mat Carlson
16206c78d0
Add missing properties to chrome.ContextMenu
Add `frameId` to OnClickData; add `visible` to CreateProperties. Both are described here: https://developer.chrome.com/extensions/contextMenus#method-create
2019-01-11 09:13:16 -08:00
Gregor Menih
989941fb54 [chrome] add missing type and event to omnibox (#31778)
* feat: add OnInputEnteredDisposition

* feat: add onDeleteSuggestion
2018-12-31 08:01:57 -08:00
nicky g
a0c18d13b6 added missing exports in system.chrome.display 2018-12-12 16:49:44 +01:00
nicky g
071e96b984 - added custom types (based on chrome-apps) used in chrome.system.display under the chrome namespace
- added missing chrome.system.display api calls
2018-12-12 16:38:04 +01:00
madmages
da4b7bff49 @type/chrome contentSettings, more precise types 2018-12-10 04:38:34 +03:00
madmages
3c69db9af0 @type/chrome contentSettings, fix scope enum 2018-12-10 03:45:30 +03:00
nicky g
1589af648c Added contributor 2018-12-07 08:57:08 +01:00
nicky g
04ccb520cf added chrome.enterprise.deviceAttributes: getDeviceSerialNumber, getDeviceAssetId, getDeviceAnnotatedLocation (with comments based on @types/chrome-apps) 2018-12-06 18:21:00 +01:00
Andy
141d1cc870
And tslint disables for no-angle-bracket-type-assertion (#30592) 2018-11-16 12:20:58 -08:00
grandin-j
29f659a079
Update index.d.ts with callbacks for show/hide
Add missing callback parameter to chrome.pageAction.show and chrome.pageAction.hide per https://developer.chrome.com/extensions/pageAction#method-show
2018-10-22 08:36:20 -07:00
Jesse Trinity
c720439dde
Merge pull request #28981 from DiceTechnology/feat/chrome-cast-unescape
Add missing unescape method to chrome.cast
2018-09-19 15:05:00 -07:00
mikiest
6afbfcc8d1 feat: add unescape method to chrome.cast definition 2018-09-18 13:14:55 +01:00
Sana Ajani
df655c5dca
Merge pull request #28375 from stefanullinger/feature/chromecast-fix-class-like-interface-definitions
[chrome] Change chrome-cast's class-like interfaces to class definitions.
2018-09-07 13:59:37 -07:00
Stefan Ullinger
09caaef4e9 [chrome] Change chrome-cast's class-like interfaces to class definitions.
This avoids TS2339 when calling the constructor of these classes, e.g. new chrome.cast.SessionRequest(...).
2018-08-25 13:01:17 +02:00
Warrick FitzGerald
b22bf25243 Added includeTlsChannelId?: boolean; to ConnectInfo interface as per https://developer.chrome.com/extensions/runtime#method-connect 2018-08-15 18:45:22 -04:00
Felix Rubio
6990103aa9 Chrome: Add optional property initiator on ResourceRequest (#27571)
* Add optional property initiator in ResourceRequest

* Add optional property initiator in ResourceRequest
2018-07-26 08:15:52 -07:00
Sergey Kuznetsov
67b046cb86 Make chrome.tabs.highlight callback as an optional (#27453) 2018-07-23 08:31:25 -07:00
Nikolai Ommundsen
73a28dd508 Fixed tsconfig in chrome definitions 2018-06-05 08:54:45 +02:00
Nikolai Ommundsen
639b2c3d5e Merge conflict fixed 2018-06-05 08:54:10 +02:00
Nikolai Ommundsen
997c1ffa0c Merged with upstream 2018-06-05 08:53:46 +02:00
Nikolai Ommundsen
3880e40c72
Merge branch 'master' into chrome-updates 2018-06-04 15:01:02 +02:00
Samuel Maddock
14446c91d7 Move chrome/chrome-cast types into folder 2018-05-31 13:17:29 -04:00
Samuel Maddock
5946e58de1
Change chrome.cast.Image to class type 2018-05-29 14:39:51 -04:00
Samuel Maddock
14e4edf065
Fix chrome.cast enum documentation links 2018-05-29 10:33:13 -04:00
Samuel Maddock
5cb225c23c
Change cast interfaces to use enums 2018-05-25 13:36:24 -04:00
Nikolai Ommundsen
784c6ef7eb Merge branch 'master' of github.com:DefinitelyTyped/DefinitelyTyped into chrome-updates 2018-05-23 15:53:14 +02:00
Nikolai Ommundsen
23f6f128b4 Style fix: Set up browser section label 2018-05-22 09:55:58 +02:00
Nikolai Ommundsen
c7325ae6d1 Separate typings for chrome-apps 2018-05-16 11:01:25 +02:00
Nikolai Ommundsen
a1747548e6 Name updates 2018-05-16 10:26:55 +02:00
a.kalin
7c4f5bedba @type/chrome discard method & properties 2018-05-13 20:27:51 +03:00
Vladimir Tikhonov
3b83984ac6 Add node to BookmarkRemoveInfo type (#25451) 2018-05-03 09:50:30 -07:00
NN
3540de43f9 Define ResourceType as type union. (#25060) 2018-04-17 09:43:25 -07:00
Mine Starks
b55f40d1de
Merge pull request #23619 from couven92/devtools
Add new chrome.devtools.inspectedWindow.eval overload
2018-03-23 16:15:28 -07:00
Mine Starks
710ca6c64b
Merge pull request #23622 from AndrewShepherd/chrome-app-TS7006
Chrome Package has TS7006  error on showNativeTouchCallibration
2018-03-20 16:38:23 -07:00
Alexander Shutov
755a991497
Port message can be anything 2018-03-13 21:02:17 +03:00
Ernest Galbrun
5e8c77c4bc
Fix the type of the window object provided by the PanelShownEvent 2018-02-28 12:33:07 +01:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andrew Shepherd
866f915fbe
TS7006 error on showNativeTouchCallibration
Compiling with `noImplicitAny` set to `true` created the following warning:

> node_modules/@types/chrome/chrome-app.d.ts(1192,71): error TS7006: Parameter 'success' implicitly has an 'any' type.

The method `showNativeTouchCalibration` is documented here: https://developer.chrome.com/apps/system_display#method-showNativeTouchCalibration

It describes callback as such:

> If you specify the callback parameter, it should be a function that looks like this:
>
> `function(boolean success) {...};`
2018-02-14 08:14:06 +10:00
Fredrik Høisæther Rasch
4c8fb4edcb add new chrome.devtools.inspectedWindow.eval overload
Additional Overload accepts the new optional options parameter.

fixes https://github.com/DefinitelyTyped/DefinitelyTyped/issues/23597
2018-02-13 22:23:16 +01:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
epicgirl1998
abdde3dd37 chrome: add cssOrigin to tabs.InjectDetails (#23224) 2018-01-27 10:32:32 -08:00
jacamera
ac3e6ede4b added dictionary {size -> ImageData} option to imageData property (#22658) 2018-01-05 15:52:48 -08:00
Vaillant Samuel
c079326a78 fix(chrome): avoid implicit any on getDirectoryDeviceId 2017-12-16 15:14:10 +01:00