We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 141555a commit f1ba279Copy full SHA for f1ba279
src/commit-template.ts
@@ -1,4 +1,4 @@
1
-import { DistinctQuestion } from 'inquirer';
+import type { DistinctQuestion } from 'inquirer';
2
3
export type Answers = {
4
type?: string;
@@ -32,7 +32,7 @@ function renderSection(value: string | undefined): string {
32
return value ? `\n${value}` : '';
33
}
34
35
-export function commitTemplate(answers: Answers) {
+export function commitTemplate(answers: Answers): string {
36
let template = headerTemplate(answers.type, answers.scope, answers.subject);
37
38
template += renderSection(answers.body);
0 commit comments