mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor: 🚚 Explicitely add extensions to all imports
This commit is contained in:
parent
b5b7014c00
commit
b53307c824
99 changed files with 168 additions and 169 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { zodToJsonSchema } from "zod-to-json-schema";
|
||||
import { manifestSchema } from "./schema";
|
||||
import { manifestSchema } from "./schema.ts";
|
||||
|
||||
const jsonSchema = zodToJsonSchema(manifestSchema);
|
||||
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue