Skip to content

Commit 33df20d

Browse files
committed
build(nuxt): ensure cache is typed
1 parent 2f577c3 commit 33df20d

File tree

1 file changed

+3
-0
lines changed
  • packages/nuxt/src/core/runtime/nitro/utils

1 file changed

+3
-0
lines changed

packages/nuxt/src/core/runtime/nitro/utils/cache.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Workaround for 'The inferred type of 'payloadCache' cannot be named without a reference to '.pnpm/unstorage@1.16.0_db0@0.3.2_ioredis@5.6.1/node_modules/unstorage'.
2+
// This is likely not portable. A type annotation is necessary.
3+
import type {} from 'unstorage'
14
import { useStorage } from '#internal/nitro'
25

36
export const payloadCache = import.meta.prerender ? useStorage('internal:nuxt:prerender:payload') : null

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy