Skip to content

Commit

Permalink
chore: typing virtual:remix/server-build (#557)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Jan 16, 2024
1 parent 38a2dbc commit f507464
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions app/misc/entry-hattip.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import * as build from "virtual:remix/server-build";
import { type RequestHandler, compose } from "@hattip/compose";
import { once } from "@hiogawa/utils";
import { createLoggerHandler } from "@hiogawa/utils-hattip";
Expand All @@ -10,10 +11,6 @@ import { pathToRegExp } from "../utils/misc";
import { traceAsync } from "../utils/opentelemetry-utils";
import { initializeServer } from "./initialize-server";

// @ts-ignore isort-ignore
import * as remixViteBuild from "virtual:remix/server-build";
const build = remixViteBuild as typeof import("@remix-run/dev/server-build");

// based on https://github.com/hi-ogawa/vite-fullstack-example/blob/92649f99b041820ec86650c99cfcd49a72e79f71/src/server/hattip.ts#L16-L28

export function createHattipEntry() {
Expand Down
3 changes: 3 additions & 0 deletions app/types/remix.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare module "virtual:remix/server-build" {
export * from "@remix-run/dev/server-build";
}

0 comments on commit f507464

Please sign in to comment.