mirror of https://github.com/espruino/BangleApps
Add local modules types to require()
parent
9762acd981
commit
f1bb41743e
|
@ -1,7 +1,7 @@
|
||||||
// ts helpers:
|
// ts helpers:
|
||||||
const __assign = Object.assign;
|
const __assign = Object.assign;
|
||||||
|
|
||||||
const Layout = require("Layout") as Layout_.Layout;
|
const Layout = require("Layout");
|
||||||
|
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
// locally declared modules
|
||||||
|
declare function require(moduleName: "locale"): Locale.Locale;
|
||||||
|
declare function require(moduleName: "sched"): typeof Sched;
|
||||||
|
|
||||||
|
declare function require(moduleName: "ClockFace"): typeof ClockFace_.ClockFace;
|
||||||
|
declare function require(moduleName: "clock_info"): typeof ClockInfo;
|
||||||
|
declare function require(moduleName: "Layout"): typeof Layout_.Layout;
|
Loading…
Reference in New Issue