refactor: trim Diagnostic to fields produced this slice (task 0003)
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.
This commit is contained in:
@@ -2,23 +2,10 @@
|
|||||||
|
|
||||||
export type Frontmatter = Record<string, unknown>;
|
export type Frontmatter = Record<string, unknown>;
|
||||||
|
|
||||||
export interface Point {
|
|
||||||
line: number;
|
|
||||||
column: number;
|
|
||||||
offset?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Position {
|
|
||||||
start: Point;
|
|
||||||
end: Point;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Diagnostic {
|
export interface Diagnostic {
|
||||||
severity: "warning";
|
severity: "warning";
|
||||||
code: string;
|
code: string;
|
||||||
message: string;
|
message: string;
|
||||||
source?: string;
|
|
||||||
position?: Position;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TextNode {
|
export interface TextNode {
|
||||||
|
|||||||
Reference in New Issue
Block a user