fix: resolve TypeScript build errors in glob callback type and hashline test import
This commit is contained in:
parent
3ee5402ed2
commit
d5b7ecb58c
2 changed files with 2 additions and 2 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue