Skip to content

Commit

Permalink
chore: fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 19, 2024
1 parent d59f0dd commit 002e79e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/presets/cloudflare/runtime/cloudflare-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
import.meta._websocket &&
request.headers.get("upgrade") === "websocket"
) {
return ws!.handleUpgrade(request as any, env, context);
return ws!.handleUpgrade(request as any, env, context as unknown as ExecutionContext);
}

const url = new URL(request.url);
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/internal/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import { storage } from "#nitro-internal-virtual/storage";
export function useStorage<T extends StorageValue = StorageValue>(
base = ""
): Storage<T> {
return base ? prefixStorage<T>(storage, base) : storage;
return (base ? prefixStorage(storage, base) : storage) as unknown as Storage<T>;
}

0 comments on commit 002e79e

Please sign in to comment.