Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Conversation

@lauralen
Copy link
Contributor

@lauralen lauralen commented Nov 11, 2025

This allows bookings to pass their namespace & additionalMetadata

@lauralen lauralen changed the title Form fetch additional params [forms] fetch additional params Nov 11, 2025
@lauralen lauralen changed the title [forms] fetch additional params [forms] fetch schema with additional params Nov 11, 2025
@lauralen lauralen marked this pull request as ready for review November 11, 2025 16:46
*/
export type FormServiceConfig =
| { formId: string; onSubmit?: OnSubmit }
| { formId: string; onSubmit?: OnSubmit; fetchOptions?: FormFetchOptions }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

personally i would keep the config flat.
{ formId: string; onSubmit?: OnSubmit; namespace?: string, additionalMetadata?: Record<string, string | string[]>;}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants