File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
packages/pydantic-forms/src Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' pydantic-forms ' : patch
3+ ---
4+
5+ Exports component matcher type
Original file line number Diff line number Diff line change @@ -267,6 +267,10 @@ export interface PydanticFormZodValidationPresets {
267267 [ type : string ] : PydanticFormZodValidationFn ;
268268}
269269
270+ export type ComponentMatcher = (
271+ currentMatchers : PydanticComponentMatcher [ ] ,
272+ ) => PydanticComponentMatcher [ ] ;
273+
270274export interface PydanticFormsContextConfig {
271275 // use a custom method for providing the form definition
272276 apiProvider : PydanticFormApiProvider ;
@@ -294,9 +298,7 @@ export interface PydanticFormsContextConfig {
294298
295299 resetButtonAlternative ?: React . ReactNode ;
296300
297- componentMatcher ?: (
298- currentMatchers : PydanticComponentMatcher [ ] ,
299- ) => PydanticComponentMatcher [ ] ;
301+ componentMatcher ?: ComponentMatcher ;
300302
301303 formRenderer ?: FormRenderer ;
302304 footerRenderer ?: React . JSXElementConstructor < object > ;
You can’t perform that action at this time.
0 commit comments