fix test requirements version and wrong expect type

This commit is contained in:
MutterPedro
2019-01-30 21:48:12 -02:00
parent 53b75eb119
commit 7dadf2dedd
2 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for mem-cache v0.1.0
// Type definitions for mem-cache v1.0.0
// Project: https://github.com/silviom/node-mem-cache
// Definitions by: Pedro Mutter <https://github.com/MutterPedro>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
-6
View File
@@ -1,12 +1,6 @@
import Cache from 'mem-cache';
const cache = new Cache(); // $ExpectType Cache
const cache2 = new Cache(100000); // $ExpectType Cache
const cache3 = new Cache({
doesNotRenewTimeout: true,
timeout: 100000,
timeoutDisabled: false
}); // $ExpectType Cache
cache.set('foo', 'bar'); // $ExpectType void
cache.get('foo'); // $ExpectType any