Skip to content

Commit

Permalink
fix: 🐛 typings
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Mar 31, 2022
1 parent 1e9cd37 commit 4a20ddc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion apps/playground/src/app/store.ts
Original file line number Diff line number Diff line change
@@ -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<Data>({
settingOne: 'Initial Value',
settingTwo: 'jack',
settingThree: true,
Expand Down
2 changes: 1 addition & 1 deletion libs/dirty-check-forms/src/lib/dirty-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function getControlValue(control: AbstractControl, withDisabled: boolean) {

export function dirtyCheck<
U,
Config extends U extends Record<string, unknown>
Config extends U extends object
? DirtyCheckConfig<U>
: Omit<DirtyCheckConfig<U>, 'excludeKeys'>
>(
Expand Down

0 comments on commit 4a20ddc

Please # to comment.