mix init options in the Module-global
This commit is contained in:
parent
0926fad1e2
commit
12d727fd49
4 changed files with 48 additions and 29 deletions
6
lib/binding_web/tree-sitter-web.d.ts
vendored
6
lib/binding_web/tree-sitter-web.d.ts
vendored
|
|
@ -1,6 +1,10 @@
|
|||
declare module 'web-tree-sitter' {
|
||||
class Parser {
|
||||
static init(): Promise<void>;
|
||||
/**
|
||||
*
|
||||
* @param moduleOptions Optional emscripten module-object, see https://emscripten.org/docs/api_reference/module.html
|
||||
*/
|
||||
static init(moduleOptions?: object): Promise<void>;
|
||||
delete(): void;
|
||||
parse(input: string | Parser.Input, previousTree?: Parser.Tree, options?: Parser.Options): Parser.Tree;
|
||||
getLanguage(): any;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue