We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f25942 commit ca8269fCopy full SHA for ca8269f
1 file changed
packages/jss/src/index.d.ts
@@ -1,4 +1,4 @@
1
-import * as css from 'csstype'
+import {Properties as CSSProperties} from 'csstype'
2
3
// Observable support is included as a plugin. Including it here allows
4
// TypeScript users to use Observables, which could be confusing if a user
@@ -10,9 +10,9 @@ import {Observable} from 'indefinite-observable'
10
// TODO: Type data better, currently typed as any for allowing to override it
11
type Func<R> = ((data: any) => R)
12
13
-type NormalCssProperties = css.Properties<string | number>
+type NormalCssProperties = CSSProperties<string | number>
14
type NormalCssValues<K> = K extends keyof NormalCssProperties
15
- ? NormalCssProperties[K] | JssValue
+ ? NormalCssProperties[K]
16
: JssValue
17
18
export type JssStyle =
0 commit comments