From 4a20ddc0f01f4be9f60bce8e7833c27d4f0c6a79 Mon Sep 17 00:00:00 2001 From: shaharkazaz Date: Thu, 31 Mar 2022 10:19:18 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20typings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/playground/src/app/store.ts | 9 ++++++++- libs/dirty-check-forms/src/lib/dirty-check.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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'> >(