Skip to content

Commit f2d6e59

Browse files
devversionthePunderWoman
authored andcommitted
refactor: explicitly ensure ngDevMode types are available (#61365)
This commit adds an import to the `ng_dev_mode.ts` file that augments `global` to have types for `ngDevMode`. Notably this change is currently not needed because the file is loaded by `ts_library` through `tsconfig#files`— but in a separate PR we are switching the target to `ts_project` which no longer loads all Bazel dependency files via `tsconfig#files`; resulting in the ambient types no longer magically being available. PR Close #61365
1 parent dfd068d commit f2d6e59

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/primitives/event-dispatch/src/event_dispatcher.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ import {isCaptureEventType} from './event_type';
1313
import {UnrenamedEventContract} from './eventcontract';
1414
import {Restriction} from './restriction';
1515

16+
// Necessary to make the `ngDevMode` global types available.
17+
import '../../../src/util/ng_dev_mode';
18+
1619
/**
1720
* A replayer is a function that is called when there are queued events, from the `EventContract`.
1821
*/

0 commit comments

Comments
 (0)