(applyArgs: unknown, key: string)
| 581 | } |
| 582 | |
| 583 | function hasApplyArgsData(applyArgs: unknown, key: string) { |
| 584 | if (!Array.isArray(applyArgs)) { |
| 585 | return false; |
| 586 | } |
| 587 | |
| 588 | // We should only ever get 1 arg passed through to invokeTask. |
| 589 | // Short circuit here incase that behavior changes. |
| 590 | if (applyArgs.length !== 1) { |
| 591 | return false; |
| 592 | } |
| 593 | |
| 594 | return applyArgs[0]?.data?.[key] === true; |
| 595 | } |
| 596 | |
| 597 | // Set of options recognized by the NgZone. |
| 598 | export interface InternalNgZoneOptions { |
no test coverage detected