From d91677e72f8694118b5bbd9c1857876e84b4cdeb Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 17 Dec 2021 09:26:34 +0000 Subject: [PATCH] fix(nitro): correct `#assets` type declaration (#2403) --- packages/nitro/types/shims.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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' {