ci: add a tslint rule to require type definitions
This commit is contained in:
parent
74375bfedf
commit
0cdd7b1e2c
21 changed files with 36 additions and 30 deletions
ts_src
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue