Skip to content

Commit

Permalink
chore(extensions/typings): update
Browse files Browse the repository at this point in the history
  • Loading branch information
bhsd-harry committed Aug 4, 2024
1 parent 37d4694 commit db5abd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion extensions/typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ declare global {
const wikiparse: wikiparse;
}

export type codejar = (textbox: HTMLTextAreaElement, include?: boolean) => CodeJarAsync & {include: boolean};
export type codejar = (textbox: HTMLTextAreaElement, include?: boolean, linenums?: boolean) =>
CodeJarAsync & {include: boolean};

/* eslint-disable @typescript-eslint/method-signature-style */
export interface wikiparse {
version: string;
id: number;
setI18N: (i18n: Record<string, string>) => void;
setConfig: (config: Config) => void;
getConfig: () => Promise<Config>;
json: (wikitext: string, include: boolean, qid?: number, stage?: number) => Promise<AST>;
print: (wikitext: string, include?: boolean, stage?: number, qid?: number) => Promise<[number, string, string][]>;
lint: (wikitext: string, include?: boolean, qid?: number) => Promise<LintError[]>;
lineNumbers: (html: HTMLElement, start?: number, paddingTop?: string) => void;
highlight?: (ele: HTMLElement, include?: boolean, linenums?: boolean, start?: number) => Promise<void>;
edit?: (textbox: HTMLTextAreaElement, include?: boolean) => PrinterBase;
codejar?: codejar | Promise<codejar>;
Expand Down

0 comments on commit db5abd5

Please sign in to comment.