From 0bd45cb2cae3af05adaad3f38d129bb67c3e0ec0 Mon Sep 17 00:00:00 2001 From: Minteck Date: Wed, 18 May 2022 18:50:12 +0200 Subject: Add Kartik --- kartik/typescript/interface.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 kartik/typescript/interface.ts (limited to 'kartik/typescript/interface.ts') diff --git a/kartik/typescript/interface.ts b/kartik/typescript/interface.ts new file mode 100755 index 0000000..28e8219 --- /dev/null +++ b/kartik/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 -- cgit