Skip to content

Commit 840553d

Browse files
committed
Fix globalCss typing
1 parent bac9016 commit 840553d

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.changeset/cozy-llamas-double.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@devup-ui/react': patch
3+
---
4+
5+
Global css typing

packages/react/src/utils/global-css.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,9 @@ type GlobalCssProps = {
3333
DevupSelectorProps &
3434
DevupThemeSelectorProps
3535
} & {
36-
[K in
37-
| keyof HTMLElementTagNameMap
38-
| keyof SVGElementTagNameMap
39-
| '*']?: DevupCommonProps & DevupSelectorProps & DevupThemeSelectorProps
36+
[K in `${keyof HTMLElementTagNameMap | keyof SVGElementTagNameMap | '.' | '*' | '#' | ':' | '['}${string}`]?: DevupCommonProps &
37+
DevupSelectorProps &
38+
DevupThemeSelectorProps
4039
}
4140

4241
interface FontFaceProps {

0 commit comments

Comments
 (0)