Skip to content

Commit 5973618

Browse files
epilandehasparus
authored andcommitted
Update css type
1 parent 4076e9a commit 5973618

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/css/src/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import * as CSS from 'csstype'
2-
3-
import { SystemStyleObject, UseThemeFunction, Theme } from './types'
4-
import { SerializedStyles } from '@emotion/serialize'
1+
import { CSSObject, SystemStyleObject, UseThemeFunction, Theme } from './types'
52

63
export * from './types'
74

@@ -257,7 +254,7 @@ type CssPropsArgument = { theme: Theme } | Theme
257254

258255
export const css = (args: SystemStyleObject = {}) => (
259256
props: CssPropsArgument = {}
260-
) => {
257+
): CSSObject => {
261258
const theme: Theme = {
262259
...defaultTheme,
263260
...('theme' in props ? props.theme : props),
@@ -298,5 +295,5 @@ export const css = (args: SystemStyleObject = {}) => (
298295
}
299296
}
300297

301-
return result as SerializedStyles
298+
return result
302299
}

0 commit comments

Comments
 (0)