Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e841ef

Browse files
committedNov 20, 2021
refactor: ignore linter error
1 parent 6a57621 commit 8e841ef

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/decorator/string/IsIP.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const IS_IP = 'isIp';
1111
* If given value is not a string, then it returns false.
1212
*/
1313
export function isIP(value: unknown, version?: IsIpVersion): boolean {
14+
/* eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion */
1415
const versionStr = version ? (`${version}` as '4' | '6') : undefined;
1516
return typeof value === 'string' && isIPValidator(value, versionStr);
1617
}

‎src/decorator/string/IsISBN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const IS_ISBN = 'isIsbn';
1111
* If given value is not a string, then it returns false.
1212
*/
1313
export function isISBN(value: unknown, version?: IsISBNVersion): boolean {
14+
/* eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion */
1415
const versionStr = version ? (`${version}` as '10' | '13') : undefined;
1516
return typeof value === 'string' && isIsbnValidator(value, versionStr);
1617
}

0 commit comments

Comments
 (0)