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