Skip to content

Commit 79cee94

Browse files
committed
feat(): Better Specs For markAsPristine & markAsDirty
1 parent 6c96632 commit 79cee94

File tree

2 files changed

+377
-371
lines changed

2 files changed

+377
-371
lines changed

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ declare abstract class AbstractControl {
219219
* to maintain the model, and re-calculate the `pristine` status of all parent
220220
* controls.
221221
*/
222-
markAsPristine: (opts?: { onlySelf?: boolean }) => void
222+
markAsPristine: (opts?: { onlySelf?: boolean; emitEvent?: boolean }) => void
223223
/**
224224
* Marks the control as `untouched`.
225225
*
@@ -234,7 +234,7 @@ declare abstract class AbstractControl {
234234
* This will also mark all direct ancestors as `dirty` to maintain
235235
* the model.
236236
*/
237-
markAsDirty: (opts?: { onlySelf?: boolean }) => void
237+
markAsDirty: (opts?: { onlySelf?: boolean; emitEvent?: boolean }) => void
238238
/**
239239
* Sets the synchronous validators that are active on this control. Calling
240240
* this will overwrite any existing sync validators.

0 commit comments

Comments
 (0)