<Code /> component theme "css-variables" incorrectly typed #10246
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
good first issue
Good for newcomers. If you need additional guidance, feel free to post in #dev on Discord
Astro Info
If this issue only occurs in one browser, which browser is a problem?
N/A
Describe the Bug
The following code throws a TypeScript error:
Type '"css-variables"' is not assignable to type 'BundledTheme | ThemeRegistration | ThemeRegistrationRaw | undefined'.ts(2322)
This is a valid theme from Shiki, and the outcome is it works as expected (and expects some defined css variables).
What's the expected result?
No TS error.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-uhurkz?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: