From 6a072dfdacf26d309bf8cd570c05f4d4b57c9af2 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 29 Dec 2023 00:01:37 -0500 Subject: Options util updates (#475) * Simplify async handling * Update comments * Add description * Update update 22 --- types/ext/options-util.d.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'types/ext') diff --git a/types/ext/options-util.d.ts b/types/ext/options-util.d.ts index e03e4be2..7242dc22 100644 --- a/types/ext/options-util.d.ts +++ b/types/ext/options-util.d.ts @@ -23,13 +23,4 @@ export type IntermediateOptions = Core.SafeAny; export type LegacyUpdateFunction = (options: LegacyOptions) => void; -export type ModernUpdateFunction = ModernUpdateFunctionSync | ModernUpdateFunctionAsync; - -export type ModernUpdateFunctionSync = (options: IntermediateOptions) => IntermediateOptions; - -export type ModernUpdateFunctionAsync = (options: IntermediateOptions) => Promise; - -export type ModernUpdate = { - async: boolean; - update: ModernUpdateFunction; -}; +export type UpdateFunction = (options: IntermediateOptions) => void | Promise; -- cgit v1.2.3