File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 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'
5
2
6
3
export * from './types'
7
4
@@ -257,7 +254,7 @@ type CssPropsArgument = { theme: Theme } | Theme
257
254
258
255
export const css = ( args : SystemStyleObject = { } ) => (
259
256
props : CssPropsArgument = { }
260
- ) => {
257
+ ) : CSSObject => {
261
258
const theme : Theme = {
262
259
...defaultTheme ,
263
260
...( 'theme' in props ? props . theme : props ) ,
@@ -298,5 +295,5 @@ export const css = (args: SystemStyleObject = {}) => (
298
295
}
299
296
}
300
297
301
- return result as SerializedStyles
298
+ return result
302
299
}
You can’t perform that action at this time.
0 commit comments