@lynx-js/web-core-wasm-canary 0.0.1-canary-20260119-82b4052d → 0.0.1-canary-20260119-609be14f
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/CHANGELOG.md +2 -2
- package/binary/client/client.d.ts +225 -216
- package/binary/client/client.js +781 -813
- package/binary/client/client_bg.wasm +0 -0
- package/binary/client/client_debug.d.ts +225 -216
- package/binary/client/client_debug.js +808 -840
- package/binary/client/client_debug_bg.wasm +0 -0
- package/binary/client/client_debug_bg.wasm.d.ts +30 -30
- package/binary/encode/encode.d.ts +134 -124
- package/binary/encode/encode.js +714 -10
- package/binary/encode/encode_bg.wasm +0 -0
- package/binary/encode/encode_debug.d.ts +134 -124
- package/binary/encode/encode_debug.js +786 -10
- package/binary/encode/encode_debug_bg.wasm +0 -0
- package/binary/encode/encode_debug_bg.wasm.d.ts +12 -12
- package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +4 -4
- package/dist/client_prod/static/js/client.js +2 -2
- package/dist/client_prod/static/wasm/{7ff75609.module.wasm → 3d7e607b.module.wasm} +0 -0
- package/package.json +2 -2
- package/binary/encode/encode_bg.js +0 -749
- package/binary/encode/encode_debug_bg.js +0 -822
|
Binary file
|
|
@@ -1,138 +1,145 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
|
|
3
4
|
export class DecodedStyleData {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
static decode_into(buffer: Uint8Array, entry_name: string | null | undefined, config_enable_css_selector: boolean): Uint8Array;
|
|
8
|
+
static encode_from_raw_style_info(raw_style_info: RawStyleInfo, config_enable_css_selector: boolean, entry_name?: string | null): Uint8Array;
|
|
9
|
+
constructor(buffer: Uint8Array);
|
|
10
|
+
query_css_og_declarations_by_css_id(css_id: number, class_name: string[]): string;
|
|
11
|
+
readonly font_face_content: string;
|
|
12
|
+
readonly style_content: string;
|
|
12
13
|
}
|
|
14
|
+
|
|
13
15
|
export class ElementTemplateSection {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
private constructor();
|
|
17
|
+
free(): void;
|
|
18
|
+
[Symbol.dispose](): void;
|
|
19
|
+
static from_encoded(buffer: Uint8Array): ElementTemplateSection;
|
|
18
20
|
}
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
*
|
|
21
24
|
* * for return of __GetEvents
|
|
22
|
-
*
|
|
25
|
+
*
|
|
23
26
|
*/
|
|
24
27
|
export class EventInfo {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
private constructor();
|
|
29
|
+
free(): void;
|
|
30
|
+
[Symbol.dispose](): void;
|
|
31
|
+
function: any;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
31
34
|
}
|
|
35
|
+
|
|
32
36
|
export class MainThreadWasmContext {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
37
|
+
free(): void;
|
|
38
|
+
[Symbol.dispose](): void;
|
|
39
|
+
__AddDataset(unique_id: number, key: any, value: any): void;
|
|
40
|
+
__CreateElementCommon(parent_component_unique_id: number, dom: HTMLElement, css_id?: number | null, component_id?: string | null): number;
|
|
41
|
+
__GetComponentID(unique_id: number): string | undefined;
|
|
42
|
+
__GetConfig(unique_id: number): object;
|
|
43
|
+
__GetDataByKey(unique_id: number, key: string): any;
|
|
44
|
+
__GetDataset(unique_id: number): object;
|
|
45
|
+
__GetElementConfig(unique_id: number): object | undefined;
|
|
46
|
+
__GetEvent(unique_id: number, event_name: string, event_type: string): any;
|
|
47
|
+
__GetEvents(unique_id: number): EventInfo[];
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* * key: String
|
|
51
|
+
* * value: stringifyed js value
|
|
52
|
+
*
|
|
53
|
+
*/
|
|
54
|
+
__SetConfig(unique_id: number, config: object): void;
|
|
55
|
+
__SetDataset(unique_id: number, dom: HTMLElement, new_dataset: object): void;
|
|
56
|
+
__UpdateComponentID(unique_id: number, component_id?: string | null): void;
|
|
57
|
+
__wasm_AddInlineStyle_number_key(dom: HTMLElement, key: number, value?: string | null): void;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* * The key could be string or number
|
|
61
|
+
* * The value could be string or number or null or undefined
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
__wasm_AddInlineStyle_str_key(dom: HTMLElement, key: string, value?: string | null): void;
|
|
65
|
+
__wasm_SetInlineStyles(dom: HTMLElement, styles: string): boolean;
|
|
66
|
+
__wasm_add_event_bts(unique_id: number, event_type: string, event_name: string, event_handler_identifier?: string | null): void;
|
|
67
|
+
__wasm_add_event_run_worklet(unique_id: number, event_type: string, event_name: string, event_handler_identifier?: any | null): void;
|
|
68
|
+
__wasm_commonEventHandler(event: any, bubble_unique_id_path: Uint32Array, event_name: string): void;
|
|
69
|
+
__wasm_get_css_id_by_unique_id(unique_id: number): number | undefined;
|
|
70
|
+
__wasm_get_unique_id_by_component_id(component_id: string): number | undefined;
|
|
71
|
+
__wasm_set_css_id(elements_unique_id: Uint32Array, css_id: number): void;
|
|
72
|
+
__wasm_set_page_element_unique_id(unique_id: number): void;
|
|
73
|
+
__wasm_take_timing_flags(): string[];
|
|
74
|
+
_wasm_elementFromBinary(parent_component_unique_id: number, template_url: string, element_template_name: string, element_template_section: ElementTemplateSection): Element;
|
|
75
|
+
dispatch_event_by_path(bubble_unique_id_path: Uint32Array, event_name: string, is_capture: boolean, serialized_event: any): boolean;
|
|
76
|
+
constructor(document: Document, root_node: Node, mts_binding: any, unique_id_symbol: any, config_enable_css_selector: boolean);
|
|
73
77
|
}
|
|
78
|
+
|
|
74
79
|
/**
|
|
75
80
|
*
|
|
76
81
|
* * key: cssId
|
|
77
82
|
* * value: StyleSheet
|
|
78
|
-
*
|
|
83
|
+
*
|
|
79
84
|
*/
|
|
80
85
|
export class RawStyleInfo {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
*
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
86
|
+
free(): void;
|
|
87
|
+
[Symbol.dispose](): void;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* * Appends an import to the stylesheet identified by `css_id`.
|
|
91
|
+
* * If the stylesheet does not exist, it is created.
|
|
92
|
+
* * @param css_id - The ID of the CSS file.
|
|
93
|
+
* * @param import_css_id - The ID of the imported CSS file.
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
append_import(css_id: number, import_css_id: number): void;
|
|
97
|
+
constructor();
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* * Pushes a rule to the stylesheet identified by `css_id`.
|
|
101
|
+
* * If the stylesheet does not exist, it is created.
|
|
102
|
+
* * @param css_id - The ID of the CSS file.
|
|
103
|
+
* * @param rule - The rule to append.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
push_rule(css_id: number, rule: Rule): void;
|
|
102
107
|
}
|
|
108
|
+
|
|
103
109
|
export class Rule {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
*
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
110
|
+
free(): void;
|
|
111
|
+
[Symbol.dispose](): void;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* * Creates a new Rule with the specified type.
|
|
115
|
+
* * @param rule_type - The type of the rule (e.g., "StyleRule", "FontFaceRule", "KeyframesRule").
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
constructor(rule_type: string);
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* * Pushes a declaration to the rule's declaration block.
|
|
122
|
+
* * @param property_name - The property name.
|
|
123
|
+
* * @param value - The property value.
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
push_declaration(property_name: string, value: string): void;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
* * Pushes a nested rule to the rule.
|
|
130
|
+
* * @param rule - The nested rule to add.
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
push_rule_children(rule: Rule): void;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* * Sets the prelude for the rule.
|
|
137
|
+
* * @param prelude - The prelude to set (SelectorList or KeyFramesPrelude).
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
set_prelude(prelude: RulePrelude): void;
|
|
135
141
|
}
|
|
142
|
+
|
|
136
143
|
/**
|
|
137
144
|
*
|
|
138
145
|
* * Either SelectorList or KeyFramesPrelude
|
|
@@ -140,124 +147,126 @@ export class Rule {
|
|
|
140
147
|
* * If it is SelectorList, then selectors is a list of Selector
|
|
141
148
|
* * If it is KeyFramesPrelude, then selectors has only one selector which is Prelude text, its simple_selectors is empty
|
|
142
149
|
* * If the parent is FontFace, then selectors is empty
|
|
143
|
-
*
|
|
150
|
+
*
|
|
144
151
|
*/
|
|
145
152
|
export class RulePrelude {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
153
|
+
free(): void;
|
|
154
|
+
[Symbol.dispose](): void;
|
|
155
|
+
constructor();
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* * Pushes a selector to the list.
|
|
159
|
+
* * @param selector - The selector to add.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
push_selector(selector: Selector): void;
|
|
156
163
|
}
|
|
164
|
+
|
|
157
165
|
export class Selector {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
166
|
+
free(): void;
|
|
167
|
+
[Symbol.dispose](): void;
|
|
168
|
+
constructor();
|
|
169
|
+
/**
|
|
170
|
+
*
|
|
171
|
+
* * Pushes a selector section to the selector.
|
|
172
|
+
* * @param selector_type - The type of the selector section (e.g., "ClassSelector", "IdSelector").
|
|
173
|
+
* * @param value - The value of the selector section.
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
push_one_selector_section(selector_type: string, value: string): void;
|
|
169
177
|
}
|
|
170
178
|
|
|
171
179
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
172
180
|
|
|
173
181
|
export interface InitOutput {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
182
|
+
readonly memory: WebAssembly.Memory;
|
|
183
|
+
readonly mainthreadwasmcontext___GetComponentID: (a: number, b: number) => [number, number, number, number];
|
|
184
|
+
readonly mainthreadwasmcontext___GetElementConfig: (a: number, b: number) => [number, number, number];
|
|
185
|
+
readonly mainthreadwasmcontext___SetConfig: (a: number, b: number, c: any) => [number, number];
|
|
186
|
+
readonly mainthreadwasmcontext___GetConfig: (a: number, b: number) => [number, number, number];
|
|
187
|
+
readonly mainthreadwasmcontext___UpdateComponentID: (a: number, b: number, c: number, d: number) => [number, number];
|
|
188
|
+
readonly __wbg_elementtemplatesection_free: (a: number, b: number) => void;
|
|
189
|
+
readonly elementtemplatesection_from_encoded: (a: any) => [number, number, number];
|
|
190
|
+
readonly __wbg_rawstyleinfo_free: (a: number, b: number) => void;
|
|
191
|
+
readonly __wbg_rule_free: (a: number, b: number) => void;
|
|
192
|
+
readonly __wbg_ruleprelude_free: (a: number, b: number) => void;
|
|
193
|
+
readonly __wbg_selector_free: (a: number, b: number) => void;
|
|
194
|
+
readonly rawstyleinfo_new: () => number;
|
|
195
|
+
readonly rawstyleinfo_append_import: (a: number, b: number, c: number) => void;
|
|
196
|
+
readonly rawstyleinfo_push_rule: (a: number, b: number, c: number) => void;
|
|
197
|
+
readonly rule_new: (a: number, b: number) => [number, number, number];
|
|
198
|
+
readonly rule_set_prelude: (a: number, b: number) => void;
|
|
199
|
+
readonly rule_push_declaration: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
200
|
+
readonly rule_push_rule_children: (a: number, b: number) => void;
|
|
201
|
+
readonly ruleprelude_new: () => number;
|
|
202
|
+
readonly ruleprelude_push_selector: (a: number, b: number) => void;
|
|
203
|
+
readonly selector_new: () => number;
|
|
204
|
+
readonly selector_push_one_selector_section: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
205
|
+
readonly __wbg_mainthreadwasmcontext_free: (a: number, b: number) => void;
|
|
206
|
+
readonly mainthreadwasmcontext_new: (a: any, b: any, c: any, d: any, e: number) => number;
|
|
207
|
+
readonly mainthreadwasmcontext___wasm_set_page_element_unique_id: (a: number, b: number) => void;
|
|
208
|
+
readonly mainthreadwasmcontext___CreateElementCommon: (a: number, b: number, c: any, d: number, e: number, f: number) => number;
|
|
209
|
+
readonly mainthreadwasmcontext___wasm_take_timing_flags: (a: number) => [number, number];
|
|
210
|
+
readonly mainthreadwasmcontext___wasm_get_unique_id_by_component_id: (a: number, b: number, c: number) => number;
|
|
211
|
+
readonly mainthreadwasmcontext___wasm_get_css_id_by_unique_id: (a: number, b: number) => number;
|
|
212
|
+
readonly mainthreadwasmcontext___SetDataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
213
|
+
readonly mainthreadwasmcontext___AddDataset: (a: number, b: number, c: any, d: any) => [number, number];
|
|
214
|
+
readonly mainthreadwasmcontext___GetDataset: (a: number, b: number) => [number, number, number];
|
|
215
|
+
readonly mainthreadwasmcontext___GetDataByKey: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
216
|
+
readonly mainthreadwasmcontext__wasm_elementFromBinary: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
217
|
+
readonly __wbg_eventinfo_free: (a: number, b: number) => void;
|
|
218
|
+
readonly __wbg_get_eventinfo_name: (a: number) => [number, number];
|
|
219
|
+
readonly __wbg_set_eventinfo_name: (a: number, b: number, c: number) => void;
|
|
220
|
+
readonly __wbg_get_eventinfo_type: (a: number) => [number, number];
|
|
221
|
+
readonly __wbg_set_eventinfo_type: (a: number, b: number, c: number) => void;
|
|
222
|
+
readonly __wbg_get_eventinfo_function: (a: number) => any;
|
|
223
|
+
readonly __wbg_set_eventinfo_function: (a: number, b: any) => void;
|
|
224
|
+
readonly mainthreadwasmcontext___wasm_add_event_bts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
225
|
+
readonly mainthreadwasmcontext___wasm_add_event_run_worklet: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
226
|
+
readonly mainthreadwasmcontext___GetEvent: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
227
|
+
readonly mainthreadwasmcontext___GetEvents: (a: number, b: number) => [number, number];
|
|
228
|
+
readonly mainthreadwasmcontext_dispatch_event_by_path: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => number;
|
|
229
|
+
readonly mainthreadwasmcontext___wasm_commonEventHandler: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
230
|
+
readonly __wbg_decodedstyledata_free: (a: number, b: number) => void;
|
|
231
|
+
readonly decodedstyledata_new: (a: any) => [number, number, number];
|
|
232
|
+
readonly decodedstyledata_style_content: (a: number) => [number, number];
|
|
233
|
+
readonly decodedstyledata_font_face_content: (a: number) => [number, number];
|
|
234
|
+
readonly decodedstyledata_query_css_og_declarations_by_css_id: (a: number, b: number, c: number, d: number) => [number, number];
|
|
235
|
+
readonly decodedstyledata_decode_into: (a: any, b: number, c: number, d: number) => [number, number, number];
|
|
236
|
+
readonly decodedstyledata_encode_from_raw_style_info: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
237
|
+
readonly mainthreadwasmcontext___wasm_set_css_id: (a: number, b: number, c: number, d: number) => void;
|
|
238
|
+
readonly mainthreadwasmcontext___wasm_AddInlineStyle_str_key: (a: number, b: any, c: number, d: number, e: number, f: number) => void;
|
|
239
|
+
readonly mainthreadwasmcontext___wasm_AddInlineStyle_number_key: (a: number, b: any, c: number, d: number, e: number) => void;
|
|
240
|
+
readonly mainthreadwasmcontext___wasm_SetInlineStyles: (a: number, b: any, c: number, d: number) => number;
|
|
241
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
242
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
243
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
244
|
+
readonly __externref_table_alloc: () => number;
|
|
245
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
246
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
247
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
248
|
+
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
249
|
+
readonly __wbindgen_start: () => void;
|
|
242
250
|
}
|
|
243
251
|
|
|
244
252
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
253
|
+
|
|
245
254
|
/**
|
|
246
|
-
* Instantiates the given `module`, which can either be bytes or
|
|
247
|
-
* a precompiled `WebAssembly.Module`.
|
|
248
|
-
*
|
|
249
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
250
|
-
*
|
|
251
|
-
* @returns {InitOutput}
|
|
252
|
-
*/
|
|
255
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
256
|
+
* a precompiled `WebAssembly.Module`.
|
|
257
|
+
*
|
|
258
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
259
|
+
*
|
|
260
|
+
* @returns {InitOutput}
|
|
261
|
+
*/
|
|
253
262
|
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
254
263
|
|
|
255
264
|
/**
|
|
256
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
257
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
258
|
-
*
|
|
259
|
-
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
260
|
-
*
|
|
261
|
-
* @returns {Promise<InitOutput>}
|
|
262
|
-
*/
|
|
265
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
266
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
267
|
+
*
|
|
268
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
269
|
+
*
|
|
270
|
+
* @returns {Promise<InitOutput>}
|
|
271
|
+
*/
|
|
263
272
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|