@types/catbox
Advanced tools
Comparing version 10.0.6 to 10.0.7
@@ -197,7 +197,7 @@ // Type definitions for catbox 10.0 | ||
/** expiresIn - relative expiration expressed in the number of milliseconds since the item was saved in the cache. Cannot be used together with expiresAt. */ | ||
expiresIn?: number; | ||
expiresIn?: number | undefined; | ||
/** expiresAt - time of day expressed in 24h notation using the 'HH:MM' format, at which point all cache records for the route expire. Uses local time. Cannot be used together with expiresIn. */ | ||
expiresAt?: string; | ||
expiresAt?: string | undefined; | ||
/** generateFunc - a function used to generate a new cache item if one is not found in the cache when calling get(). The method's signature is function(id, next) where: */ | ||
generateFunc?: GenerateFunc<T>; | ||
generateFunc?: GenerateFunc<T> | undefined; | ||
/** | ||
@@ -209,5 +209,5 @@ * staleIn - number of milliseconds to mark an item stored in cache as stale and attempt to regenerate it when generateFunc is provided. | ||
*/ | ||
staleIn?: number | ((stored: number, ttl: number) => number); | ||
staleIn?: number | ((stored: number, ttl: number) => number) | undefined; | ||
/** staleTimeout - number of milliseconds to wait before returning a stale value while generateFunc is generating a fresh value. */ | ||
staleTimeout?: number; | ||
staleTimeout?: number | undefined; | ||
/** | ||
@@ -218,9 +218,9 @@ * generateTimeout - number of milliseconds to wait before returning a timeout error when the generateFunc function takes too long to return a value. | ||
*/ | ||
generateTimeout?: number | false; | ||
generateTimeout?: number | false | undefined; | ||
/** dropOnError - if true, an error or timeout in the generateFunc causes the stale value to be evicted from the cache. Defaults to true. */ | ||
dropOnError?: boolean; | ||
dropOnError?: boolean | undefined; | ||
/** generateOnReadError - if false, an upstream cache read error will stop the get() method from calling the generate function and will instead pass back the cache error. Defaults to true. */ | ||
generateOnReadError?: boolean; | ||
generateOnReadError?: boolean | undefined; | ||
/** generateIgnoreWriteError - if false, an upstream cache write error will be passed back with the generated value when calling the get() method. Defaults to true. */ | ||
generateIgnoreWriteError?: boolean; | ||
generateIgnoreWriteError?: boolean | undefined; | ||
/** | ||
@@ -230,3 +230,3 @@ * pendingGenerateTimeout - number of milliseconds while generateFunc call is in progress for a given id, before a subsequent generateFunc call is allowed. | ||
*/ | ||
pendingGenerateTimeout?: number; | ||
pendingGenerateTimeout?: number | undefined; | ||
} | ||
@@ -271,3 +271,3 @@ | ||
/** error - lookup error. */ | ||
error?: Error; | ||
error?: Error | undefined; | ||
} | ||
@@ -274,0 +274,0 @@ |
{ | ||
"name": "@types/catbox", | ||
"version": "10.0.6", | ||
"version": "10.0.7", | ||
"description": "TypeScript definitions for catbox", | ||
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/catbox", | ||
"license": "MIT", | ||
@@ -24,11 +25,12 @@ "contributors": [ | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
"directory": "types/catbox" | ||
}, | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "32fe63535bd6e8ef830fe225e47e2d00ec57c140a25e0f3827ef6173af0ea6fc", | ||
"typeScriptVersion": "2.8" | ||
"typesPublisherContentHash": "b7bcedb2a4252b9a5fa55f332e6fdf23753d8a3aaa8e79249980a9089d3db859", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -5,9 +5,9 @@ # Installation | ||
# Summary | ||
This package contains type definitions for catbox ( https://github.com/hapijs/catbox ). | ||
This package contains type definitions for catbox (https://github.com/hapijs/catbox). | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/catbox | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/catbox. | ||
Additional Details | ||
* Last updated: Wed, 20 Feb 2019 01:29:59 GMT | ||
### Additional Details | ||
* Last updated: Tue, 06 Jul 2021 18:05:49 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Jason Swearingen <https://github.com/jasonswearingen>, AJP <https://github.com/AJamesPhillips>, Rodrigo Saboya <https://github.com/saboya>. | ||
These definitions were written by [Jason Swearingen](https://github.com/jasonswearingen), [AJP](https://github.com/AJamesPhillips), and [Rodrigo Saboya](https://github.com/saboya). |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
16432
0