mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 09:37:17 +00:00
Fix types for more Maki objects
This commit is contained in:
parent
6d64eb99c0
commit
d562d41dea
3 changed files with 10 additions and 6 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import MakiObject from "./MakiObject";
|
||||
import { XmlNode } from "../types";
|
||||
|
||||
class List extends MakiObject {
|
||||
_list: Array<any>;
|
||||
|
||||
constructor(node, parent, annotations, store) {
|
||||
super(node, parent, annotations, store);
|
||||
constructor(node: XmlNode, parent: MakiObject, annotations: Object = {}) {
|
||||
super(node, parent, annotations);
|
||||
this._list = [];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
import GuiObject from "./GuiObject";
|
||||
import { unimplementedWarning } from "../utils";
|
||||
import MakiMap from "./Map";
|
||||
import Region from "./Region";
|
||||
|
||||
class MouseRedir extends GuiObject {
|
||||
/**
|
||||
|
|
@ -12,7 +14,7 @@ class MouseRedir extends GuiObject {
|
|||
return "MouseRedir";
|
||||
}
|
||||
|
||||
setredirection(o) {
|
||||
setredirection(o: GuiObject) {
|
||||
unimplementedWarning("setredirection");
|
||||
return;
|
||||
}
|
||||
|
|
@ -22,12 +24,12 @@ class MouseRedir extends GuiObject {
|
|||
return;
|
||||
}
|
||||
|
||||
setregionfrommap(regionmap, threshold: number, reverse: boolean) {
|
||||
setregionfrommap(regionmap: MakiMap, threshold: number, reverse: boolean) {
|
||||
unimplementedWarning("setregionfrommap");
|
||||
return;
|
||||
}
|
||||
|
||||
setregion(reg) {
|
||||
setregion(reg: Region) {
|
||||
unimplementedWarning("setregion");
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@
|
|||
"modern/src/runtime/Config.ts",
|
||||
"modern/src/runtime/GroupList.ts",
|
||||
"modern/src/runtime/GuiList.ts",
|
||||
"modern/src/runtime/GuiTree.ts"
|
||||
"modern/src/runtime/List.ts",
|
||||
"modern/src/runtime/MouseRedir.ts"
|
||||
],
|
||||
"exclude": ["node_modules", "**/*.spec.ts", "demo/built"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue