Right now the PreserveStateOption type (used for the preserveScroll and preserveState options) accepts a generic string — however the only string value that's supported is 'errors', so I've tightened up this type to reflect that.
I've also updated the return type for resolvePreserveOption, which should only ever return a boolean.
Right now the
PreserveStateOption
type (used for thepreserveScroll
andpreserveState
options) accepts a generic string — however the only string value that's supported is'errors'
, so I've tightened up this type to reflect that.I've also updated the return type for
resolvePreserveOption
, which should only ever return a boolean.