mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 10:09:59 +00:00
Convert shim to Typescript (#32)
This commit is contained in:
22
ext/src/shim/state.ts
Executable file
22
ext/src/shim/state.ts
Executable file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
|
||||
import ApiConfig from "./cast/classes/ApiConfig";
|
||||
import Receiver from "./cast/classes/Receiver";
|
||||
import Session from "./cast/classes/Session";
|
||||
|
||||
export interface State {
|
||||
apiConfig: ApiConfig;
|
||||
receiverList: Receiver[];
|
||||
sessionList: Session[];
|
||||
sessionRequestInProgress: boolean;
|
||||
}
|
||||
|
||||
// Global API state
|
||||
const state: State = {
|
||||
apiConfig: null
|
||||
, receiverList: []
|
||||
, sessionList: []
|
||||
, sessionRequestInProgress: false
|
||||
};
|
||||
|
||||
export default state;
|
||||
Reference in New Issue
Block a user