Skip to content

Commit

Permalink
feat: define nitro #storage and #assets types (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Oct 22, 2021
1 parent 814ac73 commit cf78609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types/shims.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ declare module '#storage' {

declare module '#assets' {
export interface AssetMeta { type?: string, etag?: string, mtime?: string }
export function readAsset<T=any>(id: string): Promise<T>
export function statAsset(id: string): Promise<AssetMeta>
export function readAsset<T = any> (id: string): Promise<T>
export function statAsset (id: string): Promise<AssetMeta>
export function getKeys() : Promise<string[]>
}

0 comments on commit cf78609

Please sign in to comment.