Skip to content

Commit c7a2d5d

Browse files
committed
fix(cz-git): default option types add undefined keyword
link #206
1 parent 50d7675 commit c7a2d5d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/cz-git/src/shared/types/options.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ export interface CommitizenGitOptions {
541541
/**
542542
* pin type item the top of the types list (match item value)
543543
*/
544-
defaultType?: string
544+
defaultType?: string | undefined
545545

546546
/**
547547
* Whether to use display default value in custom scope
@@ -551,37 +551,37 @@ export interface CommitizenGitOptions {
551551
* 2. `string[]` for checkbox mode will default-select the options whose values match those within the `scopes` range list.
552552
* @usage When you want to use default, just keyboard `Enter` it
553553
*/
554-
defaultScope?: string | string[]
554+
defaultScope?: string | string[] | undefined
555555

556556
/**
557557
* default value show subject template prompt
558558
*
559559
* @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it
560560
* @usage If you want to use default, just keyboard `Enter` it
561561
*/
562-
defaultSubject?: string
562+
defaultSubject?: string | undefined
563563

564564
/**
565565
* default value show body and BREAKINGCHANGES template prompt
566566
*
567567
* @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it
568568
* @usage When you want to use default, just keyboard `Enter` it
569569
*/
570-
defaultBody?: string
570+
defaultBody?: string | undefined
571571
/**
572572
* default value show issuePrefixes custom template prompt
573573
*
574574
* @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it
575575
* @usage When you want to use default, just keyboard `Enter` it
576576
*/
577-
defaultFooterPrefix?: string
577+
defaultFooterPrefix?: string | undefined
578578
/**
579579
* default value show issue foot template prompt
580580
*
581581
* @usage If you want to use template complete. just keyboard `Tab` or `Right Arrow` it
582582
* @usage When you want to use default, just keyboard `Enter` it
583583
*/
584-
defaultIssues?: string
584+
defaultIssues?: string | undefined
585585

586586
/**
587587
* Whether to use GPG sign commit message (git commit -S -m)

0 commit comments

Comments
 (0)