mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 19:07:08 +00:00
Small module used e.g. in Google's Lighthouse - definition - tests https://github.com/roryf/parse-cache-control Thanks!
6 lines
209 B
TypeScript
6 lines
209 B
TypeScript
import parseCacheControl = require('parse-cache-control');
|
|
|
|
const header = parseCacheControl('must-revalidate, max-age=3600');
|
|
|
|
parseCacheControl('must-revalidate, max-age=3600'); // $ExpectType Header | null
|