Skip to content

Profectus / features/reset / createReset

Function: createReset() ​

createReset<T>(optionsFunc): object & Omit<Omit<T, "thingsToReset" | "onReset">, keyof ResetOptions> & object

Lazily creates a reset with the given options.

Type Parameters ​

• T extends ResetOptions

Parameters ​

optionsFunc ​

() => T

Reset options.

Returns ​

object & Omit<Omit<T, "thingsToReset" | "onReset">, keyof ResetOptions> & object

Defined in ​

profectus/src/features/reset.ts:46