New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/async-cache

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/async-cache - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

0

async-cache/index.d.ts

@@ -0,0 +0,0 @@ // Type definitions for async-cache 1.1

16

async-cache/package.json
{
"name": "@types/async-cache",
"version": "1.1.0",
"version": "1.1.1",
"description": "TypeScript definitions for async-cache",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache",
"license": "MIT",

@@ -9,16 +10,19 @@ "contributors": [

"name": "BendingBender",
"url": "https://github.com/BendingBender"
"url": "https://github.com/BendingBender",
"githubUsername": "BendingBender"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/async-cache"
},
"scripts": {},
"dependencies": {
"@types/lru-cache": "*"
"@types/lru-cache": "^4"
},
"typesPublisherContentHash": "c234c3ff19085028886bc68f527fb8f11034bd500a362096a86f020f02b7b9ef",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "29a3c27033b55e05383b94eb7b2e64185b44da656a226795689921aeaecf6e88",
"typeScriptVersion": "3.8"
}

@@ -8,10 +8,48 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/async-cache/index.d.ts)
````ts
// Type definitions for async-cache 1.1
// Project: https://github.com/isaacs/async-cache#readme
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Fri, 25 Aug 2017 14:31:50 GMT
* Dependencies: lru-cache
import { Options as LRUOptions } from 'lru-cache';
export = AsyncCache;
declare const AsyncCache: AsyncCacheFactory;
interface AsyncCacheFactory {
<T>(options: AsyncCache.Options<T>): AsyncCache.Cache<T>;
new <T>(options: AsyncCache.Options<T>): AsyncCache.Cache<T>;
}
declare namespace AsyncCache {
interface Cache<T> {
readonly itemCount: number;
get(key: string, cb: (error: any, value: T) => void): void;
keys(): string[];
set(key: string, value: T, maxAge?: number): boolean;
reset(): void;
has(key: string): boolean;
del(key: string): void;
peek(key: string): T | undefined;
}
interface Options<T> extends LRUOptions<string, T> {
load(key: string, callback: (error: any, asyncValue: T, maxAge?: number) => void): void;
}
}
````
### Additional Details
* Last updated: Wed, 23 Feb 2022 18:31:55 GMT
* Dependencies: [@types/lru-cache](https://npmjs.com/package/@types/lru-cache)
* Global values: none
# Credits
These definitions were written by BendingBender <https://github.com/BendingBender>.
These definitions were written by [BendingBender](https://github.com/BendingBender).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc