@types/chrome 0.0.251 → 0.0.252

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
chrome/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 09 Nov 2023 17:36:25 GMT
11
+ * Last updated: Mon, 20 Nov 2023 23:36:23 GMT
12
12
  * Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
13
13
 
14
14
  # Credits
@@ -95,7 +95,7 @@ declare namespace chrome.cast {
95
95
  /**
96
96
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.VERSION
97
97
  */
98
- export var VERSION: Array<number>;
98
+ export var VERSION: number[];
99
99
 
100
100
  /**
101
101
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.isAvailable
@@ -156,7 +156,7 @@ declare namespace chrome.cast {
156
156
  * @param errorCallback
157
157
  */
158
158
  export function setCustomReceivers(
159
- receivers: Array<chrome.cast.Receiver>,
159
+ receivers: chrome.cast.Receiver[],
160
160
  successCallback: Function,
161
161
  errorCallback: (error: chrome.cast.Error) => void,
162
162
  ): void;
@@ -247,10 +247,10 @@ declare namespace chrome.cast {
247
247
  * @param opt_timeout
248
248
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.SessionRequest
249
249
  */
250
- constructor(appId: string, capabilities?: Array<chrome.cast.Capability>, timeout?: number);
250
+ constructor(appId: string, capabilities?: chrome.cast.Capability[], timeout?: number);
251
251
 
252
252
  appId: string;
253
- capabilities: Array<chrome.cast.Capability>;
253
+ capabilities: chrome.cast.Capability[];
254
254
  requestSessionTimeout: number;
255
255
  language: string | null;
256
256
  }
@@ -268,18 +268,18 @@ declare namespace chrome.cast {
268
268
  sessionId: string,
269
269
  appId: string,
270
270
  displayName: string,
271
- appImages: Array<chrome.cast.Image>,
271
+ appImages: chrome.cast.Image[],
272
272
  receiver: chrome.cast.Receiver,
273
273
  );
274
274
 
275
275
  sessionId: string;
276
276
  appId: string;
277
277
  displayName: string;
278
- appImages: Array<chrome.cast.Image>;
278
+ appImages: chrome.cast.Image[];
279
279
  receiver: chrome.cast.Receiver;
280
- senderApps: Array<chrome.cast.SenderApplication>;
280
+ senderApps: chrome.cast.SenderApplication[];
281
281
  namespaces: Array<{ name: string }>;
282
- media: Array<chrome.cast.media.Media>;
282
+ media: chrome.cast.media.Media[];
283
283
  status: chrome.cast.SessionStatus;
284
284
  statusText: string | null;
285
285
  transportId: string;
@@ -397,13 +397,13 @@ declare namespace chrome.cast {
397
397
  constructor(
398
398
  label: string,
399
399
  friendlyName: string,
400
- capabilities?: Array<chrome.cast.Capability>,
400
+ capabilities?: chrome.cast.Capability[],
401
401
  volume?: chrome.cast.Volume,
402
402
  );
403
403
 
404
404
  label: string;
405
405
  friendlyName: string;
406
- capabilities: Array<chrome.cast.Capability>;
406
+ capabilities: chrome.cast.Capability[];
407
407
  volume: chrome.cast.Volume;
408
408
  receiverType: chrome.cast.ReceiverType;
409
409
  displayStatus: chrome.cast.ReceiverDisplayStatus;
@@ -415,10 +415,10 @@ declare namespace chrome.cast {
415
415
  * @param appImages
416
416
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ReceiverDisplayStatus
417
417
  */
418
- constructor(statusText: string, appImages: Array<chrome.cast.Image>);
418
+ constructor(statusText: string, appImages: chrome.cast.Image[]);
419
419
 
420
420
  statusText: string;
421
- appImages: Array<chrome.cast.Image>;
421
+ appImages: chrome.cast.Image[];
422
422
  }
423
423
 
424
424
  export class Volume {
@@ -512,7 +512,7 @@ declare namespace chrome.cast.media {
512
512
  */
513
513
  constructor(mediaInfo: chrome.cast.media.MediaInfo);
514
514
 
515
- activeTrackIds: Array<Number>;
515
+ activeTrackIds: Number[];
516
516
  autoplay: boolean;
517
517
  customData: Object;
518
518
  itemId: number;
@@ -526,10 +526,10 @@ declare namespace chrome.cast.media {
526
526
  * @param items
527
527
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueLoadRequest
528
528
  */
529
- constructor(items: Array<chrome.cast.media.QueueItem>);
529
+ constructor(items: chrome.cast.media.QueueItem[]);
530
530
 
531
531
  customData: Object;
532
- items: Array<chrome.cast.media.QueueItem>;
532
+ items: chrome.cast.media.QueueItem[];
533
533
  repeatMode: chrome.cast.media.RepeatMode;
534
534
  startIndex: number;
535
535
  }
@@ -539,11 +539,11 @@ declare namespace chrome.cast.media {
539
539
  * @param itemsToInsert
540
540
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueInsertItemsRequest
541
541
  */
542
- constructor(itemsToInsert: Array<chrome.cast.media.QueueItem>);
542
+ constructor(itemsToInsert: chrome.cast.media.QueueItem[]);
543
543
 
544
544
  customData: Object;
545
545
  insertBefore: number;
546
- items: Array<chrome.cast.media.QueueItem>;
546
+ items: chrome.cast.media.QueueItem[];
547
547
  }
548
548
 
549
549
  export class QueueRemoveItemsRequest {
@@ -551,10 +551,10 @@ declare namespace chrome.cast.media {
551
551
  * @param itemIdsToRemove
552
552
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueRemoveItemsRequest
553
553
  */
554
- constructor(itemIdsToRemove: Array<number>);
554
+ constructor(itemIdsToRemove: number[]);
555
555
 
556
556
  customData: Object;
557
- itemIds: Array<number>;
557
+ itemIds: number[];
558
558
  }
559
559
 
560
560
  export class QueueReorderItemsRequest {
@@ -562,11 +562,11 @@ declare namespace chrome.cast.media {
562
562
  * @param itemIdsToReorder
563
563
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueReorderItemsRequest
564
564
  */
565
- constructor(itemIdsToReorder: Array<number>);
565
+ constructor(itemIdsToReorder: number[]);
566
566
 
567
567
  customData: Object;
568
568
  insertBefore: number;
569
- itemIds: Array<number>;
569
+ itemIds: number[];
570
570
  }
571
571
 
572
572
  export class QueueUpdateItemsRequest {
@@ -574,10 +574,10 @@ declare namespace chrome.cast.media {
574
574
  * @param itemsToUpdate
575
575
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.QueueUpdateItemsRequest
576
576
  */
577
- constructor(itemsToUpdate: Array<chrome.cast.media.QueueItem>);
577
+ constructor(itemsToUpdate: chrome.cast.media.QueueItem[]);
578
578
 
579
579
  customData: Object;
580
- item: Array<chrome.cast.media.QueueItem>;
580
+ item: chrome.cast.media.QueueItem[];
581
581
  }
582
582
 
583
583
  /**
@@ -708,7 +708,7 @@ declare namespace chrome.cast.media {
708
708
  */
709
709
  constructor(mediaInfo: chrome.cast.media.MediaInfo);
710
710
 
711
- activeTrackIds: Array<number>;
711
+ activeTrackIds: number[];
712
712
  autoplay: boolean;
713
713
  currentTime: number;
714
714
  customData: Object;
@@ -722,14 +722,14 @@ declare namespace chrome.cast.media {
722
722
  * @param opt_textTrackStyle
723
723
  * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.EditTracksInfoRequest
724
724
  */
725
- constructor(activeTrackIds?: Array<number>, textTrackStyle?: chrome.cast.media.TextTrackStyle);
725
+ constructor(activeTrackIds?: number[], textTrackStyle?: chrome.cast.media.TextTrackStyle);
726
726
 
727
- activeTrackIds: Array<number>;
727
+ activeTrackIds: number[];
728
728
  textTrackStyle: chrome.cast.media.TextTrackStyle;
729
729
  }
730
730
 
731
731
  export class GenericMediaMetadata {
732
- images: Array<chrome.cast.Image>;
732
+ images: chrome.cast.Image[];
733
733
  metadataType: chrome.cast.media.MetadataType;
734
734
  releaseDate: string;
735
735
  /** @deprecated Use releaseDate instead. */
@@ -746,7 +746,7 @@ declare namespace chrome.cast.media {
746
746
  */
747
747
  constructor();
748
748
 
749
- images: Array<chrome.cast.Image>;
749
+ images: chrome.cast.Image[];
750
750
  metadataType: chrome.cast.media.MetadataType;
751
751
  releaseDate: string;
752
752
  /** @deprecated Use releaseDate instead. */
@@ -769,7 +769,7 @@ declare namespace chrome.cast.media {
769
769
  title: string;
770
770
  season: number;
771
771
  episode: number;
772
- images: Array<chrome.cast.Image>;
772
+ images: chrome.cast.Image[];
773
773
  originalAirdate: string;
774
774
 
775
775
  /** @deprecated Use metadataType instead. */
@@ -799,7 +799,7 @@ declare namespace chrome.cast.media {
799
799
  songName: string;
800
800
  trackNumber: number;
801
801
  discNumber: number;
802
- images: Array<chrome.cast.Image>;
802
+ images: chrome.cast.Image[];
803
803
  releaseDate: string;
804
804
 
805
805
  /** @deprecated Use metadataType instead. */
@@ -820,7 +820,7 @@ declare namespace chrome.cast.media {
820
820
  title: string;
821
821
  artist: string;
822
822
  location: string;
823
- images: Array<chrome.cast.Image>;
823
+ images: chrome.cast.Image[];
824
824
  latitude: number;
825
825
  longitude: number;
826
826
  width: number;
@@ -844,7 +844,7 @@ declare namespace chrome.cast.media {
844
844
  contentType: string;
845
845
  metadata: any;
846
846
  duration: number;
847
- tracks: Array<chrome.cast.media.Track>;
847
+ tracks: chrome.cast.media.Track[];
848
848
  textTrackStyle: chrome.cast.media.TextTrackStyle;
849
849
  customData: Object;
850
850
  }
@@ -857,11 +857,11 @@ declare namespace chrome.cast.media {
857
857
  */
858
858
  constructor(sessionId: string, mediaSessionId: number);
859
859
 
860
- activeTrackIds: Array<number>;
860
+ activeTrackIds: number[];
861
861
  currentItemId: number;
862
862
  customData: Object;
863
863
  idleReason: chrome.cast.media.IdleReason | null;
864
- items: Array<chrome.cast.media.QueueItem>;
864
+ items: chrome.cast.media.QueueItem[];
865
865
  liveSeekableRange?: chrome.cast.media.LiveSeekableRange | undefined;
866
866
  loadingItemId: number;
867
867
  media: chrome.cast.media.MediaInfo;
@@ -871,7 +871,7 @@ declare namespace chrome.cast.media {
871
871
  preloadedItemId: number;
872
872
  repeatMode: chrome.cast.media.RepeatMode;
873
873
  sessionId: string;
874
- supportedMediaCommands: Array<chrome.cast.media.MediaCommand>;
874
+ supportedMediaCommands: chrome.cast.media.MediaCommand[];
875
875
  volume: chrome.cast.Volume;
876
876
 
877
877
  /** @deprecated Use getEstimatedTime instead */
chrome/index.d.ts CHANGED
@@ -2166,7 +2166,7 @@ declare namespace chrome.declarativeContent {
2166
2166
  /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array. */
2167
2167
  schemes?: string[] | undefined;
2168
2168
  /** Optional. Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200. */
2169
- ports?: (number | number[])[] | undefined;
2169
+ ports?: Array<number | number[]> | undefined;
2170
2170
  }
2171
2171
 
2172
2172
  export class PageStateMatcherProperties {
@@ -3411,7 +3411,7 @@ declare namespace chrome.events {
3411
3411
  /** Optional. Matches if the URL (without fragment identifier) ends with a specified string. Port numbers are stripped from the URL if they match the default port number. */
3412
3412
  urlSuffix?: string | undefined;
3413
3413
  /** Optional. Matches if the port of the URL is contained in any of the specified port lists. For example [80, 443, [1000, 1200]] matches all requests on port 80, 443 and in the range 1000-1200. */
3414
- ports?: (number | number[])[] | undefined;
3414
+ ports?: Array<number | number[]> | undefined;
3415
3415
  /**
3416
3416
  * Optional.
3417
3417
  * Since Chrome 28.
@@ -7270,37 +7270,45 @@ declare namespace chrome.runtime {
7270
7270
  matches?: string[] | undefined;
7271
7271
  permissions?: string[] | undefined;
7272
7272
  } | undefined;
7273
- content_scripts?: {
7274
- matches?: string[] | undefined;
7275
- exclude_matches?: string[] | undefined;
7276
- css?: string[] | undefined;
7277
- js?: string[] | undefined;
7278
- run_at?: string | undefined;
7279
- all_frames?: boolean | undefined;
7280
- match_about_blank?: boolean | undefined;
7281
- include_globs?: string[] | undefined;
7282
- exclude_globs?: string[] | undefined;
7283
- }[] | undefined;
7273
+ content_scripts?:
7274
+ | Array<{
7275
+ matches?: string[] | undefined;
7276
+ exclude_matches?: string[] | undefined;
7277
+ css?: string[] | undefined;
7278
+ js?: string[] | undefined;
7279
+ run_at?: string | undefined;
7280
+ all_frames?: boolean | undefined;
7281
+ match_about_blank?: boolean | undefined;
7282
+ include_globs?: string[] | undefined;
7283
+ exclude_globs?: string[] | undefined;
7284
+ }>
7285
+ | undefined;
7284
7286
  converted_from_user_script?: boolean | undefined;
7285
7287
  current_locale?: string | undefined;
7286
7288
  devtools_page?: string | undefined;
7287
- event_rules?: {
7288
- event?: string | undefined;
7289
- actions?: {
7290
- type: string;
7291
- }[] | undefined;
7292
- conditions?: chrome.declarativeContent.PageStateMatcherProperties[] | undefined;
7293
- }[] | undefined;
7289
+ event_rules?:
7290
+ | Array<{
7291
+ event?: string | undefined;
7292
+ actions?:
7293
+ | Array<{
7294
+ type: string;
7295
+ }>
7296
+ | undefined;
7297
+ conditions?: chrome.declarativeContent.PageStateMatcherProperties[] | undefined;
7298
+ }>
7299
+ | undefined;
7294
7300
  externally_connectable?: {
7295
7301
  ids?: string[] | undefined;
7296
7302
  matches?: string[] | undefined;
7297
7303
  accepts_tls_channel_id?: boolean | undefined;
7298
7304
  } | undefined;
7299
- file_browser_handlers?: {
7300
- id?: string | undefined;
7301
- default_title?: string | undefined;
7302
- file_filters?: string[] | undefined;
7303
- }[] | undefined;
7305
+ file_browser_handlers?:
7306
+ | Array<{
7307
+ id?: string | undefined;
7308
+ default_title?: string | undefined;
7309
+ file_filters?: string[] | undefined;
7310
+ }>
7311
+ | undefined;
7304
7312
  file_system_provider_capabilities?: {
7305
7313
  configurable?: boolean | undefined;
7306
7314
  watchable?: boolean | undefined;
@@ -7308,29 +7316,35 @@ declare namespace chrome.runtime {
7308
7316
  source?: string | undefined;
7309
7317
  } | undefined;
7310
7318
  homepage_url?: string | undefined;
7311
- import?: {
7312
- id: string;
7313
- minimum_version?: string | undefined;
7314
- }[] | undefined;
7319
+ import?:
7320
+ | Array<{
7321
+ id: string;
7322
+ minimum_version?: string | undefined;
7323
+ }>
7324
+ | undefined;
7315
7325
  export?: {
7316
7326
  whitelist?: string[] | undefined;
7317
7327
  } | undefined;
7318
7328
  incognito?: string | undefined;
7319
- input_components?: {
7320
- name?: string | undefined;
7321
- type?: string | undefined;
7322
- id?: string | undefined;
7323
- description?: string | undefined;
7324
- language?: string[] | string | undefined;
7325
- layouts?: string[] | undefined;
7326
- indicator?: string | undefined;
7327
- }[] | undefined;
7329
+ input_components?:
7330
+ | Array<{
7331
+ name?: string | undefined;
7332
+ type?: string | undefined;
7333
+ id?: string | undefined;
7334
+ description?: string | undefined;
7335
+ language?: string[] | string | undefined;
7336
+ layouts?: string[] | undefined;
7337
+ indicator?: string | undefined;
7338
+ }>
7339
+ | undefined;
7328
7340
  key?: string | undefined;
7329
7341
  minimum_chrome_version?: string | undefined;
7330
- nacl_modules?: {
7331
- path: string;
7332
- mime_type: string;
7333
- }[] | undefined;
7342
+ nacl_modules?:
7343
+ | Array<{
7344
+ path: string;
7345
+ mime_type: string;
7346
+ }>
7347
+ | undefined;
7334
7348
  oauth2?: {
7335
7349
  client_id: string;
7336
7350
  scopes?: string[] | undefined;
@@ -7345,13 +7359,17 @@ declare namespace chrome.runtime {
7345
7359
  chrome_style?: boolean | undefined;
7346
7360
  open_in_tab?: boolean | undefined;
7347
7361
  } | undefined;
7348
- platforms?: {
7349
- nacl_arch?: string | undefined;
7350
- sub_package_path: string;
7351
- }[] | undefined;
7352
- plugins?: {
7353
- path: string;
7354
- }[] | undefined;
7362
+ platforms?:
7363
+ | Array<{
7364
+ nacl_arch?: string | undefined;
7365
+ sub_package_path: string;
7366
+ }>
7367
+ | undefined;
7368
+ plugins?:
7369
+ | Array<{
7370
+ path: string;
7371
+ }>
7372
+ | undefined;
7355
7373
  requirements?: {
7356
7374
  "3D"?: {
7357
7375
  features?: string[] | undefined;
@@ -7375,12 +7393,12 @@ declare namespace chrome.runtime {
7375
7393
  managed_schema: string;
7376
7394
  } | undefined;
7377
7395
  tts_engine?: {
7378
- voices: {
7396
+ voices: Array<{
7379
7397
  voice_name: string;
7380
7398
  lang?: string | undefined;
7381
7399
  gender?: string | undefined;
7382
7400
  event_types?: string[] | undefined;
7383
- }[];
7401
+ }>;
7384
7402
  } | undefined;
7385
7403
  update_url?: string | undefined;
7386
7404
  version_name?: string | undefined;
@@ -7421,18 +7439,20 @@ declare namespace chrome.runtime {
7421
7439
  type?: "module"; // If the service worker uses ES modules
7422
7440
  }
7423
7441
  | undefined;
7424
- content_scripts?: {
7425
- matches?: string[] | undefined;
7426
- exclude_matches?: string[] | undefined;
7427
- css?: string[] | undefined;
7428
- js?: string[] | undefined;
7429
- run_at?: string | undefined;
7430
- all_frames?: boolean | undefined;
7431
- match_about_blank?: boolean | undefined;
7432
- include_globs?: string[] | undefined;
7433
- exclude_globs?: string[] | undefined;
7434
- world?: "ISOLATED" | "MAIN" | undefined;
7435
- }[] | undefined;
7442
+ content_scripts?:
7443
+ | Array<{
7444
+ matches?: string[] | undefined;
7445
+ exclude_matches?: string[] | undefined;
7446
+ css?: string[] | undefined;
7447
+ js?: string[] | undefined;
7448
+ run_at?: string | undefined;
7449
+ all_frames?: boolean | undefined;
7450
+ match_about_blank?: boolean | undefined;
7451
+ include_globs?: string[] | undefined;
7452
+ exclude_globs?: string[] | undefined;
7453
+ world?: "ISOLATED" | "MAIN" | undefined;
7454
+ }>
7455
+ | undefined;
7436
7456
  content_security_policy?: {
7437
7457
  extension_pages?: string;
7438
7458
  sandbox?: string;
@@ -7440,7 +7460,7 @@ declare namespace chrome.runtime {
7440
7460
  host_permissions?: string[] | undefined;
7441
7461
  optional_permissions?: ManifestPermissions[] | undefined;
7442
7462
  permissions?: ManifestPermissions[] | undefined;
7443
- web_accessible_resources?: { resources: string[]; matches: string[] }[] | undefined;
7463
+ web_accessible_resources?: Array<{ resources: string[]; matches: string[] }> | undefined;
7444
7464
  }
7445
7465
 
7446
7466
  export type Manifest = ManifestV2 | ManifestV3;
@@ -7781,7 +7801,7 @@ declare namespace chrome.scripting {
7781
7801
  */
7782
7802
  export function executeScript<Args extends any[], Result>(
7783
7803
  injection: ScriptInjection<Args, Result>,
7784
- ): Promise<InjectionResult<Awaited<Result>>[]>;
7804
+ ): Promise<Array<InjectionResult<Awaited<Result>>>>;
7785
7805
 
7786
7806
  /**
7787
7807
  * Injects a script into a target context. The script will be run at document_end.
@@ -7792,7 +7812,7 @@ declare namespace chrome.scripting {
7792
7812
  */
7793
7813
  export function executeScript<Args extends any[], Result>(
7794
7814
  injection: ScriptInjection<Args, Result>,
7795
- callback: (results: InjectionResult<Awaited<Result>>[]) => void,
7815
+ callback: (results: Array<InjectionResult<Awaited<Result>>>) => void,
7796
7816
  ): void;
7797
7817
 
7798
7818
  /**
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.0.251",
3
+ "version": "0.0.252",
4
4
  "description": "TypeScript definitions for chrome",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
6
6
  "license": "MIT",
@@ -93,6 +93,6 @@
93
93
  "@types/filesystem": "*",
94
94
  "@types/har-format": "*"
95
95
  },
96
- "typesPublisherContentHash": "c573dbaafc6ec5b81d1e2706b1c732aaeb55cf9541939c5ff4ea29c521af1abb",
96
+ "typesPublisherContentHash": "dca1bd9e1bd607c199132d09e1051c5c05dd3351ac7400b5749a5775f7daf4e5",
97
97
  "typeScriptVersion": "4.5"
98
98
  }