-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/{model/config-schema.ts,presenter/sidebar.ts} - make defaultPanel…
… typesafe Use typescipt's typing to restrict the possible values of defaultPanel to one of the allowed ones. Ran into a problem triggering ERR_REQUIRE_ESM with the d3 library, just by changing the imports... turns out this is a thorny thing to solve, so avoided it by not importing the things. Instead I needed to list the allowed panel IDs in the documentation manually, rather than programatically. But ESM modules are "the future" so we probably need to convert Mykomap to support it (and support CommonJS for cases that need that, probably using Babel transpilation)
- Loading branch information
Nick Stokoe
committed
Mar 20, 2024
1 parent
928fd8c
commit 21df6c7
Showing
2 changed files
with
70 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters