diff options
Diffstat (limited to 'typescript/interface.ts')
-rw-r--r-- | typescript/interface.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/typescript/interface.ts b/typescript/interface.ts new file mode 100644 index 0000000..18821c1 --- /dev/null +++ b/typescript/interface.ts @@ -0,0 +1,23 @@ +// @ts-nocheck
+
+let item = {
+ context: null,
+
+ dom: {
+ document: null,
+ window: null,
+ },
+
+};
+
+if (typeof HTML !== "undefined") {
+ if (typeof HTML.document !== "undefined") {
+ item.dom.document = HTML.document;
+ }
+
+ if (typeof window !== "undefined") {
+ item.dom.window = HTML.window;
+ }
+}
+
+module.exports = item;
\ No newline at end of file |