UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

21 lines (16 loc) 729 B
// Type definitions for memory-cache // Project: http://github.com/ptarjan/node-cache // Definitions by: Jeff Goddard <https://github.com/jedigo> // Definitions: https://github.com/borisyankov/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts declare module "memory-cache" { export function put(key: any, value: any, time?: number, timeoutCallback?: (key: any) => void): void; export function get(key: any): any; export function del(key: any): void; export function clear(): void; export function size(): number; export function memsize(): number; export function debug(bool: boolean): void; export function hits(): number; export function misses(): number; }