Skip to content

Commit

Permalink
fix: allow nested selectors without properties in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal committed Aug 30, 2021
1 parent b3d08c7 commit b518a05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare namespace ConfigType {

/** Utility interface. */
export type Utils<T = {}> = {
[Property in keyof T]: T[Property] extends (value: infer V) => {} ? T[Property] & ((value: V) => {
[Property in keyof T]: T[Property] extends (value: infer V) => {} ? T[Property] | ((value: V) => {
[K in keyof CSSUtil.CSSProperties]?: CSSUtil.CSSProperties[K] | V
}) : never
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/types/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ declare namespace ConfigType {

/** Utility interface. */
export type Utils<T = {}> = {
[Property in keyof T]: T[Property] extends (value: infer V) => {} ? T[Property] & ((value: V) => {
[Property in keyof T]: T[Property] extends (value: infer V) => {} ? T[Property] | ((value: V) => {
[K in keyof CSSUtil.CSSProperties]?: CSSUtil.CSSProperties[K] | V
}) : never
}
Expand Down

0 comments on commit b518a05

Please sign in to comment.