Skip to content

Commit

Permalink
fix(ArrayInfo): Returns type of isValid
Browse files Browse the repository at this point in the history
Was void when in reality it was a boolean.
  • Loading branch information
Antoine Aflalo committed Oct 10, 2018
1 parent 2fe1d9a commit dae4e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ArrayInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ArrayInfo {
* Check if the ArrayInfo is valid for the given data
* @param data
*/
public isValid(data: KeyValue): void {
public isValid(data: KeyValue): boolean {
const index = this.getIndex(data)
return data[this.property].hasOwnProperty(index)
}
Expand Down

0 comments on commit dae4e81

Please sign in to comment.