mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Enable strict mode for extension build
This commit is contained in:
@@ -5,8 +5,8 @@ import * as cast from "../../cast";
|
||||
|
||||
export default class CastOptions {
|
||||
public autoJoinPolicy: string = cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;
|
||||
public language: string = null;
|
||||
public receiverApplicationId: string = null;
|
||||
public language: (string | null) = null;
|
||||
public receiverApplicationId: (string | null) = null;
|
||||
public resumeSavedSession: boolean = true;
|
||||
|
||||
constructor (options: CastOptions = ({} as CastOptions)) {
|
||||
|
||||
@@ -15,19 +15,19 @@ export default class RemotePlayer {
|
||||
public canControlVolume = false;
|
||||
public canPause = false;
|
||||
public canSeek = false;
|
||||
public controller: RemotePlayerController = null;
|
||||
public controller: (RemotePlayerController | null) = null;
|
||||
public currentTime = 0;
|
||||
public displayName = "";
|
||||
public displayStatus = "";
|
||||
public duration = 0;
|
||||
public imageUrl: string = null;
|
||||
public imageUrl: (string | null) = null;
|
||||
public isConnected = false;
|
||||
public isMediaLoaded = false;
|
||||
public isMuted = false;
|
||||
public isPaused = false;
|
||||
public mediaInfo: cast.media.MediaInfo = null;
|
||||
public playerState: string = null;
|
||||
public savedPlayerState: SavedPlayerState = null;
|
||||
public mediaInfo: (cast.media.MediaInfo | null) = null;
|
||||
public playerState: (string | null) = null;
|
||||
public savedPlayerState: (SavedPlayerState | null) = null;
|
||||
public statusText = "";
|
||||
public title = "";
|
||||
public volumeLevel = 1;
|
||||
|
||||
@@ -10,7 +10,7 @@ export default class SessionStateEventData extends EventData {
|
||||
constructor (
|
||||
public session: CastSession
|
||||
, public sessionState: string
|
||||
, public errorCode: string = null) {
|
||||
, public errorCode: (string | null) = null) {
|
||||
|
||||
super(SessionEventType.APPLICATION_STATUS_CHANGED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user