Skip to content

Commit

Permalink
add generic to prefixStorage
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 21, 2023
1 parent a53c385 commit b431e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { storage } from "#internal/nitro/virtual/storage";
export function useStorage<T extends StorageValue = StorageValue>(
base = ""
): Storage<T> {
return base ? prefixStorage(storage, base) : storage;
return base ? prefixStorage<T>(storage, base) : storage;
}

0 comments on commit b431e63

Please sign in to comment.