sindresorhus/eslint-plugin-unicorn
`no-array-method-this-argument` false positives on non-array methods
Chiusa
#1394 aperta il 1 lug 2021
bughelp wantedtypes
Metriche repository
- Star
- (5022 stelle)
- Metriche merge PR
- (Merge medio 4h 30m) (26 PR mergiate in 30 g)
Descrizione
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])