Skip to content

Commit

Permalink
resolve some TS donts
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismllr committed Jun 15, 2020
1 parent 941975a commit b4a058d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Custom validation methods can be passed in the array for a specific key. They ar
**Validator signature**
```ts
interface MessageBuilder {
getMessageFor(type: string, context: Object): string
getMessageFor(type: string, context: object): string
}

type Validator = (value: any, messages: MessageBuilder) => [boolean, string];
Expand Down
2 changes: 1 addition & 1 deletion addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { validate as _validate } from 'ember-validators';
* @property {boolean} ValidationState.attrs[propertyName].isValid
*
* @export
* @param {Function[]} validatorFunctions - array of `validate` fns
* @param {function[]} validatorFunctions - array of `validate` fns
* @returns {ValidationState}
*/
export default function validationState(VALIDATOR_FNS) {
Expand Down

0 comments on commit b4a058d

Please sign in to comment.