/* eslint-disable @typescript-eslint/no-explicit-any */ import { UmbControllerHostInterface } from '../../src/core/controller/controller-host.mixin'; import { UmbResourceController } from './resource.controller'; import { UmbNotificationOptions } from 'src/core/notification'; export function tryExecuteAndNotify( host: UmbControllerHostInterface, resource: Promise, options?: UmbNotificationOptions ) { return new UmbResourceController(host, resource).tryExecuteAndNotify(options); }