diff --git a/packages/build/src/types/options/netlify_plugin_cache_util.ts b/packages/build/src/types/options/netlify_plugin_cache_util.ts index 32d471f445..34b1ab405d 100644 --- a/packages/build/src/types/options/netlify_plugin_cache_util.ts +++ b/packages/build/src/types/options/netlify_plugin_cache_util.ts @@ -7,6 +7,10 @@ export type NetlifyPluginCacheUtil = { save( path: Many, options?: { + /** + * @default `false` + */ + move?: boolean ttl?: number digests?: string[] /** @@ -15,6 +19,19 @@ export type NetlifyPluginCacheUtil = { cwd?: string }, ): Promise + restore( + path: Many, + options?: { + /** + * @default `false` + */ + move?: boolean + /** + * @default `process.cwd()` + */ + cwd?: string + }, + ): Promise list(options?: { /** * @default `process.cwd()` @@ -26,7 +43,7 @@ export type NetlifyPluginCacheUtil = { depth?: number }): Promise } & Record< - 'restore' | 'remove' | 'has', + 'remove' | 'has', ( path: Many, options?: {