mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
11 lines
317 B
TypeScript
11 lines
317 B
TypeScript
import Cache = require('mem-cache');
|
|
|
|
const cache = new Cache(); // $ExpectType Cache
|
|
|
|
cache.set('foo', 'bar'); // $ExpectType void
|
|
cache.get('foo'); // $ExpectType any
|
|
cache.remove('foo'); // $ExpectType void
|
|
cache.clean(); // $ExpectType void
|
|
cache.length; // $ExpectType number
|
|
cache.keys; // $ExpectType string[]
|