Skip to content
Snippets Groups Projects
Commit c7cec09a authored by baletiballo's avatar baletiballo
Browse files

Renamed Facts.ts to Types.ts, because it holds more types than just the Facts

parent 893fe709
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ class Scroll {
this.depiction = depiction;
this.type = "Scroll";
}
}
function isScroll(s) {
return s.type === "Scroll";
static isScroll(s) {
return s.type === "Scroll";
}
}
......@@ -316,8 +316,8 @@ class Scroll implements Backend_Object{
readonly description: HTMLElement,
readonly depiction?: HTMLElement,
) { }
}
function isScroll(s: any): s is Scroll{
return s.type === "Scroll"
static isScroll(s: any): s is Scroll{
return s.type === "Scroll"
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment