sindresorhus/eslint-plugin-unicorn
`no-array-method-this-argument` false positives on non-array methods
Closed
#1,394 opened on Jul 1, 2021
bughelp wantedtypes
Repository metrics
- Stars
- (5,022 stars)
- PR merge metrics
- (Avg merge 1d 16h) (399 merged PRs in 30d)
Description
export interface ErrorMapperInterface {
/**
* Maps an error to a string.
* @param {string} key the error key. i.e., required, etc
* @param error the error object
* @param control control Object (AbstractControl for Angular, NgModel for AngularJS)
* @returns {string}
*/
map(key: string, error?: any, control?: any): string;
}
declare const mapper: ErrorMapperInterface
mapperService.map(firstError, errors[firstError])