-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor generateToc.ts to not use dictionary type (#1259)
Prework for #1256. It was confusing how we pass both `tocModules: TocEntry[]` and `tocModulesByTitle: Dictionary<TocEntry>`. It wasn't clear how those values relate, and `Dictionary` is an under-documented API by Lodash. Also adds `hasPrefix`, which we will need in #1256.
- Loading branch information
1 parent
c27da73
commit d9330b3
Showing
3 changed files
with
33 additions
and
10 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