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