refactor: 🚚 Explicitely add extensions to all imports

This commit is contained in:
Jesse Wierzbinski 2024-10-04 15:22:48 +02:00
parent b5b7014c00
commit b53307c824
No known key found for this signature in database
99 changed files with 168 additions and 169 deletions

View file

@ -1,6 +1,6 @@
import { z } from "zod";
import { Hooks } from "./hooks";
import { Plugin } from "./plugin";
import { Hooks } from "./hooks.ts";
import { Plugin } from "./plugin.ts";
const myPlugin = new Plugin(
z.object({

View file

@ -1,6 +1,6 @@
import { Hooks } from "./hooks";
import { Plugin } from "./plugin";
import type { Manifest } from "./schema";
import { Hooks } from "./hooks.ts";
import { Plugin } from "./plugin.ts";
import type { Manifest } from "./schema.ts";
export type { Manifest };
export { Plugin, Hooks };

View file

@ -1,5 +1,5 @@
import { zodToJsonSchema } from "zod-to-json-schema";
import { manifestSchema } from "./schema";
import { manifestSchema } from "./schema.ts";
const jsonSchema = zodToJsonSchema(manifestSchema);

View file

@ -3,7 +3,7 @@ import type { OpenAPIHono } from "@hono/zod-openapi";
import type { z } from "zod";
import { type ZodError, fromZodError } from "zod-validation-error";
import type { HonoEnv } from "~/types/api";
import type { ServerHooks } from "./hooks";
import type { ServerHooks } from "./hooks.ts";
export type HonoPluginEnv<ConfigType extends z.ZodTypeAny> = HonoEnv & {
Variables: {