Skip to content

Commit

Permalink
fix(cz-git): default option types add undefined keyword
Browse files Browse the repository at this point in the history
link #206
  • Loading branch information
Zhengqbbb committed Mar 3, 2025
1 parent 50d7675 commit c7a2d5d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/cz-git/src/shared/types/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -551,37 +551,37 @@ 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
*
* @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
*
* @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)
Expand Down

0 comments on commit c7a2d5d

Please sign in to comment.