[x] My pull request has a descriptive title (not a vague title like Update index.md)
-
Refactoring to make modifying sidebar less daunting.
There are some type complaints regarding ie. entry?.data[title], which doesn't prevent rendering:
~~Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{ 'skipLink.label'?: string | undefined; 'search.label'?: string | undefined; 'search.ctrlKey'?: string | undefined; 'search.cancelLabel'?: string | undefined; 'search.devWarning'?: string | undefined; ... 34 more ...; 'expressiveCode.terminalWindowFallbackTitle'?: string | undefined; } & { ...; }'.
No index signature with a parameter of type 'string' was found on type '{ 'skipLink.label'?: string | undefined; 'search.label'?: string | undefined; 'search.ctrlKey'?: string | undefined; 'search.cancelLabel'?: string | undefined; 'search.devWarning'?: string | undefined; ... 34 more ...; 'expressiveCode.terminalWindowFallbackTitle'?: string | undefined; } & { ...; }'.ts(7053)~~
titles in sidebar are typed against i18n keys 🙆♂️
Checklist:
[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like
Update index.md
)Refactoring to make modifying sidebar less daunting.
There are some type complaints regarding ie.entry?.data[title]
, which doesn't prevent rendering:title
s in sidebar are typed against i18n keys 🙆♂️