-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquestions.ts
More file actions
33 lines (29 loc) · 771 Bytes
/
questions.ts
File metadata and controls
33 lines (29 loc) · 771 Bytes
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
/**
* @file Type Definitions - Questions
* @module commitlint-config/types/Questions
*/
import type { PromptKind, Scope, Type } from '#src/enums'
import type { Overwrite } from '@flex-development/tutils'
import type Question from './question'
import type QuestionEnum from './question-enum'
/**
* Prompt questions.
*
* @see https://commitlint.js.org/#/reference-prompt?id=questions
*
* @extends {Record<PromptKind,Question>}
*/
type Questions = Overwrite<
Record<PromptKind, Question>,
{
/**
* Commit scope questions configuration.
*/
[PromptKind.SCOPE]: Question<Scope>
/**
* Commit type questions configuration.
*/
[PromptKind.TYPE]: Question<Type, Required<QuestionEnum>>
}
>
export type { Questions as default }