Skip to content

Commit

Permalink
chore: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 23, 2025
1 parent 38ae798 commit b46be66
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist
.wrangler
.mf
test-results
*.tsbuildinfo
4 changes: 1 addition & 3 deletions examples/child-process/src/lib/ambient.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
declare const __vite_server: import("vite").ViteDevServer;
declare const __vite_environment_rsc__: import(
"./vite/environment",
).ChildProcessFetchDevEnvironment;
declare const __vite_environment_rsc__: import("./vite/environment").ChildProcessFetchDevEnvironment;
1 change: 1 addition & 0 deletions examples/react-server/e2e/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { sleep } from "@hiogawa/utils";
import { type Page, type Request, expect, test } from "@playwright/test";

export const testNoJs = test.extend({
// @ts-ignore
javaScriptEnabled: ({}, use) => use(false),
});

Expand Down
4 changes: 1 addition & 3 deletions examples/react-server/src/types/react-modules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ declare module "react-server-dom-webpack/server.edge" {
data: T,
bundlerConfig: import(".").BundlerConfig,
opitons?: {
onError: import(
"react-dom/server",
).RenderToReadableStreamOptions["onError"];
onError: import("react-dom/server").RenderToReadableStreamOptions["onError"];
},
): ReadableStream<Uint8Array>;

Expand Down
3 changes: 2 additions & 1 deletion packages/workerd/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export class RunnerObject extends DurableObject implements RunnerRpc {
tinyassert(handler.fetch);

const env = objectPickBy(this.#env, (_v, k) => !k.startsWith("__vite"));
return handler.fetch(request, env, {
return handler.fetch(request as any, env, {
waitUntil(_promise: Promise<any>) {},
passThroughOnException() {},
abort(_reason?: any) {},
props: {},
});
}

Expand Down
30 changes: 9 additions & 21 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b46be66

Please sign in to comment.