diff --git a/source/index.ts b/source/index.ts index 0a336c6..81845f3 100644 --- a/source/index.ts +++ b/source/index.ts @@ -111,24 +111,5 @@ const _ow: Ow = predicates(modifiers(ow)) as Ow; export default _ow; export {BasePredicate, Predicate}; - -export { - StringPredicate, - NumberPredicate, - BooleanPredicate, - ArrayPredicate, - ObjectPredicate, - DatePredicate, - ErrorPredicate, - MapPredicate, - WeakMapPredicate, - SetPredicate, - WeakSetPredicate, - TypedArrayPredicate, - ArrayBufferPredicate, - DataViewPredicate, - AnyPredicate, - Shape -} from './predicates'; - +export * from './predicates'; export {ArgumentError} from './argument-error'; diff --git a/test/bigint.ts b/test/bigint.ts index 10991f3..1c78b2e 100644 --- a/test/bigint.ts +++ b/test/bigint.ts @@ -6,9 +6,10 @@ test('bigint', t => { ow(BigInt(9007199254740991), ow.bigint); }); - t.notThrows(() => { - ow(9007199254740991n, ow.bigint); - }); + // TODO: Enable when targeting Node.js 14. + // t.notThrows(() => { + // ow(9007199254740991n, ow.bigint); + // }); t.throws(() => { ow(10, ow.bigint); diff --git a/tsconfig.json b/tsconfig.json index 5dc8ef5..15beb3e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,9 +2,9 @@ "extends": "@sindresorhus/tsconfig", "compilerOptions": { "outDir": "dist", - "target": "es2020", + "target": "ES2019", "lib": [ - "es2020" + "ES2020" ] }, "include": [