File tree Expand file tree Collapse file tree 7 files changed +11
-6
lines changed
studio/styled-system/types Expand file tree Collapse file tree 7 files changed +11
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @pandacss/generator ' : patch
3
+ ---
4
+
5
+ Fix TypeScript types for ` defaultProps ` in ` withProvider ` and ` withContext ` to be partial
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ interface RecipeFn {
41
41
42
42
export interface JsxFactoryOptions<TProps extends Dict> {
43
43
dataAttr?: boolean
44
- defaultProps?: TProps
44
+ defaultProps?: Partial< TProps>
45
45
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
46
46
forwardProps?: string[]
47
47
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ interface RecipeFn {
44
44
45
45
export interface JsxFactoryOptions<TProps extends Dict> {
46
46
dataAttr?: boolean
47
- defaultProps?: TProps
47
+ defaultProps?: Partial< TProps>
48
48
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
49
49
forwardProps?: string[]
50
50
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ interface RecipeFn {
43
43
44
44
interface JsxFactoryOptions<TProps extends Dict> {
45
45
dataAttr?: boolean
46
- defaultProps?: TProps
46
+ defaultProps?: Partial< TProps>
47
47
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
48
48
forwardProps?: string[]
49
49
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ interface RecipeFn {
41
41
42
42
export interface JsxFactoryOptions<TProps extends Dict> {
43
43
dataAttr?: boolean
44
- defaultProps?: TProps
44
+ defaultProps?: Partial< TProps>
45
45
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
46
46
forwardProps?: string[]
47
47
}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ interface RecipeFn {
50
50
51
51
export interface JsxFactoryOptions<TProps extends Dict> {
52
52
dataAttr?: boolean
53
- defaultProps?: TProps
53
+ defaultProps?: Partial< TProps>
54
54
shouldForwardProp?: (prop: string, variantKeys: string[]) => boolean
55
55
forwardProps?: string[]
56
56
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ interface RecipeFn {
29
29
30
30
interface JsxFactoryOptions < TProps extends Dict > {
31
31
dataAttr ?: boolean
32
- defaultProps ?: TProps
32
+ defaultProps ?: Partial < TProps >
33
33
shouldForwardProp ?: ( prop : string , variantKeys : string [ ] ) => boolean
34
34
forwardProps ?: string [ ]
35
35
}
You can’t perform that action at this time.
0 commit comments