aboutsummaryrefslogtreecommitdiff
path: root/typescript/interface.ts
diff options
context:
space:
mode:
authorMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:30:23 +0200
committerMinteck <46352972+Minteck@users.noreply.github.com>2021-07-20 01:30:23 +0200
commit44210691ee8444509ac466a362337af77f2bcd49 (patch)
tree4dc2f242cf5fd4daa3fc6f9e42516e7d55b73538 /typescript/interface.ts
parentefa5fc926071de7087836d399c42f53e701b4cff (diff)
downloadkartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.gz
kartik-client-44210691ee8444509ac466a362337af77f2bcd49.tar.bz2
kartik-client-44210691ee8444509ac466a362337af77f2bcd49.zip
Commit
Diffstat (limited to 'typescript/interface.ts')
-rw-r--r--typescript/interface.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/typescript/interface.ts b/typescript/interface.ts
new file mode 100644
index 0000000..28e8219
--- /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