* fix: allow access to root-level issues in schema-less forms
* feat: use IsAny type to account for `f7` test
* include `allIssues()`
* simplify type
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* Update types
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
--- /dev/null
+---
+'@sveltejs/kit': patch
+---
+
+fix: allow access to root-level issues in schema-less forms
/** The number of pending submissions */
get pending(): number;
/** Access form fields using object notation */
- fields: Input extends void ? never : RemoteFormFields<Input>;
+ fields: RemoteFormFields<Input>;
/** Spread this onto a `<button>` or `<input type="submit">` */
buttonProps: {
type: 'submit';
invalid.x('bar')
);
});
+ f8.fields.issues();
+ f8.fields.allIssues();
// @ts-expect-error
f8.fields.x;
// @ts-expect-error
/** The number of pending submissions */
get pending(): number;
/** Access form fields using object notation */
- fields: Input extends void ? never : RemoteFormFields<Input>;
+ fields: RemoteFormFields<Input>;
/** Spread this onto a `<button>` or `<input type="submit">` */
buttonProps: {
type: 'submit';