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 Jul 29, 2019
1 parent 2e9d32f commit bb0b18b
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 bb0b18b

Please sign in to comment.