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