From 8687b7501a36fa1df77fb8044f1e613c92acd568 Mon Sep 17 00:00:00 2001 From: alexion Date: Mon, 27 Jul 2026 17:41:23 -0400 Subject: [PATCH] refactor: trim Diagnostic to fields produced this slice (task 0003) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Drop the Point/Position types and the source/position fields from Diagnostic. Nothing constructs a diagnostic yet — diagnostics is always empty until task 0007 emits the first invalid-frontmatter warning, which adds the locator fields back additively alongside its own tests. --- packages/core/src/types.ts | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 5232984..ab6dee8 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -2,23 +2,10 @@ export type Frontmatter = Record; -export interface Point { - line: number; - column: number; - offset?: number; -} - -export interface Position { - start: Point; - end: Point; -} - export interface Diagnostic { severity: "warning"; code: string; message: string; - source?: string; - position?: Position; } export interface TextNode {