Skip to content

Commit 0bd0592

Browse files
songhn233AdeAttwood
authored andcommitted
fix(types): prompt messages props optional
1 parent b65aced commit 0bd0592

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

@commitlint/types/src/prompt.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,12 @@ export type PromptConfig = {
3636
};
3737

3838
export type PromptMessages = {
39-
skip: string;
40-
max: string;
41-
min: string;
42-
emptyWarning: string;
43-
upperLimitWarning: string;
44-
lowerLimitWarning: string;
45-
[_key: string]: string;
39+
skip?: string;
40+
max?: string;
41+
min?: string;
42+
emptyWarning?: string;
43+
upperLimitWarning?: string;
44+
lowerLimitWarning?: string;
4645
};
4746

4847
export type UserPromptConfig = DeepPartial<PromptConfig>;

0 commit comments

Comments
 (0)