--- /dev/null
+---
+'@sveltejs/kit': patch
+---
+
+fix: delete `RemoteFormAllIssue`, add `path` to `RemoteFormIssue`
type RemoteFormFieldContainer<Value> = RemoteFormFieldMethods<Value> & {
/** Validation issues belonging to this or any of the fields that belong to it, if any */
- allIssues(): RemoteFormAllIssue[] | undefined;
+ allIssues(): RemoteFormIssue[] | undefined;
};
type UnknownField<Value> = RemoteFormFieldMethods<Value> & {
/** Validation issues belonging to this or any of the fields that belong to it, if any */
- allIssues(): RemoteFormAllIssue[] | undefined;
+ allIssues(): RemoteFormIssue[] | undefined;
/**
* Returns an object that can be spread onto an input element with the correct type attribute,
* aria-invalid attribute if the field is invalid, and appropriate value/checked property getters/setters.
export interface RemoteFormIssue {
message: string;
-}
-
-export interface RemoteFormAllIssue extends RemoteFormIssue {
path: Array<string | number>;
}
return all_issues
?.filter((issue) => issue.name === key)
?.map((issue) => ({
+ path: issue.path,
message: issue.message
}));
};
type RemoteFormFieldContainer<Value> = RemoteFormFieldMethods<Value> & {
/** Validation issues belonging to this or any of the fields that belong to it, if any */
- allIssues(): RemoteFormAllIssue[] | undefined;
+ allIssues(): RemoteFormIssue[] | undefined;
};
type UnknownField<Value> = RemoteFormFieldMethods<Value> & {
/** Validation issues belonging to this or any of the fields that belong to it, if any */
- allIssues(): RemoteFormAllIssue[] | undefined;
+ allIssues(): RemoteFormIssue[] | undefined;
/**
* Returns an object that can be spread onto an input element with the correct type attribute,
* aria-invalid attribute if the field is invalid, and appropriate value/checked property getters/setters.
export interface RemoteFormIssue {
message: string;
- }
-
- export interface RemoteFormAllIssue extends RemoteFormIssue {
path: Array<string | number>;
}