-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-prompt.ts
40 lines (35 loc) · 1.01 KB
/
config-prompt.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @file Interfaces - PromptConfig
* @module commitlint-config/interfaces/PromptConfig
*/
import type { Questions } from '#src/types'
import type * as commitlint from '@commitlint/types'
/**
* Object representing prompt configuration used by `@commitlint/cz-commitlint`.
*
* @see https://commitlint.js.org/#/reference-prompt
* @see https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/cz-commitlint
*
* @extends {commitlint.PromptConfig}
*/
interface PromptConfig extends commitlint.PromptConfig {
/**
* Message hints.
*
* @see https://commitlint.js.org/#/reference-prompt?id=messages
*/
messages: commitlint.PromptConfig['messages']
/**
* Interactive steps.
*
* @see https://commitlint.js.org/#/reference-prompt?id=questions
*/
questions: Questions
/**
* Additional prompt settings.
*
* @see https://commitlint.js.org/#/reference-prompt?id=settings
*/
settings: commitlint.PromptConfig['settings']
}
export type { PromptConfig as default }