Improve the TypeScript types (#80)

This commit is contained in:
Sindre Sorhus 2019-02-04 02:13:23 +07:00
parent 2502442404
commit 3c847be5a0
3 changed files with 70 additions and 52 deletions

View file

@ -867,7 +867,7 @@ test('is.any', t => {
t.false(is.any(is.integer, true, 'lol', {}));
t.throws(() => {
is.any(null, true);
is.any(null as any, true);
});
t.throws(() => {
@ -882,7 +882,7 @@ test('is.all', t => {
t.false(is.all(is.set, new Map(), {}));
t.throws(() => {
is.all(null, true);
is.all(null as any, true);
});
t.throws(() => {