Skip to content

Commit 9f4d6ae

Browse files
committed
tweak types
1 parent 5a0ad69 commit 9f4d6ae

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: types/cache-override.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare module 'fastly:cache-override' {
2121
* requests to reduce backend traffic.
2222
*
2323
* See the [Fastly request collapsing guide](https://www.fastly.com/documentation/guides/concepts/edge-state/cache/request-collapsing/)
24-
* for more details on the mechanism that `recordUncacheable` disables.
24+
* for more details on the mechanism that `uncacheable` disables.
2525
*/
2626
cache?: boolean | 'uncacheable';
2727
/**

Diff for: types/globals.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ interface Response extends Body {
13641364
*/
13651365
readonly stale: boolean | undefined;
13661366
/**
1367-
* Fastly-specific property - Get the Time to Live (TTL) in the cache for this response, if it is cached.
1367+
* Fastly-specific property - Get the Time to Live (TTL) in the cache for this response in seconds, if it is cached.
13681368
*
13691369
* The TTL determines the duration of "freshness" for the cached response
13701370
* after it is inserted into the cache.
@@ -1373,13 +1373,13 @@ interface Response extends Body {
13731373
*/
13741374
ttl: number | undefined;
13751375
/**
1376-
* Fastly-specific property - The current age of the response, if it is cached.
1376+
* Fastly-specific property - The current age of the response in seconds, if it is cached.
13771377
*
13781378
* Undefined if the response is not cached or the environment does not support the HTTP Cache hostcalls. May be modified prior to injection into the cache.
13791379
*/
13801380
readonly age: number | undefined;
13811381
/**
1382-
* Fastly-specific property - The time for which the response can safely be used despite being considered stale, if it is cached.
1382+
* Fastly-specific property - The time in seconds for which the response can safely be used despite being considered stale, if it is cached.
13831383
*
13841384
* Undefined if the response is not cached or the environment does not support the HTTP Cache hostcalls. May be modified prior to injection into the cache.
13851385
*/

0 commit comments

Comments
 (0)