From 9e8931a65545595fea87132e77e70005556997d1 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 22 Jan 2023 10:39:31 +0100 Subject: Basics of rewrite to TypeScript --- config.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 config.ts (limited to 'config.ts') diff --git a/config.ts b/config.ts new file mode 100644 index 0000000..c316066 --- /dev/null +++ b/config.ts @@ -0,0 +1,6 @@ +/// +import * as hes from "hesla"; + +require([], () => { + var thisHesla = new hes.Hesla(); +}); -- cgit From b01e1e4c3907cea472284c3142a9860bb2992593 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Sun, 22 Jan 2023 14:06:25 +0100 Subject: Compiles cleanly --- config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'config.ts') diff --git a/config.ts b/config.ts index c316066..a65dfa8 100644 --- a/config.ts +++ b/config.ts @@ -1,6 +1,7 @@ /// -import * as hes from "hesla"; + +import { Hesla } from "hesla"; require([], () => { - var thisHesla = new hes.Hesla(); + var thisHesla = new Hesla(); }); -- cgit