Skip to content

Commit

Permalink
feature: (type) support array for field value
Browse files Browse the repository at this point in the history
  • Loading branch information
bhongy committed Aug 30, 2023
1 parent 31b971c commit 7c69778
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/formspree-core/src/submission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import type { UnknownObject } from './utils';

export type SubmissionData<T extends FieldValues = FieldValues> = FormData | T;

export type FieldValues = Record<
string,
string | number | boolean | null | undefined
>;
export type FieldValues = Record<string, FieldValue | FieldValue[]>;
type FieldValue = string | number | boolean | null | undefined;

export type SubmissionOptions = {
clientName?: string;
Expand Down

0 comments on commit 7c69778

Please sign in to comment.