refactor: create createElement.ts

This commit is contained in:
Jimmy Cai
2020-11-06 11:12:48 +01:00
parent b3df22940d
commit 2736fec285
3 changed files with 45 additions and 36 deletions
+11 -1
View File
@@ -9,6 +9,7 @@
import { createGallery } from "./gallery"
import { getColor } from './color';
import menu from './menu';
import createElement from './createElement';
let Stack = {
init: () => {
@@ -74,4 +75,13 @@ window.addEventListener('load', () => {
}, 0);
})
window.Stack = Stack;
declare global {
interface Window {
createElement: any;
Stack: any
}
}
window.Stack = Stack;
window.createElement = createElement;