Skip to content

Commit c2843db

Browse files
authored
fix: add move to options type for cache util exposed to build plugins (#6019)
1 parent 79580ca commit c2843db

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

packages/build/src/types/options/netlify_plugin_cache_util.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ export type NetlifyPluginCacheUtil = {
77
save(
88
path: Many<string>,
99
options?: {
10+
/**
11+
* @default `false`
12+
*/
13+
move?: boolean
1014
ttl?: number
1115
digests?: string[]
1216
/**
@@ -15,6 +19,19 @@ export type NetlifyPluginCacheUtil = {
1519
cwd?: string
1620
},
1721
): Promise<boolean>
22+
restore(
23+
path: Many<string>,
24+
options?: {
25+
/**
26+
* @default `false`
27+
*/
28+
move?: boolean
29+
/**
30+
* @default `process.cwd()`
31+
*/
32+
cwd?: string
33+
},
34+
): Promise<boolean>
1835
list(options?: {
1936
/**
2037
* @default `process.cwd()`
@@ -26,7 +43,7 @@ export type NetlifyPluginCacheUtil = {
2643
depth?: number
2744
}): Promise<string[]>
2845
} & Record<
29-
'restore' | 'remove' | 'has',
46+
'remove' | 'has',
3047
(
3148
path: Many<string>,
3249
options?: {

0 commit comments

Comments
 (0)