Skip to content

Commit

Permalink
refactor(message): add strict input typing
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Sep 11, 2019
1 parent da948fd commit 630f117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/message/src/index.ts
@@ -1,5 +1,5 @@
export default message;

function message(input: any[] = []) {
function message(input: (string | null | undefined)[] = []) {
return input.filter(Boolean).join(' ');
}

0 comments on commit 630f117

Please sign in to comment.