Skip to content

Commit 90cba21

Browse files
jbishop-cbsJon Bishop
andauthored
🤖 Merge PR DefinitelyTyped#74670 [@types/chromecast-caf-receiver] Revert const enum to enum by @jbishop-cbs
Co-authored-by: Jon Bishop <jonathan.bishop@paramount.com>
1 parent 55715dc commit 90cba21

File tree

6 files changed

+75
-54
lines changed

6 files changed

+75
-54
lines changed

‎types/chromecast-caf-receiver/cast.framework.d.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export import system = system;
1111
export import messages = messages;
1212

1313
export as namespace framework;
14-
export const enum LoggerLevel {
14+
export enum LoggerLevel {
1515
DEBUG = 0,
1616
VERBOSE = 500,
1717
INFO = 800,
@@ -24,7 +24,7 @@ export const enum LoggerLevel {
2424
* Content protection type.
2525
* @see https://developers.google.com/cast/docs/reference/web_receiver/cast.framework#.ContentProtection
2626
*/
27-
export const enum ContentProtection {
27+
export enum ContentProtection {
2828
NONE = "none",
2929
CLEARKEY = "clearkey",
3030
PLAYREADY = "playready",
@@ -997,7 +997,7 @@ export class NetworkRequestInfo {
997997
*
998998
* @see https://developers.google.com/cast/docs/reference/web_receiver/cast.framework#.ShakaVariant
999999
*/
1000-
export const enum ShakaVariant {
1000+
export enum ShakaVariant {
10011001
/**
10021002
* The standard, default build.
10031003
*/

‎types/chromecast-caf-receiver/cast.framework.events.d.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export as namespace events;
1717
* Player event types for @see{@link framework.PlayerManager}.
1818
* https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.events#.EventType
1919
*/
20-
export const enum EventType {
20+
export enum EventType {
2121
ALL = "*",
2222
ABORT = "ABORT",
2323
CAN_PLAY = "CAN_PLAY",
@@ -97,7 +97,7 @@ export const enum EventType {
9797
TRACKS_CHANGED = "TRACKS_CHANGED",
9898
}
9999

100-
export const enum DetailedErrorCode {
100+
export enum DetailedErrorCode {
101101
MEDIA_UNKNOWN = 100,
102102
MEDIA_ABORTED = 101,
103103
MEDIA_DECODE = 102,
@@ -144,7 +144,7 @@ export const enum DetailedErrorCode {
144144
* The error severity. Follows the same naming scheme and numbering as Shaka Player.
145145
* https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.events#.EventType
146146
*/
147-
export const enum ErrorSeverity {
147+
export enum ErrorSeverity {
148148
RECOVERABLE = 1,
149149
CRITICAL = 2,
150150
}

‎types/chromecast-caf-receiver/cast.framework.messages.d.ts‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export as namespace messages;
66
* Possible caption mimetype of text track.
77
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.CaptionMimeType}
88
*/
9-
export const enum CaptionMimeType {
9+
export enum CaptionMimeType {
1010
CEA608 = "text/cea608",
1111
TTML = "application/ttml+xml",
1212
TTML_MP4 = "application/mp4",
@@ -17,7 +17,7 @@ export const enum CaptionMimeType {
1717
* Commands supported by {@link framework.messages.MediaStatus.supportedMediaCommands}.
1818
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.Command}
1919
*/
20-
export const enum Command {
20+
export enum Command {
2121
PAUSE = 1,
2222
SEEK = 2,
2323
STREAM_VOLUME = 4,
@@ -43,7 +43,7 @@ export const enum Command {
4343
* Possible types of container metadata.
4444
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.ContainerType}
4545
*/
46-
export const enum ContainerType {
46+
export enum ContainerType {
4747
GENERIC_CONTAINER = 0,
4848
AUDIOBOOK_CONTAINER = 1,
4949
}
@@ -52,15 +52,15 @@ export const enum ContainerType {
5252
* Provides content filtering mode.
5353
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.ContentFilteringMode}
5454
*/
55-
export const enum ContentFilteringMode {
55+
export enum ContentFilteringMode {
5656
FILTER_EXPLICIT = "FILTER_EXPLICIT",
5757
}
5858

5959
/**
6060
* Represents media error message reasons.
6161
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.ErrorReason}
6262
*/
63-
export const enum ErrorReason {
63+
export enum ErrorReason {
6464
APP_ERROR = "APP_ERROR",
6565
AUTHENTICATION_EXPIRED = "AUTHENTICATION_EXPIRED",
6666
CONCURRENT_STREAM_LIMIT = "CONCURRENT_STREAM_LIMIT",
@@ -86,7 +86,7 @@ export const enum ErrorReason {
8686
* Represents media error message types.
8787
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.ErrorType}
8888
*/
89-
export const enum ErrorType {
89+
export enum ErrorType {
9090
ERROR = "ERROR",
9191
INVALID_PLAYER_STATE = "INVALID_PLAYER_STATE",
9292
INVALID_REQUEST = "INVALID_REQUEST",
@@ -98,15 +98,15 @@ export const enum ErrorType {
9898
* Extended player state information.
9999
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.ExtendedPlayerState}
100100
*/
101-
export const enum ExtendedPlayerState {
101+
export enum ExtendedPlayerState {
102102
LOADING = "LOADING",
103103
}
104104

105105
/**
106106
* Focus states.
107107
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.FocusState}
108108
*/
109-
export const enum FocusState {
109+
export enum FocusState {
110110
IN_FOCUS = "IN_FOCUS",
111111
NOT_IN_FOCUS = "NOT_IN_FOCUS",
112112
}
@@ -115,7 +115,7 @@ export const enum FocusState {
115115
* The Get Status flag options determine the amount of data that must be included in the media status response.
116116
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.GetStatusOptions}
117117
*/
118-
export const enum GetStatusOptions {
118+
export enum GetStatusOptions {
119119
NO_METADATA = 1,
120120
NO_QUEUE_ITEMS = 2,
121121
}
@@ -124,7 +124,7 @@ export const enum GetStatusOptions {
124124
* Represents video High Dynamic Range (HDR) types.
125125
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.HdrType}
126126
*/
127-
export const enum HdrType {
127+
export enum HdrType {
128128
DV = "dv",
129129
HDR = "hdr",
130130
SDR = "sdr",
@@ -134,7 +134,7 @@ export const enum HdrType {
134134
* Format of an HLS audio segment.
135135
* [Documentation]{@link https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages#.HlsSegmentFormat}
136136
*/
137-
export const enum HlsSegmentFormat {
137+
export enum HlsSegmentFormat {
138138
AAC = "aac",
139139
AC3 = "ac3",
140140
E_AC3 = "e_ac3",
@@ -149,7 +149,7 @@ export const enum HlsSegmentFormat {
149149
* Format of an HLS audio segment.
150150
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.HlsSegmentFormat}
151151
*/
152-
export const enum HlsVideoSegmentFormat {
152+
export enum HlsVideoSegmentFormat {
153153
FMP4 = "fmp4",
154154
MPEG2_TS = "mpeg2_ts",
155155
}
@@ -158,7 +158,7 @@ export const enum HlsVideoSegmentFormat {
158158
* The reason for the player to be in IDLE state.
159159
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.IdleReason}
160160
*/
161-
export const enum IdleReason {
161+
export enum IdleReason {
162162
CANCELLED = "CANCELLED",
163163
ERROR = "ERROR",
164164
FINISHED = "FINISHED",
@@ -169,7 +169,7 @@ export const enum IdleReason {
169169
* The media category.
170170
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.MediaCategory}
171171
*/
172-
export const enum MediaCategory {
172+
export enum MediaCategory {
173173
AUDIO = "AUDIO",
174174
IMAGE = "IMAGE",
175175
VIDEO = "VIDEO",
@@ -179,7 +179,7 @@ export const enum MediaCategory {
179179
* Represents media message types.
180180
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.MessageType}
181181
*/
182-
export const enum MessageType {
182+
export enum MessageType {
183183
CLOUD_STATUS = "CLOUD_STATUS",
184184
CUSTOM_COMMAND = "CUSTOM_COMMAND",
185185
CUSTOM_STATE = "CUSTOM_STATE",
@@ -230,7 +230,7 @@ export const enum MessageType {
230230
* Possible types of media metadata.
231231
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.MetadataType}
232232
*/
233-
export const enum MetadataType {
233+
export enum MetadataType {
234234
GENERIC = 0,
235235
MOVIE = 1,
236236
TV_SHOW = 2,
@@ -243,7 +243,7 @@ export const enum MetadataType {
243243
* String IDs used by {@link framework.PlayerManager#playString}
244244
* @see https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.messages#.PlayStringId
245245
*/
246-
export const enum PlayStringId {
246+
export enum PlayStringId {
247247
FREE_TRIAL_ABOUT_TO_EXPIRE = "FREE_TRIAL_ABOUT_TO_EXPIRE",
248248
PLAYING_ALTERNATE_MIX = "PLAYING_ALTERNATE_MIX",
249249
STREAM_HIJACKED = "STREAM_HIJACKED",
@@ -254,7 +254,7 @@ export const enum PlayStringId {
254254
* Represents the player state.
255255
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.PlayerState}
256256
*/
257-
export const enum PlayerState {
257+
export enum PlayerState {
258258
BUFFERING = "BUFFERING",
259259
IDLE = "IDLE",
260260
PAUSED = "PAUSED",
@@ -265,7 +265,7 @@ export const enum PlayerState {
265265
* Queue change types used by QUEUE_CHANGE outgoing message.
266266
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.QueueChangeType}
267267
*/
268-
export const enum QueueChangeType {
268+
export enum QueueChangeType {
269269
INSERT = "INSERT",
270270
ITEMS_CHANGE = "ITEMS_CHANGE",
271271
NO_CHANGE = "NO_CHANGE",
@@ -277,7 +277,7 @@ export const enum QueueChangeType {
277277
* Types of media container/queue.
278278
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.QueueType}
279279
*/
280-
export const enum QueueType {
280+
export enum QueueType {
281281
ALBUM = "ALBUM",
282282
AUDIOBOOK = "AUDIOBOOK",
283283
LIVE_TV = "LIVE_TV",
@@ -293,7 +293,7 @@ export const enum QueueType {
293293
* Behavior of the queue when all items have been played.
294294
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.RepeatMode}
295295
*/
296-
export const enum RepeatMode {
296+
export enum RepeatMode {
297297
REPEAT_ALL = "REPEAT_ALL",
298298
REPEAT_ALL_AND_SHUFFLE = "REPEAT_ALL_AND_SHUFFLE",
299299
REPEAT_OFF = "REPEAT_OFF",
@@ -304,7 +304,7 @@ export const enum RepeatMode {
304304
* Represents the playback state after a SEEK request.
305305
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.SeekResumeState}
306306
*/
307-
export const enum SeekResumeState {
307+
export enum SeekResumeState {
308308
PLAYBACK_PAUSE = "PLAYBACK_PAUSE",
309309
PLAYBACK_START = "PLAYBACK_START",
310310
}
@@ -313,7 +313,7 @@ export const enum SeekResumeState {
313313
* The streaming protocol types.
314314
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.StreamingProtocolType}
315315
*/
316-
export const enum StreamingProtocolType {
316+
export enum StreamingProtocolType {
317317
UNKNOWN = 0,
318318
MPEG_DASH = 1,
319319
HLS = 2,
@@ -324,7 +324,7 @@ export const enum StreamingProtocolType {
324324
* Represents the stream types.
325325
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.StreamType}
326326
*/
327-
export const enum StreamType {
327+
export enum StreamType {
328328
BUFFERED = "BUFFERED",
329329
LIVE = "LIVE",
330330
NONE = "NONE",
@@ -334,7 +334,7 @@ export const enum StreamType {
334334
* Possible text track edge type.
335335
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TextTrackEdgeType}
336336
*/
337-
export const enum TextTrackEdgeType {
337+
export enum TextTrackEdgeType {
338338
DEPRESSED = "DEPRESSED",
339339
DROP_SHADOW = "DROP_SHADOW",
340340
NONE = "NONE",
@@ -346,7 +346,7 @@ export const enum TextTrackEdgeType {
346346
* Text track font generic family.
347347
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TextTrackFontGenericFamily}
348348
*/
349-
export const enum TextTrackFontGenericFamily {
349+
export enum TextTrackFontGenericFamily {
350350
CASUAL = "CASUAL",
351351
CURSIVE = "CURSIVE",
352352
MONOSPACED_SANS_SERIF = "MONOSPACED_SANS_SERIF",
@@ -360,7 +360,7 @@ export const enum TextTrackFontGenericFamily {
360360
* Possible text track font style.
361361
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TextTrackFontStyle}
362362
*/
363-
export const enum TextTrackFontStyle {
363+
export enum TextTrackFontStyle {
364364
BOLD = "BOLD",
365365
BOLD_ITALIC = "BOLD_ITALIC",
366366
ITALIC = "ITALIC",
@@ -371,7 +371,7 @@ export const enum TextTrackFontStyle {
371371
* Possible text track type (follows the HTML5 text track type definitions).
372372
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TextTrackType}
373373
*/
374-
export const enum TextTrackType {
374+
export enum TextTrackType {
375375
CAPTIONS = "CAPTIONS",
376376
CHAPTERS = "CHAPTERS",
377377
DESCRIPTIONS = "DESCRIPTIONS",
@@ -383,7 +383,7 @@ export const enum TextTrackType {
383383
* Text track window type.
384384
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TextTrackWindowType}
385385
*/
386-
export const enum TextTrackWindowType {
386+
export enum TextTrackWindowType {
387387
NONE = "NONE",
388388
NORMAL = "NORMAL",
389389
ROUNDED_CORNERS = "ROUNDED_CORNERS",
@@ -393,7 +393,7 @@ export const enum TextTrackWindowType {
393393
* Possible media track type.
394394
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.TrackType}
395395
*/
396-
export const enum TrackType {
396+
export enum TrackType {
397397
AUDIO = "AUDIO",
398398
TEXT = "TEXT",
399399
VIDEO = "VIDEO",
@@ -403,7 +403,7 @@ export const enum TrackType {
403403
* User actions.
404404
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.UserAction}
405405
*/
406-
export const enum UserAction {
406+
export enum UserAction {
407407
DISLIKE = "DISLIKE",
408408
FLAG = "FLAG",
409409
FOLLOW = "FOLLOW",
@@ -416,7 +416,7 @@ export const enum UserAction {
416416
* Context information for the user action.
417417
* [Documentation]{@link https://developers.google.com/cast/docs/reference/caf_receiver/cast.framework.messages#.UserActionContext}
418418
*/
419-
export const enum UserActionContext {
419+
export enum UserActionContext {
420420
ALBUM = "ALBUM",
421421
ARTIST = "ARTIST",
422422
CHANNEL = "CHANNEL",

0 commit comments

Comments
 (0)