forked from stkb/Rewrap
-
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.
Goal: The JS code currently needs to import the CustomMarkers type/constructor from Types.js. Remove this need so that Main.js can be the single point of entry, which will make it easier when bundling up the core with Parcel etc. Removing the AllowNullLiteral attribute from the CustomMarkers type and making it a plain record, as well as removing the Option types from that record, means it can be more easily created in C# code, and created as a POJO in JS code. The Option types on the line & block members were also redundant, since an empty string is also an empty (invalid) value. Empty strings were not checked-for in addCustomLanguage, leading to a runtime error if they were supplied. Now addCustomLanguage is changed to maybeAddCustomLanguage, and it only adds the language if it has a valid line or block member.
- Loading branch information
Showing
7 changed files
with
25 additions
and
26 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
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
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
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