Skip to content

Commit

Permalink
Remove void from possible returns
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Jul 8, 2016
1 parent 9175325 commit e0f195d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function is (schema: Types.Rule, value: any) {
/**
* Select the best matching type from a list of schemas.
*/
export function bestSchema (schemas: Types.Rule[], value: any): Types.Rule | void {
export function bestSchema (schemas: Types.Rule[], value: any): Types.Rule {
let type: Types.Rule
let score = 0

Expand Down

0 comments on commit e0f195d

Please sign in to comment.