Commit 014c718
committed
fix(form-core): export FormListenerFieldProps to fix TS4023 declaration emit
Extract the inline {formApi, fieldApi} callback props type from
FormListeners into a named exported FormListenerFieldProps interface.
Previously, exporting a formOptions() result that included listeners
failed with TS4023 because TypeScript could not serialize the anonymous
type into a .d.ts file.1 parent 6a73479 commit 014c718
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
| 232 | + | |
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
| |||
0 commit comments