DefinitelyTyped/types/parse-cache-control/parse-cache-control-tests.ts
Piotr Błażejewicz (Peter Blazejewicz) 2f95f2c465
feat(parse-cache-control): new definition (#47865)
Small module used e.g. in Google's Lighthouse

- definition
- tests

https://github.com/roryf/parse-cache-control

Thanks!
2020-09-22 12:16:19 -07:00

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