From bb0236510e6e0fb9ddc9fcf1ad2317d6e05ba574 Mon Sep 17 00:00:00 2001 From: juicysteak Date: Tue, 26 Nov 2024 14:51:15 +0800 Subject: [PATCH] fix: `execute` type fix. (#59) --- src/normalize-options.ts | 2 +- src/types/version-bump-options.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/normalize-options.ts b/src/normalize-options.ts index 8e8d703..7ca111b 100644 --- a/src/normalize-options.ts +++ b/src/normalize-options.ts @@ -62,7 +62,7 @@ export interface NormalizedOptions { cwd: string interface: Interface ignoreScripts: boolean - execute?: string | ((config?: Operation) => void | PromiseLike) + execute?: string | ((config: Operation) => void | PromiseLike) printCommits?: boolean customVersion?: VersionBumpOptions['customVersion'] currentVersion?: string diff --git a/src/types/version-bump-options.ts b/src/types/version-bump-options.ts index c770f5c..f7c72a9 100644 --- a/src/types/version-bump-options.ts +++ b/src/types/version-bump-options.ts @@ -134,9 +134,9 @@ export interface VersionBumpOptions { progress?: (progress: VersionBumpProgress) => void /** - * Excute additional command after bumping and before commiting + * Execute additional command after bumping and before committing */ - execute?: string | ((config?: Operation) => void | PromiseLike) + execute?: string | ((config: Operation) => void | PromiseLike) /** * Bump the files recursively for monorepo. Only works without `files` option.