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

This commit is contained in:
Ibrahim authored and GitHub committed 2024-05-08 12:12:49 -04:00
1 parent b2cd0172d6
commit 374065bc3b
153 files changed
+842 -657

No files matched your search

+3 -3
View File
@@ -37,7 +37,7 @@ function modeFactory({ modeConfiguration }) {
id,
routeName: 'dynamic-volume',
displayName: '4D PT/CT',
onModeEnter: function ({ servicesManager, extensionManager, commandsManager }) {
onModeEnter: function ({ servicesManager, extensionManager, commandsManager }: withAppTypes) {
const {
measurementService,
toolbarService,
@@ -86,12 +86,12 @@ function modeFactory({ modeConfiguration }) {
}
);
},
onSetupRouteComplete: ({ servicesManager }) => {
onSetupRouteComplete: ({ servicesManager }: withAppTypes) => {
// This needs to run after hanging protocol matching process because
// it may change the protocol/stage based on workflow stage settings
initWorkflowSteps({ servicesManager });
},
onModeExit: ({ servicesManager }) => {
onModeExit: ({ servicesManager }: withAppTypes) => {
const {
toolGroupService,
syncGroupService,
@@ -1,6 +1,6 @@
import getWorkflowSettings from './getWorkflowSettings';
export default function initWorkflowSteps({ servicesManager }): void {
export default function initWorkflowSteps({ servicesManager }: withAppTypes): void {
const { workflowStepsService } = servicesManager.services;
const workflowSettings = getWorkflowSettings({ servicesManager });