Skip to content

Commit 259fab2

Browse files
committed
fix issue type for consumers of createIconComponent
1 parent af784fa commit 259fab2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/component/src/Utils/createIconComponent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import {
77
picklist,
88
pipe,
99
readonly,
10+
type BaseIssue,
11+
type BaseSchema,
1012
type ObjectSchema,
1113
type OptionalSchema,
1214
type PicklistSchema,
@@ -65,7 +67,8 @@ function createPropsSchema<
6567
ObjectSchema<Partial<Record<TModifiers, ModifierSchemaEntry>>, undefined>,
6668
ReadonlyAction<Readonly<Partial<Record<TModifiers, string>>>>
6769
]
68-
>;
70+
> &
71+
BaseSchema<unknown, Readonly<Partial<Record<TModifiers, string>>>, BaseIssue<unknown>>;
6972

7073
const schemaEntries = Array.from(props.entries()).reduce<Partial<Record<TModifiers, ModifierSchemaEntry>>>(
7174
(acc, [base, modifierSet]) => {

0 commit comments

Comments
 (0)