diff --git a/packages/nitro/types/shims.d.ts b/packages/nitro/types/shims.d.ts index 8a9e865b4d..68664a2884 100644 --- a/packages/nitro/types/shims.d.ts +++ b/packages/nitro/types/shims.d.ts @@ -5,9 +5,13 @@ declare module '#storage' { declare module '#assets' { export interface AssetMeta { type?: string, etag?: string, mtime?: string } - export function readAsset (id: string): Promise - export function statAsset (id: string): Promise - export function getKeys() : Promise + + export const assets: { + getKeys(): Promise + hasItem(id: string): Promise + getItem (id: string): Promise + getMeta(id: string): Promise + } } declare module '#config' {