diff --git a/apps/playground/src/app/store.ts b/apps/playground/src/app/store.ts index 6c0a1d9..d4fe91d 100644 --- a/apps/playground/src/app/store.ts +++ b/apps/playground/src/app/store.ts @@ -1,6 +1,13 @@ import { BehaviorSubject } from 'rxjs'; -export const store = new BehaviorSubject({ +interface Data { + settingOne: string; + settingTwo: string; + settingThree: boolean; + ignore: string; +} + +export const store = new BehaviorSubject({ settingOne: 'Initial Value', settingTwo: 'jack', settingThree: true, diff --git a/libs/dirty-check-forms/src/lib/dirty-check.ts b/libs/dirty-check-forms/src/lib/dirty-check.ts index abd5ff1..45bb176 100644 --- a/libs/dirty-check-forms/src/lib/dirty-check.ts +++ b/libs/dirty-check-forms/src/lib/dirty-check.ts @@ -36,7 +36,7 @@ function getControlValue(control: AbstractControl, withDisabled: boolean) { export function dirtyCheck< U, - Config extends U extends Record + Config extends U extends object ? DirtyCheckConfig : Omit, 'excludeKeys'> >(