Previous behavior: TypeScript shows an error if the additionalData prop is not explicitly set on the Svelte Auth component.
Since additionalData is defined as optional in shared/src/types.ts it makes sense to also make it optional for the Svelte Auth component.
What is the new behavior?
The additionalData prop for the Svelte Auth component is now optional and doesn't need to be explicitly set. This prevents a scenario like this in TypeScript:
What kind of change does this PR introduce?
Bug fix
Previous behavior: TypeScript shows an error if the
additionalData
prop is not explicitly set on the Svelte Auth component.Since
additionalData
is defined as optional in shared/src/types.ts it makes sense to also make it optional for the Svelte Auth component.What is the new behavior?
The
additionalData
prop for the SvelteAuth
component is now optional and doesn't need to be explicitly set. This prevents a scenario like this in TypeScript: