ci: add a tslint rule to require type definitions

This commit is contained in:
d-yokoi 2019-03-22 00:15:37 +09:00
parent 74375bfedf
commit 0cdd7b1e2c
No known key found for this signature in database
GPG key ID: 49EAF81BC6A0D19A
21 changed files with 36 additions and 30 deletions
ts_src

View file

@ -26,7 +26,7 @@ function isPushOnlyChunk(value: number | Buffer): boolean {
return types.Buffer(value) || isOPInt(value as number);
}
export function isPushOnly(value: Stack) {
export function isPushOnly(value: Stack): boolean {
return types.Array(value) && value.every(isPushOnlyChunk);
}