1- // Type definitions for Electron 37.0.0-beta.7 +wvcus
1+ // Type definitions for Electron 37.0.0-beta.8 +wvcus
22// Project: http://electronjs.org/
33// Definitions by: The Electron Team <https://github.com/electron/electron>
44// Definitions: https://github.com/electron/typescript-definitions
@@ -8335,6 +8335,10 @@ declare namespace Electron {
83358335
83368336 // Docs: https://electronjs.org/docs/api/structures/hid-device
83378337
8338+ /**
8339+ * an array of report formats. See MDN documentation for more.
8340+ */
8341+ collections: Array<Collections>;
83388342 /**
83398343 * Unique identifier for the device.
83408344 */
@@ -19681,6 +19685,44 @@ declare namespace Electron {
1968119685 waitForBeforeUnload: boolean;
1968219686 }
1968319687
19688+ interface Collections {
19689+ /**
19690+ * An integer representing the usage ID component of the HID usage associated with
19691+ * this collection.
19692+ */
19693+ usage: number;
19694+ /**
19695+ * An integer representing the usage page component of the HID usage associated
19696+ * with this collection.
19697+ */
19698+ usagePage: number;
19699+ /**
19700+ * An 8-bit value representing the collection type, which describes a different
19701+ * relationship between the grouped items.
19702+ */
19703+ type: number;
19704+ /**
19705+ * An array of sub-collections which takes the same format as a top-level
19706+ * collection.
19707+ */
19708+ children: Children[];
19709+ /**
19710+ * An array of inputReport items which represent individual input reports described
19711+ * in this collection.
19712+ */
19713+ inputReports: InputReports[];
19714+ /**
19715+ * An array of outputReport items which represent individual output reports
19716+ * described in this collection.
19717+ */
19718+ outputReports: OutputReports[];
19719+ /**
19720+ * An array of featureReport items which represent individual feature reports
19721+ * described in this collection.
19722+ */
19723+ featureReports: FeatureReports[];
19724+ }
19725+
1968419726 interface Config {
1968519727 /**
1968619728 * Can be `tls1`, `tls1.1`, `tls1.2` or `tls1.3`. The minimum SSL version to allow
@@ -23059,6 +23101,9 @@ declare namespace Electron {
2305923101 edge: ('bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right');
2306023102 }
2306123103
23104+ interface Children {
23105+ }
23106+
2306223107 interface EditFlags {
2306323108 /**
2306423109 * Whether the renderer believes it can undo.
@@ -23097,6 +23142,9 @@ declare namespace Electron {
2309723142 interface Env {
2309823143 }
2309923144
23145+ interface FeatureReports {
23146+ }
23147+
2310023148 interface FoundInPageResult {
2310123149 requestId: number;
2310223150 /**
@@ -23114,6 +23162,9 @@ declare namespace Electron {
2311423162 finalUpdate: boolean;
2311523163 }
2311623164
23165+ interface InputReports {
23166+ }
23167+
2311723168 interface LaunchItems {
2311823169 /**
2311923170 * name value of a registry entry.
@@ -23248,6 +23299,9 @@ declare namespace Electron {
2324823299 frameCount?: number;
2324923300 }
2325023301
23302+ interface OutputReports {
23303+ }
23304+
2325123305 interface PageRanges {
2325223306 /**
2325323307 * Index of the first page to print (0-based).
@@ -23446,6 +23500,7 @@ declare namespace Electron {
2344623500 type ClientCertRequestParams = Electron.ClientCertRequestParams;
2344723501 type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
2344823502 type CloseOpts = Electron.CloseOpts;
23503+ type Collections = Electron.Collections;
2344923504 type Config = Electron.Config;
2345023505 type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
2345123506 type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
@@ -23614,13 +23669,17 @@ declare namespace Electron {
2361423669 type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
2361523670 type WillNavigateEvent = Electron.WillNavigateEvent;
2361623671 type WillResizeDetails = Electron.WillResizeDetails;
23672+ type Children = Electron.Children;
2361723673 type EditFlags = Electron.EditFlags;
2361823674 type Env = Electron.Env;
23675+ type FeatureReports = Electron.FeatureReports;
2361923676 type FoundInPageResult = Electron.FoundInPageResult;
23677+ type InputReports = Electron.InputReports;
2362023678 type LaunchItems = Electron.LaunchItems;
2362123679 type Margins = Electron.Margins;
2362223680 type MediaFlags = Electron.MediaFlags;
2362323681 type Metadata = Electron.Metadata;
23682+ type OutputReports = Electron.OutputReports;
2362423683 type PageRanges = Electron.PageRanges;
2362523684 type Params = Electron.Params;
2362623685 type Planes = Electron.Planes;
@@ -23824,6 +23883,7 @@ declare namespace Electron {
2382423883 type ClientCertRequestParams = Electron.ClientCertRequestParams;
2382523884 type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
2382623885 type CloseOpts = Electron.CloseOpts;
23886+ type Collections = Electron.Collections;
2382723887 type Config = Electron.Config;
2382823888 type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
2382923889 type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
@@ -23992,13 +24052,17 @@ declare namespace Electron {
2399224052 type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
2399324053 type WillNavigateEvent = Electron.WillNavigateEvent;
2399424054 type WillResizeDetails = Electron.WillResizeDetails;
24055+ type Children = Electron.Children;
2399524056 type EditFlags = Electron.EditFlags;
2399624057 type Env = Electron.Env;
24058+ type FeatureReports = Electron.FeatureReports;
2399724059 type FoundInPageResult = Electron.FoundInPageResult;
24060+ type InputReports = Electron.InputReports;
2399824061 type LaunchItems = Electron.LaunchItems;
2399924062 type Margins = Electron.Margins;
2400024063 type MediaFlags = Electron.MediaFlags;
2400124064 type Metadata = Electron.Metadata;
24065+ type OutputReports = Electron.OutputReports;
2400224066 type PageRanges = Electron.PageRanges;
2400324067 type Params = Electron.Params;
2400424068 type Planes = Electron.Planes;
@@ -24128,6 +24192,7 @@ declare namespace Electron {
2412824192 type ClientCertRequestParams = Electron.ClientCertRequestParams;
2412924193 type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
2413024194 type CloseOpts = Electron.CloseOpts;
24195+ type Collections = Electron.Collections;
2413124196 type Config = Electron.Config;
2413224197 type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
2413324198 type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
@@ -24296,13 +24361,17 @@ declare namespace Electron {
2429624361 type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
2429724362 type WillNavigateEvent = Electron.WillNavigateEvent;
2429824363 type WillResizeDetails = Electron.WillResizeDetails;
24364+ type Children = Electron.Children;
2429924365 type EditFlags = Electron.EditFlags;
2430024366 type Env = Electron.Env;
24367+ type FeatureReports = Electron.FeatureReports;
2430124368 type FoundInPageResult = Electron.FoundInPageResult;
24369+ type InputReports = Electron.InputReports;
2430224370 type LaunchItems = Electron.LaunchItems;
2430324371 type Margins = Electron.Margins;
2430424372 type MediaFlags = Electron.MediaFlags;
2430524373 type Metadata = Electron.Metadata;
24374+ type OutputReports = Electron.OutputReports;
2430624375 type PageRanges = Electron.PageRanges;
2430724376 type Params = Electron.Params;
2430824377 type Planes = Electron.Planes;
@@ -24429,6 +24498,7 @@ declare namespace Electron {
2442924498 type ClientCertRequestParams = Electron.ClientCertRequestParams;
2443024499 type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
2443124500 type CloseOpts = Electron.CloseOpts;
24501+ type Collections = Electron.Collections;
2443224502 type Config = Electron.Config;
2443324503 type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
2443424504 type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
@@ -24597,13 +24667,17 @@ declare namespace Electron {
2459724667 type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
2459824668 type WillNavigateEvent = Electron.WillNavigateEvent;
2459924669 type WillResizeDetails = Electron.WillResizeDetails;
24670+ type Children = Electron.Children;
2460024671 type EditFlags = Electron.EditFlags;
2460124672 type Env = Electron.Env;
24673+ type FeatureReports = Electron.FeatureReports;
2460224674 type FoundInPageResult = Electron.FoundInPageResult;
24675+ type InputReports = Electron.InputReports;
2460324676 type LaunchItems = Electron.LaunchItems;
2460424677 type Margins = Electron.Margins;
2460524678 type MediaFlags = Electron.MediaFlags;
2460624679 type Metadata = Electron.Metadata;
24680+ type OutputReports = Electron.OutputReports;
2460724681 type PageRanges = Electron.PageRanges;
2460824682 type Params = Electron.Params;
2460924683 type Planes = Electron.Planes;
@@ -24824,6 +24898,7 @@ declare namespace Electron {
2482424898 type ClientCertRequestParams = Electron.ClientCertRequestParams;
2482524899 type ClientRequestConstructorOptions = Electron.ClientRequestConstructorOptions;
2482624900 type CloseOpts = Electron.CloseOpts;
24901+ type Collections = Electron.Collections;
2482724902 type Config = Electron.Config;
2482824903 type ConfigureHostResolverOptions = Electron.ConfigureHostResolverOptions;
2482924904 type ConsoleMessageEvent = Electron.ConsoleMessageEvent;
@@ -24992,13 +25067,17 @@ declare namespace Electron {
2499225067 type WillFrameNavigateEvent = Electron.WillFrameNavigateEvent;
2499325068 type WillNavigateEvent = Electron.WillNavigateEvent;
2499425069 type WillResizeDetails = Electron.WillResizeDetails;
25070+ type Children = Electron.Children;
2499525071 type EditFlags = Electron.EditFlags;
2499625072 type Env = Electron.Env;
25073+ type FeatureReports = Electron.FeatureReports;
2499725074 type FoundInPageResult = Electron.FoundInPageResult;
25075+ type InputReports = Electron.InputReports;
2499825076 type LaunchItems = Electron.LaunchItems;
2499925077 type Margins = Electron.Margins;
2500025078 type MediaFlags = Electron.MediaFlags;
2500125079 type Metadata = Electron.Metadata;
25080+ type OutputReports = Electron.OutputReports;
2500225081 type PageRanges = Electron.PageRanges;
2500325082 type Params = Electron.Params;
2500425083 type Planes = Electron.Planes;
0 commit comments