diff --git a/src/ts/@overflow/commons/utils/Utils.tsx b/src/ts/@overflow/commons/utils/Utils.tsx index 0e8c758..42bbd76 100644 --- a/src/ts/@overflow/commons/utils/Utils.tsx +++ b/src/ts/@overflow/commons/utils/Utils.tsx @@ -9,7 +9,7 @@ export function int2ip(ipInt: number): string { export function ip2int(ip: string): number { // tslint:disable-next-line:no-bitwise - return ip.split('.').reduce(function (ipInt, octet) { return (ipInt << 8) + parseInt(octet, 10); }, 0) >>> 0; + return ip.split('.').reduce((ipInt: number, octet: string) => { return (ipInt << 8) + parseInt(octet, 10); }, 0) >>> 0; } export function sec2date(ms: number): string { diff --git a/src/ts/@overflow/infra/react/components/InfraDetail.tsx b/src/ts/@overflow/infra/react/components/InfraDetail.tsx index ba9c467..372e7cd 100644 --- a/src/ts/@overflow/infra/react/components/InfraDetail.tsx +++ b/src/ts/@overflow/infra/react/components/InfraDetail.tsx @@ -12,7 +12,6 @@ import InfraOS from '@overflow/infra/api/model/InfraOS'; import * as Utils from '@overflow/commons/utils/Utils'; - export interface StateProps { target?: Target; infra?: Infra;