Skip to content

Commit

Permalink
webui: implicit build-only consts via .d file
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed Jun 25, 2024
1 parent a7697a2 commit f007db1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions code/html/src/index.build.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
declare global {
var MODULE_OTA: boolean;
var MODULE_HA: boolean;
var MODULE_SNS: boolean;
var MODULE_GARLAND: boolean;
var MODULE_THERMOSTAT: boolean;
var MODULE_LIGHTFOX: boolean;
var MODULE_RELAY: boolean;
var MODULE_RFM69: boolean;
var MODULE_RFB: boolean;
var MODULE_CMD: boolean;
var MODULE_DBG: boolean;
var MODULE_API: boolean;
var MODULE_LED: boolean;
var MODULE_LIGHT: boolean;
var MODULE_SCH: boolean;
var MODULE_RPN: boolean;
var MODULE_DCZ: boolean;
var MODULE_TSPK: boolean;
var MODULE_CURTAIN: boolean;
var MODULE_LOCAL: boolean;
}

export {};
2 changes: 2 additions & 0 deletions code/html/src/index.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference path="index.build.d.mts" />

/**
* @typedef {function(string, any): void} Listener
*/
Expand Down

0 comments on commit f007db1

Please sign in to comment.