From 343f9a3fb6d1cfb344de200403f2a4fd50df9a23 Mon Sep 17 00:00:00 2001 From: aarr0n Date: Wed, 29 Jan 2020 13:17:27 +1300 Subject: [PATCH 1/2] Allow null values to be passed to isFinite --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 752670b..1d60c0d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -64,7 +64,7 @@ declare module 'vend-number' { static multiply(...values: Stringable[]): number static divide(...values: Stringable[]): number static sumBy(collection: T[], property: K, decimalPoints: number): string - static isFinite(value: number | string | BigNumber): boolean + static isFinite(value: null | number | string | BigNumber): boolean } export function vn(value?: Stringable): VendNumber @@ -74,5 +74,5 @@ declare module 'vend-number' { export function multiply(...values: Stringable[]): number export function divide(...values: Stringable[]): number export function sumBy(collection: T[], property: K, decimalPoints: number): string - export function isFinite(value: number | string | BigNumber): boolean + export function isFinite(value: null | number | string | BigNumber): boolean } From ceeebae9a70d2dd833d009510e9e9539ee656b6d Mon Sep 17 00:00:00 2001 From: aarr0n Date: Wed, 29 Jan 2020 13:29:47 +1300 Subject: [PATCH 2/2] Use node 6 --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index b9879cc..4909f83 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,3 @@ language: node_js node_js: - "6" - - "5" - - "4"