@tombi-toml/wasm-lib 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/package.json +1 -1
- package/dist/tombi_wasm.d.ts +61 -50
- package/dist/tombi_wasm.js +729 -733
- package/dist/tombi_wasm_bg.wasm +0 -0
- package/dist/tombi_wasm_bg.wasm.d.ts +11 -10
- package/package.json +1 -1
package/dist/package.json
CHANGED
package/dist/tombi_wasm.d.ts
CHANGED
|
@@ -1,70 +1,81 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
|
|
4
|
-
export function format(source: string, source_path: string, options: any): Promise<any>;
|
|
5
|
-
export function lint(source: string, source_path: string, options: any): Promise<any>;
|
|
3
|
+
|
|
6
4
|
export class Diagnostic {
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
private constructor();
|
|
6
|
+
free(): void;
|
|
7
|
+
[Symbol.dispose](): void;
|
|
9
8
|
}
|
|
9
|
+
|
|
10
10
|
export class Position {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
private constructor();
|
|
12
|
+
free(): void;
|
|
13
|
+
[Symbol.dispose](): void;
|
|
14
|
+
column: number;
|
|
15
|
+
line: number;
|
|
15
16
|
}
|
|
17
|
+
|
|
16
18
|
export class Range {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
private constructor();
|
|
20
|
+
free(): void;
|
|
21
|
+
[Symbol.dispose](): void;
|
|
22
|
+
end: Position;
|
|
23
|
+
start: Position;
|
|
21
24
|
}
|
|
22
25
|
|
|
26
|
+
export function format(source: string, source_path: string, options: any): Promise<any>;
|
|
27
|
+
|
|
28
|
+
export function lint(source: string, source_path: string, options: any): Promise<any>;
|
|
29
|
+
|
|
30
|
+
export function start(): void;
|
|
31
|
+
|
|
23
32
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
24
33
|
|
|
25
34
|
export interface InitOutput {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
readonly memory: WebAssembly.Memory;
|
|
36
|
+
readonly __wbg_diagnostic_free: (a: number, b: number) => void;
|
|
37
|
+
readonly __wbg_get_position_column: (a: number) => number;
|
|
38
|
+
readonly __wbg_get_position_line: (a: number) => number;
|
|
39
|
+
readonly __wbg_get_range_end: (a: number) => number;
|
|
40
|
+
readonly __wbg_get_range_start: (a: number) => number;
|
|
41
|
+
readonly __wbg_position_free: (a: number, b: number) => void;
|
|
42
|
+
readonly __wbg_range_free: (a: number, b: number) => void;
|
|
43
|
+
readonly __wbg_set_position_column: (a: number, b: number) => void;
|
|
44
|
+
readonly __wbg_set_position_line: (a: number, b: number) => void;
|
|
45
|
+
readonly __wbg_set_range_end: (a: number, b: number) => void;
|
|
46
|
+
readonly __wbg_set_range_start: (a: number, b: number) => void;
|
|
47
|
+
readonly format: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
48
|
+
readonly lint: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
49
|
+
readonly start: () => void;
|
|
50
|
+
readonly __wasm_bindgen_func_elem_8942: (a: number, b: number, c: number, d: number) => void;
|
|
51
|
+
readonly __wasm_bindgen_func_elem_8944: (a: number, b: number, c: number, d: number) => void;
|
|
52
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
53
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
54
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
55
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
56
|
+
readonly __wbindgen_export5: (a: number, b: number) => void;
|
|
57
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
58
|
+
readonly __wbindgen_start: () => void;
|
|
49
59
|
}
|
|
50
60
|
|
|
51
61
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
62
|
+
|
|
52
63
|
/**
|
|
53
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
54
|
-
* a precompiled `WebAssembly.Module`.
|
|
55
|
-
*
|
|
56
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
57
|
-
*
|
|
58
|
-
* @returns {InitOutput}
|
|
59
|
-
*/
|
|
64
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
65
|
+
* a precompiled `WebAssembly.Module`.
|
|
66
|
+
*
|
|
67
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
68
|
+
*
|
|
69
|
+
* @returns {InitOutput}
|
|
70
|
+
*/
|
|
60
71
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
61
72
|
|
|
62
73
|
/**
|
|
63
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
64
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
65
|
-
*
|
|
66
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
67
|
-
*
|
|
68
|
-
* @returns {Promise<InitOutput>}
|
|
69
|
-
*/
|
|
74
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
75
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
76
|
+
*
|
|
77
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
78
|
+
*
|
|
79
|
+
* @returns {Promise<InitOutput>}
|
|
80
|
+
*/
|
|
70
81
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|