Skip to content

Commit e50c932

Browse files
committed
booleanProxy now supports the empty option.
1 parent b04b136 commit e50c932

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Added
1515

1616
- Added support for Zod 4 [stringbools](https://zod.dev/api?id=stringbool). [#610](https://github.com/ciscoheat/sveltekit-superforms/issues/610)
17+
- `booleanProxy` now supports the `empty` option.
1718

1819
### Fixed
1920

src/lib/client/proxies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const defaultOptions = {
6464
export function booleanProxy<T extends Record<string, unknown>, Path extends FormPaths<T>>(
6565
form: Writable<T> | SuperForm<T>,
6666
path: Path,
67-
options?: Prettify<Pick<DefaultOptions, 'trueStringValue' | 'taint'>>
67+
options?: Prettify<Pick<DefaultOptions, 'trueStringValue' | 'empty' | 'taint'>>
6868
) {
6969
return _stringProxy(form, path, 'boolean', {
7070
...defaultOptions,

0 commit comments

Comments
 (0)