We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14ae6fd commit 52ab6e5Copy full SHA for 52ab6e5
packages/cacheable/src/ttl.ts
@@ -5,7 +5,8 @@ import {shorthandToMilliseconds} from '../src/shorthand-time.js';
5
* @param expires - The expires value to convert.
6
* @returns {number | undefined} The TTL value in milliseconds, or undefined if the expires value is not valid.
7
*/
8
-export function getTtlFromExpires(expires: number | undefined): number | undefined {
+// eslint-disable-next-line @typescript-eslint/ban-types
9
+export function getTtlFromExpires(expires: number | null | undefined): number | undefined {
10
if (expires === undefined || expires === null) {
11
return undefined;
12
}
0 commit comments