diff --git a/packages/config/src/index.ts b/packages/config/src/index.ts index c1c89d1..9281560 100644 --- a/packages/config/src/index.ts +++ b/packages/config/src/index.ts @@ -42,7 +42,6 @@ export type { Env } from "./env.js"; import { existsSync, readFileSync } from "node:fs"; import { join } from "node:path"; -import type { TaggedErrorClass } from "@outfitter/contracts"; import { NotFoundError, Result, TaggedError, ValidationError } from "@outfitter/contracts"; import JSON5 from "json5"; import { parse as parseToml } from "smol-toml"; @@ -53,19 +52,7 @@ import type { ZodSchema } from "zod"; // Error Types // ============================================================================ -const ParseErrorBase: TaggedErrorClass< - "ParseError", - { - /** Human-readable error message describing the parse failure */ - message: string; - /** Name of the file that failed to parse */ - filename: string; - /** Line number where the error occurred (if available) */ - line?: number; - /** Column number where the error occurred (if available) */ - column?: number; - } -> = TaggedError("ParseError")<{ +const ParseErrorBase = TaggedError("ParseError")<{ /** Human-readable error message describing the parse failure */ message: string; /** Name of the file that failed to parse */