Skip to content

Commit

Permalink
update types / improve css() typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Jul 22, 2021
1 parent 362e9f7 commit f001525
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/core/types/sheet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export default interface Sheet<
: never
)
}
): string & StyledComponent.CssComponent<
): StyledComponent.CssComponent<
StyledComponent.StyledComponentType<Composers>,
StyledComponent.StyledComponentProps<Composers>,
Media,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/types/styled-component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ export interface CssComponent<
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils>
> {
(
props:
props?:
& Partial<TransformedProps>
& {
css?: CSS
}
& {
[name in number | string]: any
}
): {
): string & {
className: string
selector: string
props: object
Expand Down
2 changes: 1 addition & 1 deletion packages/react/types/sheet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default interface Sheet<
: never
)
}
): string & StyledComponent.CssComponent<
): StyledComponent.CssComponent<
StyledComponent.StyledComponentType<Composers>,
StyledComponent.StyledComponentProps<Composers>,
Media,
Expand Down
4 changes: 2 additions & 2 deletions packages/react/types/styled-component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ export interface CssComponent<
CSS = CSSUtil.CSS<Media, Theme, ThemeMap, Utils>
> {
(
props:
props?:
& Partial<TransformedProps>
& {
css?: CSS
}
& {
[name in number | string]: any
}
): {
): string & {
className: string
selector: string
props: object
Expand Down

0 comments on commit f001525

Please sign in to comment.