Commit 7ec7304
committed
Narrow Heading type with 'as const'
Use `as const` on the Heading template literal so `h${headingLevel}` is inferred as a literal (e.g. 'h1') rather than a widened string.1 parent f8129f7 commit 7ec7304
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments