mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +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
|