Skip to content

Commit

Permalink
fix: explicit import from #imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 22, 2024
1 parent 67e1828 commit dfcfb53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/runtime/plugin.dev.ts
@@ -1,4 +1,6 @@
import type { NitroAppPlugin } from "nitropack";
// @ts-ignore
import { useRuntimeConfig } from "#imports";

export default <NitroAppPlugin>function (nitroApp) {
let _proxy: ReturnType<typeof getBindingsProxy>;
Expand Down Expand Up @@ -33,9 +35,7 @@ async function getBindingsProxy() {

const runtimeConfig: {
wrangler: { configPath: string; persistDir: string };
} =
// @ts-ignore
useRuntimeConfig();
} = useRuntimeConfig();

const proxy = await getBindingsProxy({
configPath: runtimeConfig.wrangler.configPath,
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Expand Up @@ -4,7 +4,7 @@
"module": "ESNext",
"moduleResolution": "Node",
"esModuleInterop": true,
"strict": true
"strict": true,
},
"include": ["src"]
"include": ["src"],
}

0 comments on commit dfcfb53

Please sign in to comment.