Skip to content

Commit

Permalink
feat: export body types (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
replygirl authored Mar 16, 2022
1 parent 2a78570 commit b08814f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export interface SubmissionOptions {
fetchImpl?: typeof fetch;
}

interface SuccessBody {
export interface SuccessBody {
id: string;
data: object;
}

interface ErrorBody {
export interface ErrorBody {
errors: Array<{
field?: string;
code: string | null;
Expand Down

0 comments on commit b08814f

Please sign in to comment.