Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 5, 2021
1 parent fddbd27 commit 2382520
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
21 changes: 1 addition & 20 deletions source/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
7 changes: 4 additions & 3 deletions test/bigint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"extends": "@sindresorhus/tsconfig",
"compilerOptions": {
"outDir": "dist",
"target": "es2020",
"target": "ES2019",
"lib": [
"es2020"
"ES2020"
]
},
"include": [
Expand Down

0 comments on commit 2382520

Please sign in to comment.