Skip to content

Commit 6afb37f

Browse files
authored
Merge pull request #1 from gary-jensen/main
Proper module declaration, and added configure to the declaration.
2 parents 266e1b3 + 5c01b3f commit 6afb37f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

index.d.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
declare module 'tiptap-inline-code-highlight' {
2-
import { Extension } from '@tiptap/core';
3-
export interface CodeInlineLowlightOptions {
4-
lowlight: any;
5-
}
6-
export class CodeInlineLowlight extends Extension {
7-
constructor(options: CodeInlineLowlightOptions);
8-
static readonly name: string;
9-
}
10-
export default CodeInlineLowlight;
11-
}
12-
1+
declare module "@nartix/tiptap-inline-code-highlight" {
2+
import { Extension } from "@tiptap/core";
3+
export interface CodeInlineLowlightOptions {
4+
lowlight: any;
5+
}
6+
export class CodeInlineLowlight extends Extension {
7+
constructor(options: CodeInlineLowlightOptions);
8+
static readonly name: string;
9+
static configure(
10+
options: Partial<CodeInlineLowlightOptions>
11+
): CodeInlineLowlight;
12+
}
13+
export default CodeInlineLowlight;
14+
}

0 commit comments

Comments
 (0)