@types/chrome
Advanced tools
+193
-198
@@ -13,8 +13,9 @@ // Type definitions for Chrome Cast application development | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.AutoJoinPolicy | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.AutoJoinPolicy | ||
| */ | ||
| export interface AutoJoinPolicy { | ||
| TAB_AND_ORIGIN_SCOPED: string; | ||
| ORIGIN_SCOPED: string; | ||
| PAGE_SCOPED: string; | ||
| export enum AutoJoinPolicy { | ||
| CUSTOM_CONTROLLER_SCOPED = "custom_controller_scoped", | ||
| TAB_AND_ORIGIN_SCOPED = "tab_and_origin_scoped", | ||
| ORIGIN_SCOPED = "origin_scoped", | ||
| PAGE_SCOPED = "page_scoped" | ||
| } | ||
@@ -24,7 +25,7 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.DefaultActionPolicy | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.DefaultActionPolicy | ||
| */ | ||
| export interface DefaultActionPolicy { | ||
| CREATE_SESSION: string; | ||
| CAST_THIS_TAB: string; | ||
| export enum DefaultActionPolicy { | ||
| CREATE_SESSION = "create_session", | ||
| CAST_THIS_TAB = "cast_this_tab" | ||
| } | ||
@@ -34,9 +35,10 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.Capability | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.Capability | ||
| */ | ||
| export interface Capability { | ||
| VIDEO_OUT: string; | ||
| AUDIO_OUT: string; | ||
| VIDEO_IN: string; | ||
| AUDIO_IN: string; | ||
| export enum Capability { | ||
| VIDEO_OUT = "video_out", | ||
| AUDIO_OUT = "audio_out", | ||
| VIDEO_IN = "video_in", | ||
| AUDIO_IN = "audio_in", | ||
| MULTIZONE_GROUP = "multizone_group" | ||
| } | ||
@@ -46,15 +48,15 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ErrorCode | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.ErrorCode | ||
| */ | ||
| export interface ErrorCode { | ||
| CANCEL: string; | ||
| TIMEOUT: string; | ||
| API_NOT_INITIALIZED: string; | ||
| INVALID_PARAMETER: string; | ||
| EXTENSION_NOT_COMPATIBLE: string; | ||
| EXTENSION_MISSING: string; | ||
| RECEIVER_UNAVAILABLE: string; | ||
| SESSION_ERROR: string; | ||
| CHANNEL_ERROR: string; | ||
| LOAD_MEDIA_FAILED: string; | ||
| export enum ErrorCode { | ||
| CANCEL = "cancel", | ||
| TIMEOUT = "timeout", | ||
| API_NOT_INITIALIZED = "api_not_initialized", | ||
| INVALID_PARAMETER = "invalid_parameter", | ||
| EXTENSION_NOT_COMPATIBLE = "extension_not_compatible", | ||
| EXTENSION_MISSING = "extension_missing", | ||
| RECEIVER_UNAVAILABLE = "receiver_unavailable", | ||
| SESSION_ERROR = "session_error", | ||
| CHANNEL_ERROR = "channel_error", | ||
| LOAD_MEDIA_FAILED = "load_media_failed" | ||
| } | ||
@@ -64,7 +66,7 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ReceiverAvailability | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.ReceiverAvailability | ||
| */ | ||
| export interface ReceiverAvailability { | ||
| AVAILABLE: string; | ||
| UNAVAILABLE: string; | ||
| export enum ReceiverAvailability { | ||
| AVAILABLE = "available", | ||
| UNAVAILABLE = "unavailable" | ||
| } | ||
@@ -74,8 +76,8 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.SenderPlatform | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.SenderPlatform | ||
| */ | ||
| export interface SenderPlatform { | ||
| CHROME: string; | ||
| IOS: string; | ||
| ANDROID: string; | ||
| export enum SenderPlatform { | ||
| CHROME = "chrome", | ||
| IOS = "ios", | ||
| ANDROID = "android" | ||
| } | ||
@@ -85,8 +87,9 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ReceiverType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.ReceiverType | ||
| */ | ||
| export interface ReceiverType { | ||
| CAST: string; | ||
| HANGOUT: string; | ||
| CUSTOM: string; | ||
| export enum ReceiverType { | ||
| CAST = "cast", | ||
| DIAL = "dial", | ||
| HANGOUT = "hangout", | ||
| CUSTOM = "custom" | ||
| } | ||
@@ -96,7 +99,7 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.ReceiverAction | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.ReceiverAction | ||
| */ | ||
| export interface ReceiverAction { | ||
| CAST: string; | ||
| STOP: string; | ||
| export enum ReceiverAction { | ||
| CAST = "cast", | ||
| STOP = "stop" | ||
| } | ||
@@ -108,8 +111,8 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.SessionStatus | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast#.SessionStatus | ||
| */ | ||
| export interface SessionStatus { | ||
| CONNECTED: string; | ||
| DISCONNECTED: string; | ||
| STOPPED: string; | ||
| export enum SessionStatus { | ||
| CONNECTED = "connected", | ||
| DISCONNECTED = "disconnected", | ||
| STOPPED = "stopped" | ||
| } | ||
@@ -220,3 +223,3 @@ | ||
| defaultActionPolicy?: chrome.cast.DefaultActionPolicy | ||
| ):ApiConfig; | ||
| ): ApiConfig; | ||
@@ -242,3 +245,3 @@ sessionRequest: chrome.cast.SessionRequest; | ||
| details?: Object | ||
| ):Error; | ||
| ): Error; | ||
@@ -251,3 +254,3 @@ code: chrome.cast.ErrorCode; | ||
| export interface Image { | ||
| export class Image { | ||
| /** | ||
@@ -258,5 +261,3 @@ * @param {string} url | ||
| */ | ||
| new( | ||
| url: string | ||
| ):Image; | ||
| constructor(url: string); | ||
@@ -276,3 +277,3 @@ url: string; | ||
| platform: chrome.cast.SenderPlatform | ||
| ):SenderApplication; | ||
| ): SenderApplication; | ||
@@ -296,3 +297,3 @@ platform: chrome.cast.SenderPlatform; | ||
| timeout?: number | ||
| ):SessionRequest; | ||
| ): SessionRequest; | ||
@@ -321,3 +322,3 @@ appId: string; | ||
| receiver: chrome.cast.Receiver | ||
| ):Session; | ||
| ): Session; | ||
@@ -330,3 +331,3 @@ sessionId: string; | ||
| senderApps: Array<chrome.cast.SenderApplication>; | ||
| namespaces: Array<{name: string}>; | ||
| namespaces: Array<{ name: string }>; | ||
| media: Array<chrome.cast.media.Media>; | ||
@@ -344,3 +345,3 @@ status: chrome.cast.SessionStatus | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -356,3 +357,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -366,3 +367,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -376,3 +377,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -390,3 +391,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -397,4 +398,4 @@ /** | ||
| addUpdateListener( | ||
| listener: (isAlive:boolean) => void | ||
| ):void | ||
| listener: (isAlive: boolean) => void | ||
| ): void | ||
@@ -405,4 +406,4 @@ /** | ||
| removeUpdateListener( | ||
| listener: (isAlive:boolean) => void | ||
| ):void | ||
| listener: (isAlive: boolean) => void | ||
| ): void | ||
@@ -416,3 +417,3 @@ /** | ||
| listener: (namespace: string, message: string) => void | ||
| ):void | ||
| ): void | ||
@@ -425,4 +426,4 @@ /** | ||
| namespace: string, | ||
| listener: (namespace:string, message:string) => void | ||
| ):void | ||
| listener: (namespace: string, message: string) => void | ||
| ): void | ||
@@ -434,3 +435,3 @@ /** | ||
| listener: (media: chrome.cast.media.Media) => void | ||
| ):void | ||
| ): void | ||
@@ -442,3 +443,3 @@ /** | ||
| listener: (media: chrome.cast.media.Media) => void | ||
| ):void | ||
| ): void | ||
@@ -454,3 +455,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
@@ -466,3 +467,3 @@ /** | ||
| errorCallback: (error: chrome.cast.Error) => void | ||
| ):void | ||
| ): void | ||
| } | ||
@@ -484,3 +485,3 @@ | ||
| volume?: chrome.cast.Volume | ||
| ):Receiver; | ||
| ): Receiver; | ||
@@ -505,3 +506,3 @@ label: string; | ||
| appImages: Array<chrome.cast.Image> | ||
| ):ReceiverDisplayStatus; | ||
| ): ReceiverDisplayStatus; | ||
@@ -522,3 +523,3 @@ statusText: string; | ||
| muted?: boolean | ||
| ):Volume; | ||
| ): Volume; | ||
@@ -536,9 +537,9 @@ level?: number; | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MediaCommand | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.MediaCommand | ||
| */ | ||
| export interface MediaCommand { | ||
| PAUSE: string; | ||
| SEEK: string; | ||
| STREAM_VOLUME: string; | ||
| STREAM_MUTE: string; | ||
| export enum MediaCommand { | ||
| PAUSE = "pause", | ||
| SEEK = "seek", | ||
| STREAM_VOLUME = "stream_volume", | ||
| STREAM_MUTE = "stream_mute" | ||
| } | ||
@@ -548,10 +549,10 @@ | ||
| * @enum {number} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MetadataType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.MetadataType | ||
| */ | ||
| export interface MetadataType { | ||
| GENERIC: number; | ||
| TV_SHOW: number; | ||
| MOVIE: number; | ||
| MUSIC_TRACK: number; | ||
| PHOTO: number; | ||
| export enum MetadataType { | ||
| GENERIC, | ||
| TV_SHOW, | ||
| MOVIE, | ||
| MUSIC_TRACK, | ||
| PHOTO | ||
| } | ||
@@ -561,9 +562,9 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.PlayerState | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.PlayerState | ||
| */ | ||
| export interface PlayerState { | ||
| IDLE: string; | ||
| PLAYING: string; | ||
| PAUSED: string; | ||
| BUFFERING: string; | ||
| export enum PlayerState { | ||
| IDLE = "IDLE", | ||
| PLAYING = "PLAYING", | ||
| PAUSED = "PAUSED", | ||
| BUFFERING = "BUFFERING" | ||
| } | ||
@@ -573,7 +574,7 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.ResumeState | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.ResumeState | ||
| */ | ||
| export interface ResumeState { | ||
| PLAYBACK_START: string; | ||
| PLAYBACK_PAUSE: string; | ||
| export enum ResumeState { | ||
| PLAYBACK_START = "PLAYBACK_START", | ||
| PLAYBACK_PAUSE = "PLAYBACK_PAUSE" | ||
| } | ||
@@ -583,8 +584,8 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.StreamType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.StreamType | ||
| */ | ||
| export interface StreamType { | ||
| BUFFERED: string; | ||
| LIVE: string; | ||
| OTHER: string; | ||
| export enum StreamType { | ||
| BUFFERED = "BUFFERED", | ||
| LIVE = "LIVE", | ||
| OTHER = "OTHER" | ||
| } | ||
@@ -594,9 +595,9 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.IdleReason | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.IdleReason | ||
| */ | ||
| export interface IdleReason { | ||
| CANCELLED: string; | ||
| INTERRUPTED: string; | ||
| FINISHED: string; | ||
| ERROR: string; | ||
| export enum IdleReason { | ||
| CANCELLED = "CANCELLED", | ||
| INTERRUPTED = "INTERRUPTED", | ||
| FINISHED = "FINISHED", | ||
| ERROR = "ERROR" | ||
| } | ||
@@ -608,7 +609,7 @@ | ||
| */ | ||
| export interface RepeatMode { | ||
| OFF:string; | ||
| ALL:string; | ||
| SINGLE:string; | ||
| ALL_AND_SHUFFLE:string; | ||
| export enum RepeatMode { | ||
| OFF = "REPEAT_OFF", | ||
| ALL = "REPEAT_ALL", | ||
| SINGLE = "REPEAT_SINGLE", | ||
| ALL_AND_SHUFFLE = "REPEAT_ALL_AND_SHUFFLE" | ||
| } | ||
@@ -624,3 +625,3 @@ | ||
| mediaInfo: chrome.cast.media.MediaInfo | ||
| ):QueueItem; | ||
| ): QueueItem; | ||
@@ -644,3 +645,3 @@ activeTrackIds: Array<Number>; | ||
| items: Array<chrome.cast.media.QueueItem> | ||
| ):QueueLoadRequest; | ||
| ): QueueLoadRequest; | ||
@@ -661,6 +662,6 @@ customData: Object; | ||
| itemsToInsert: Array<chrome.cast.media.QueueItem> | ||
| ):QueueInsertItemsRequest; | ||
| ): QueueInsertItemsRequest; | ||
| customData: Object; | ||
| insertBefore:number; | ||
| insertBefore: number; | ||
| items: Array<chrome.cast.media.QueueItem>; | ||
@@ -677,3 +678,3 @@ } | ||
| itemIdsToRemove: Array<number> | ||
| ):QueueRemoveItemsRequest; | ||
| ): QueueRemoveItemsRequest; | ||
@@ -692,3 +693,3 @@ customData: Object; | ||
| itemIdsToReorder: Array<number> | ||
| ):QueueReorderItemsRequest; | ||
| ): QueueReorderItemsRequest; | ||
@@ -708,3 +709,3 @@ customData: Object; | ||
| itemsToUpdate: Array<chrome.cast.media.QueueItem> | ||
| ):QueueUpdateItemsRequest; | ||
| ): QueueUpdateItemsRequest; | ||
@@ -717,8 +718,8 @@ customData: Object; | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TrackType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TrackType | ||
| */ | ||
| export interface TrackType { | ||
| TEXT: string; | ||
| AUDIO: string; | ||
| VIDEO: string; | ||
| export enum TrackType { | ||
| TEXT = "TEXT", | ||
| AUDIO = "AUDIO", | ||
| VIDEO = "VIDEO" | ||
| } | ||
@@ -728,10 +729,10 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TextTrackType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TextTrackType | ||
| */ | ||
| export interface TextTrackType { | ||
| SUBTITLES: string; | ||
| CAPTIONS: string; | ||
| DESCRIPTIONS: string; | ||
| CHAPTERS: string; | ||
| METADATA: string; | ||
| export enum TextTrackType { | ||
| SUBTITLES = "SUBTITLES", | ||
| CAPTIONS = "CAPTIONS", | ||
| DESCRIPTIONS = "DESCRIPTIONS", | ||
| CHAPTERS = "CHAPTERS", | ||
| METADATA = "METADATA" | ||
| } | ||
@@ -741,10 +742,10 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TextTrackEdgeType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TextTrackEdgeType | ||
| */ | ||
| export interface TextTrackEdgeType { | ||
| NONE: string; | ||
| OUTLINE: string; | ||
| DROP_SHADOW: string; | ||
| RAISED: string; | ||
| DEPRESSED: string; | ||
| export enum TextTrackEdgeType { | ||
| NONE = "NONE", | ||
| OUTLINE = "OUTLINE", | ||
| DROP_SHADOW = "DROP_SHADOW", | ||
| RAISED = "RAISED", | ||
| DEPRESSED = "DEPRESSED" | ||
| } | ||
@@ -754,8 +755,8 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TextTrackWindowType | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TextTrackWindowType | ||
| */ | ||
| export interface TextTrackWindowType { | ||
| NONE: string; | ||
| NORMAL: string; | ||
| ROUNDED_CORNERS: string; | ||
| export enum TextTrackWindowType { | ||
| NONE = "NONE", | ||
| NORMAL = "NORMAL", | ||
| ROUNDED_CORNERS = "ROUNDED_CORNERS" | ||
| } | ||
@@ -765,12 +766,12 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TextTrackFontGenericFamily | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TextTrackFontGenericFamily | ||
| */ | ||
| export interface TextTrackFontGenericFamily { | ||
| SANS_SERIF: string; | ||
| MONOSPACED_SANS_SERIF: string; | ||
| SERIF: string; | ||
| MONOSPACED_SERIF: string; | ||
| CASUAL: string; | ||
| CURSIVE: string; | ||
| SMALL_CAPITALS: string; | ||
| export enum TextTrackFontGenericFamily { | ||
| SANS_SERIF = "SANS_SERIF", | ||
| MONOSPACED_SANS_SERIF = "MONOSPACED_SANS_SERIF", | ||
| SERIF = "SERIF", | ||
| MONOSPACED_SERIF = "MONOSPACED_SERIF", | ||
| CASUAL = "CASUAL", | ||
| CURSIVE = "CURSIVE", | ||
| SMALL_CAPITALS = "SMALL_CAPITALS" | ||
| } | ||
@@ -780,9 +781,9 @@ | ||
| * @enum {string} | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TextTrackFontStyle | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.TextTrackFontStyle | ||
| */ | ||
| export interface TextTrackFontStyle { | ||
| NORMAL: string; | ||
| BOLD: string; | ||
| BOLD_ITALIC: string; | ||
| ITALIC: string; | ||
| export enum TextTrackFontStyle { | ||
| NORMAL = "NORMAL", | ||
| BOLD = "BOLD", | ||
| BOLD_ITALIC = "BOLD_ITALIC", | ||
| ITALIC = "ITALIC" | ||
| } | ||
@@ -795,3 +796,3 @@ | ||
| */ | ||
| new():GetStatusRequest; | ||
| new(): GetStatusRequest; | ||
@@ -806,3 +807,3 @@ customData: Object; | ||
| */ | ||
| new():PauseRequest; | ||
| new(): PauseRequest; | ||
@@ -817,3 +818,3 @@ customData: Object; | ||
| */ | ||
| new():PlayRequest; | ||
| new(): PlayRequest; | ||
@@ -828,3 +829,3 @@ customData: Object; | ||
| */ | ||
| new():SeekRequest; | ||
| new(): SeekRequest; | ||
@@ -841,3 +842,3 @@ currentTime: number; | ||
| */ | ||
| new():StopRequest; | ||
| new(): StopRequest; | ||
@@ -855,3 +856,3 @@ customData: Object; | ||
| volume: chrome.cast.Volume | ||
| ):VolumeRequest; | ||
| ): VolumeRequest; | ||
@@ -862,3 +863,3 @@ volume: chrome.cast.Volume; | ||
| export interface LoadRequest { | ||
| export class LoadRequest { | ||
| /** | ||
@@ -869,5 +870,5 @@ * @param {!chrome.cast.media.MediaInfo} mediaInfo | ||
| */ | ||
| new( | ||
| constructor( | ||
| mediaInfo: chrome.cast.media.MediaInfo | ||
| ):LoadRequest; | ||
| ); | ||
@@ -891,3 +892,3 @@ activeTrackIds: Array<number>; | ||
| textTrackStyle?: chrome.cast.media.TextTrackStyle | ||
| ):EditTracksInfoRequest; | ||
| ): EditTracksInfoRequest; | ||
@@ -898,9 +899,3 @@ activeTrackIds: Array<number>; | ||
| export interface GenericMediaMetadata { | ||
| /** | ||
| * @constructor | ||
| * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.GenericMediaMetadata | ||
| */ | ||
| new():GenericMediaMetadata; | ||
| export class GenericMediaMetadata { | ||
| images: Array<chrome.cast.Image>; | ||
@@ -922,3 +917,3 @@ metadataType: chrome.cast.media.MetadataType; | ||
| */ | ||
| new():MovieMediaMetadata; | ||
| new(): MovieMediaMetadata; | ||
@@ -964,3 +959,3 @@ images: Array<chrome.cast.Image>; | ||
| export interface MusicTrackMediaMetadata { | ||
| export interface MusicTrackMediaMetadata { | ||
| /** | ||
@@ -1014,3 +1009,3 @@ * @constructor | ||
| export interface MediaInfo { | ||
| export class MediaInfo { | ||
| /** | ||
@@ -1022,6 +1017,6 @@ * @param {string} contentId | ||
| */ | ||
| new( | ||
| constructor( | ||
| contentId: string, | ||
| contentType: string | ||
| ): MediaInfo; | ||
| ); | ||
@@ -1158,3 +1153,3 @@ contentId: string; | ||
| addUpdateListener( | ||
| listener: (isAlive:boolean) => void | ||
| listener: (isAlive: boolean) => void | ||
| ): void | ||
@@ -1166,3 +1161,3 @@ | ||
| removeUpdateListener( | ||
| listener: (isAlive:boolean) => void | ||
| listener: (isAlive: boolean) => void | ||
| ): void | ||
@@ -1181,3 +1176,3 @@ | ||
| */ | ||
| queueAppendItem ( | ||
| queueAppendItem( | ||
| item: chrome.cast.media.QueueItem, | ||
@@ -1193,3 +1188,3 @@ successCallback: Function, | ||
| */ | ||
| queueInsertItems ( | ||
| queueInsertItems( | ||
| queueInsertItemsRequest: chrome.cast.media.QueueInsertItemsRequest, | ||
@@ -1205,3 +1200,3 @@ successCallback: Function, | ||
| */ | ||
| queueJumpToItem ( | ||
| queueJumpToItem( | ||
| itemId: number, | ||
@@ -1218,3 +1213,3 @@ successCallback: Function, | ||
| */ | ||
| queueMoveItemToNewIndex ( | ||
| queueMoveItemToNewIndex( | ||
| itemId: number, | ||
@@ -1230,3 +1225,3 @@ newIndex: number, | ||
| */ | ||
| queueNext ( | ||
| queueNext( | ||
| successCallback: Function, | ||
@@ -1240,3 +1235,3 @@ errorCallback: (error: chrome.cast.Error) => void | ||
| */ | ||
| queuePrev ( | ||
| queuePrev( | ||
| successCallback: Function, | ||
@@ -1251,3 +1246,3 @@ errorCallback: (error: chrome.cast.Error) => void | ||
| */ | ||
| queueRemoveItem ( | ||
| queueRemoveItem( | ||
| itemId: number, | ||
@@ -1263,3 +1258,3 @@ successCallback: Function, | ||
| */ | ||
| queueReorderItems ( | ||
| queueReorderItems( | ||
| queueReorderItemsRequest: chrome.cast.media.QueueReorderItemsRequest, | ||
@@ -1275,3 +1270,3 @@ successCallback: Function, | ||
| */ | ||
| queueSetRepeatMode ( | ||
| queueSetRepeatMode( | ||
| repeatMode: chrome.cast.media.RepeatMode, | ||
@@ -1287,3 +1282,3 @@ successCallback: Function, | ||
| */ | ||
| queueUpdateItems ( | ||
| queueUpdateItems( | ||
| queueUpdateItemsRequest: chrome.cast.media.QueueUpdateItemsRequest, | ||
@@ -1290,0 +1285,0 @@ successCallback: Function, |
| { | ||
| "name": "@types/chrome", | ||
| "version": "0.0.66", | ||
| "version": "0.0.67", | ||
| "description": "TypeScript definitions for Chrome extension development", | ||
@@ -36,3 +36,3 @@ "license": "MIT", | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git.git" | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
@@ -43,4 +43,4 @@ "scripts": {}, | ||
| }, | ||
| "typesPublisherContentHash": "4d2dbe283c9deaa78d7eb5084c9a72743eb3135828823940e901f60f3430dc2b", | ||
| "typesPublisherContentHash": "965c71511330abc3cde5978c03fa228f5e835c4fd3136bbfed7bda49777077aa", | ||
| "typeScriptVersion": "2.4" | ||
| } |
+2
-2
@@ -8,6 +8,6 @@ # Installation | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped.git/tree/master/types/chrome | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome | ||
| Additional Details | ||
| * Last updated: Sat, 19 May 2018 00:15:19 GMT | ||
| * Last updated: Thu, 31 May 2018 20:09:03 GMT | ||
| * Dependencies: filesystem | ||
@@ -14,0 +14,0 @@ * Global values: chrome |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
520900
0.06%9943
-0.04%