fix: resolve TypeScript build errors in glob callback type and hashline test import

This commit is contained in:
Lex Christopherson 2026-03-13 13:47:01 -06:00
parent 3ee5402ed2
commit d5b7ecb58c
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ export function glob(
options: GlobOptions,
onMatch?: (match: GlobMatch) => void,
): Promise<GlobResult> {
return native.glob(options, onMatch) as Promise<GlobResult>;
return native.glob(options, onMatch as ((match: unknown) => void) | undefined) as Promise<GlobResult>;
}
/**

View file

@ -12,7 +12,7 @@ import {
stripNewLinePrefixes,
type HashlineEdit,
type Anchor,
} from "./hashline.ts";
} from "./hashline.js";
function makeTag(line: number, content: string): Anchor {
return parseTag(formatLineTag(line, content));