Skip to content

Commit f1ba279

Browse files
committed
refactor(commit-template): adapt with dependencies upgrade
1 parent 141555a commit f1ba279

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commit-template.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DistinctQuestion } from 'inquirer';
1+
import type { DistinctQuestion } from 'inquirer';
22

33
export type Answers = {
44
type?: string;
@@ -32,7 +32,7 @@ function renderSection(value: string | undefined): string {
3232
return value ? `\n${value}` : '';
3333
}
3434

35-
export function commitTemplate(answers: Answers) {
35+
export function commitTemplate(answers: Answers): string {
3636
let template = headerTemplate(answers.type, answers.scope, answers.subject);
3737

3838
template += renderSection(answers.body);

0 commit comments

Comments
 (0)