feat(typings): Enhance typing support with withAppTypes and custom services throughout OHIF (#4090)

This commit is contained in:
Ibrahim authored and Alireza committed 2024-05-16 16:54:33 -04:00
1 parent c11c3b7e61
commit 3539e04019
153 files changed
+842 -654

No files matched your search

+2 -2
View File
@@ -40,7 +40,7 @@ function modeFactory({ modeConfiguration }) {
* Runs when the Mode Route is mounted to the DOM. Usually used to initialize
* Services and other resources.
*/
onModeEnter: ({ servicesManager, extensionManager, commandsManager }) => {
onModeEnter: ({ servicesManager, extensionManager, commandsManager }: withAppTypes) => {
const { measurementService, toolbarService, toolGroupService } = servicesManager.services;
measurementService.clearMeasurements();
@@ -60,7 +60,7 @@ function modeFactory({ modeConfiguration }) {
'MoreTools',
]);
},
onModeExit: ({ servicesManager }) => {
onModeExit: ({ servicesManager }: withAppTypes) => {
const {
toolGroupService,
syncGroupService,