mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
fix test requirements version and wrong expect type
This commit is contained in:
Vendored
+1
-1
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user