diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-12-29 00:01:37 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-29 05:01:37 +0000 |
| commit | 6a072dfdacf26d309bf8cd570c05f4d4b57c9af2 (patch) | |
| tree | e75fd64add06b659b04c5d44d1970092d092e2e9 /types | |
| parent | 0a68020771fc5b9dd437a90d5aac5e8a0c66719b (diff) | |
Options util updates (#475)
* Simplify async handling
* Update comments
* Add description
* Update update 22
Diffstat (limited to 'types')
| -rw-r--r-- | types/ext/options-util.d.ts | 11 |
1 files changed, 1 insertions, 10 deletions
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<IntermediateOptions>; - -export type ModernUpdate = { - async: boolean; - update: ModernUpdateFunction; -}; +export type UpdateFunction = (options: IntermediateOptions) => void | Promise<void>; |