diff --git a/.gitattributes b/.gitattributes index 391f0a4..6313b56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/package.json b/package.json index 0739cbc..3dec915 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "nyc": "^13.1.0", "tslint": "^5.12.0", "tslint-xo": "^0.16.0", + "type-fest": "^0.3.0", "typedoc": "^0.14.2", "typescript": "^3.3.1", "vali-date": "^1.0.0", diff --git a/source/predicates.ts b/source/predicates.ts index f116de1..706b337 100644 --- a/source/predicates.ts +++ b/source/predicates.ts @@ -1,3 +1,4 @@ +import {TypedArray} from 'type-fest'; import {StringPredicate} from './predicates/string'; import {NumberPredicate} from './predicates/number'; import {BooleanPredicate} from './predicates/boolean'; @@ -13,8 +14,6 @@ import {WeakSetPredicate} from './predicates/weak-set'; import {BasePredicate} from './predicates/base-predicate'; import {AnyPredicate} from './predicates/any'; -type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; - export interface Predicates { /** * Test the value to be a string.