From b4a058df2c8d3697cab39d09d9ba8e45c137739f Mon Sep 17 00:00:00 2001 From: Chris Miller Date: Mon, 15 Jun 2020 15:51:42 -0500 Subject: [PATCH] resolve some TS donts --- README.md | 2 +- addon/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2842379..7e9c412 100644 --- a/README.md +++ b/README.md @@ -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]; diff --git a/addon/index.js b/addon/index.js index c19100f..eaba027 100644 --- a/addon/index.js +++ b/addon/index.js @@ -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) {