Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix adapter
  • Loading branch information
nighca committed Aug 21, 2021
commit bae673dd7a3cd09d9e06f55d2ef4493c0f6f6caf
1 change: 1 addition & 0 deletions src/adapter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export function xify<T extends fs.ComposibleValidatable<any>>(state: T): Xify<T>
reset() { state.reset() },
resetWith(v: ValueOf<T>) { state.reset() },
set() { throw new Error('`set()` is supported.') },
onChange() { throw new Error('`onChange()` is supported.') },
dispose() {},
_dirtyWith(v: ValueOf<T>) { return getDirty(state) },
get dirty() { return getDirty(state) },
Expand Down