Browse Source

Use `type-fest`

string-allowed-chars
Sindre Sorhus 6 years ago
parent
commit
a4bca1cbdc
  1. 3
      .gitattributes
  2. 1
      package.json
  3. 3
      source/predicates.ts

3
.gitattributes

@ -1,2 +1 @@
* text=auto
*.js text eol=lf
* text=auto eol=lf

1
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",

3
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.

Loading…
Cancel
Save