sindresorhus/eslint-plugin-unicorn
`no-array-method-this-argument` false positives on non-array methods
已關閉
#1,394 建立於 2021年7月1日
bughelp wantedtypes
倉庫指標
- 星標
- (5,022 顆星)
- PR 合併指標
- (平均合併 4小時 30分鐘) (30 天內合併 26 個 PR)
描述
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])