rename method files to function

This commit is contained in:
Niels Lyngsø
2023-02-21 20:22:04 +01:00
parent ecd8f95bc9
commit 390e8d3f0e
10 changed files with 7 additions and 7 deletions

View File

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