@modular-forms/qwik
Version:
The modular and type-safe form library for Qwik
11 lines (10 loc) • 359 B
TypeScript
import type { FieldValue, Maybe } from '../types';
/**
* Returns whether the field is dirty.
*
* @param startValue The start value.
* @param currentValue The current value.
*
* @returns Whether is dirty.
*/
export declare function isFieldDirty<TFieldValue extends FieldValue>(startValue: Maybe<TFieldValue>, currentValue: Maybe<TFieldValue>): boolean;