File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
packages/build/src/types/options Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff 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 ?: {
You can’t perform that action at this time.
0 commit comments