From c7a2d5dce67926192a4676be7a41a271ae6f2a57 Mon Sep 17 00:00:00 2001 From: Zhengqbbb <1074059947@qq.com> Date: Mon, 3 Mar 2025 19:59:48 +0800 Subject: [PATCH] fix(cz-git): default option types add undefined keyword link #206 --- packages/cz-git/src/shared/types/options.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/cz-git/src/shared/types/options.ts b/packages/cz-git/src/shared/types/options.ts index 5e39d5113..d793edc69 100644 --- a/packages/cz-git/src/shared/types/options.ts +++ b/packages/cz-git/src/shared/types/options.ts @@ -541,7 +541,7 @@ export interface CommitizenGitOptions { /** * pin type item the top of the types list (match item value) */ - defaultType?: string + defaultType?: string | undefined /** * Whether to use display default value in custom scope @@ -551,7 +551,7 @@ export interface CommitizenGitOptions { * 2. `string[]` for checkbox mode will default-select the options whose values match those within the `scopes` range list. * @usage When you want to use default, just keyboard `Enter` it */ - defaultScope?: string | string[] + defaultScope?: string | string[] | undefined /** * default value show subject template prompt @@ -559,7 +559,7 @@ export interface CommitizenGitOptions { * @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it * @usage If you want to use default, just keyboard `Enter` it */ - defaultSubject?: string + defaultSubject?: string | undefined /** * default value show body and BREAKINGCHANGES template prompt @@ -567,21 +567,21 @@ export interface CommitizenGitOptions { * @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it * @usage When you want to use default, just keyboard `Enter` it */ - defaultBody?: string + defaultBody?: string | undefined /** * default value show issuePrefixes custom template prompt * * @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it * @usage When you want to use default, just keyboard `Enter` it */ - defaultFooterPrefix?: string + defaultFooterPrefix?: string | undefined /** * default value show issue foot template prompt * * @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it * @usage When you want to use default, just keyboard `Enter` it */ - defaultIssues?: string + defaultIssues?: string | undefined /** * Whether to use GPG sign commit message (git commit -S -m)