Add type to ports
This commit is contained in:
parent
87310f95cc
commit
3eca178df5
@ -12,10 +12,11 @@ class CommsServer {
|
|||||||
settings: Settings;
|
settings: Settings;
|
||||||
|
|
||||||
|
|
||||||
// we could have a bit more defined type here, but then
|
ports: {
|
||||||
// typescript be like {[x: string]; any} dOeSnT hAvE sYmBoL.ItErAToR
|
[frame: string] : {
|
||||||
// and I'm too lazy to handle this properly
|
[port: string]: any
|
||||||
ports: any = [];
|
}
|
||||||
|
}[] = [];
|
||||||
popupPort: any;
|
popupPort: any;
|
||||||
|
|
||||||
commands: {[x: string]: ((a: any, b: any) => void | Promise<void>)[]}
|
commands: {[x: string]: ((a: any, b: any) => void | Promise<void>)[]}
|
||||||
|
Loading…
Reference in New Issue
Block a user