Skip to content

Commit ca8269f

Browse files
authored
fix: type import from csstype (#1457)
* fix: type import from csstype * fix: wrong type extends in NormalCssValues
1 parent 1f25942 commit ca8269f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/jss/src/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as css from 'csstype'
1+
import {Properties as CSSProperties} from 'csstype'
22

33
// Observable support is included as a plugin. Including it here allows
44
// TypeScript users to use Observables, which could be confusing if a user
@@ -10,9 +10,9 @@ import {Observable} from 'indefinite-observable'
1010
// TODO: Type data better, currently typed as any for allowing to override it
1111
type Func<R> = ((data: any) => R)
1212

13-
type NormalCssProperties = css.Properties<string | number>
13+
type NormalCssProperties = CSSProperties<string | number>
1414
type NormalCssValues<K> = K extends keyof NormalCssProperties
15-
? NormalCssProperties[K] | JssValue
15+
? NormalCssProperties[K]
1616
: JssValue
1717

1818
export type JssStyle =

0 commit comments

Comments
 (0)