Skip to content

Commit 3f6b8f2

Browse files
committed
add type definition to fix remark-kroki type lookup failure
1 parent 300001c commit 3f6b8f2

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

types/remark-kroki.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// FIXME: delete this file once `remark-kroki` ships its own type definitions
2+
// (or once `@types/remark-kroki` is published on DefinitelyTyped). Track
3+
// upstream at https://github.com/show-docs/remark-kroki.
4+
declare module "remark-kroki" {
5+
export interface RemarkKrokiOptions {
6+
server?: string;
7+
headers?: Record<string, string>;
8+
alias?: string[];
9+
output?: string;
10+
target?: "html" | "mdx3";
11+
}
12+
13+
export function remarkKroki(options?: RemarkKrokiOptions): (tree: unknown) => Promise<void>;
14+
}

0 commit comments

Comments
 (0)