office-oxide-wasm 0.1.0
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/LICENSE-APACHE +176 -0
- package/LICENSE-MIT +25 -0
- package/README.md +123 -0
- package/bundler/office_oxide.d.ts +34 -0
- package/bundler/office_oxide.js +9 -0
- package/bundler/office_oxide_bg.js +313 -0
- package/bundler/office_oxide_bg.wasm +0 -0
- package/bundler/office_oxide_bg.wasm.d.ts +14 -0
- package/node/office_oxide.d.ts +34 -0
- package/node/office_oxide.js +318 -0
- package/node/office_oxide_bg.wasm +0 -0
- package/node/office_oxide_bg.wasm.d.ts +14 -0
- package/package.json +95 -0
- package/web/office_oxide.d.ts +73 -0
- package/web/office_oxide.js +412 -0
- package/web/office_oxide_bg.wasm +0 -0
- package/web/office_oxide_bg.wasm.d.ts +14 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
/* @ts-self-types="./office_oxide.d.ts" */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A parsed Office document for use in JavaScript/WASM.
|
|
5
|
+
*/
|
|
6
|
+
export class WasmDocument {
|
|
7
|
+
__destroy_into_raw() {
|
|
8
|
+
const ptr = this.__wbg_ptr;
|
|
9
|
+
this.__wbg_ptr = 0;
|
|
10
|
+
WasmDocumentFinalization.unregister(this);
|
|
11
|
+
return ptr;
|
|
12
|
+
}
|
|
13
|
+
free() {
|
|
14
|
+
const ptr = this.__destroy_into_raw();
|
|
15
|
+
wasm.__wbg_wasmdocument_free(ptr, 0);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Return the format name: "docx", "xlsx", or "pptx".
|
|
19
|
+
* @returns {string}
|
|
20
|
+
*/
|
|
21
|
+
formatName() {
|
|
22
|
+
let deferred1_0;
|
|
23
|
+
let deferred1_1;
|
|
24
|
+
try {
|
|
25
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
26
|
+
wasm.wasmdocument_formatName(retptr, this.__wbg_ptr);
|
|
27
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
28
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
29
|
+
deferred1_0 = r0;
|
|
30
|
+
deferred1_1 = r1;
|
|
31
|
+
return getStringFromWasm0(r0, r1);
|
|
32
|
+
} finally {
|
|
33
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
34
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Create a new document from raw bytes and a format string ("docx", "xlsx", "pptx").
|
|
39
|
+
* @param {Uint8Array} data
|
|
40
|
+
* @param {string} format
|
|
41
|
+
*/
|
|
42
|
+
constructor(data, format) {
|
|
43
|
+
try {
|
|
44
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
45
|
+
const ptr0 = passArray8ToWasm0(data, wasm.__wbindgen_export);
|
|
46
|
+
const len0 = WASM_VECTOR_LEN;
|
|
47
|
+
const ptr1 = passStringToWasm0(format, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
48
|
+
const len1 = WASM_VECTOR_LEN;
|
|
49
|
+
wasm.wasmdocument_new(retptr, ptr0, len0, ptr1, len1);
|
|
50
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
51
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
52
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
53
|
+
if (r2) {
|
|
54
|
+
throw takeObject(r1);
|
|
55
|
+
}
|
|
56
|
+
this.__wbg_ptr = r0 >>> 0;
|
|
57
|
+
WasmDocumentFinalization.register(this, this.__wbg_ptr, this);
|
|
58
|
+
return this;
|
|
59
|
+
} finally {
|
|
60
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Extract plain text from the document.
|
|
65
|
+
* @returns {string}
|
|
66
|
+
*/
|
|
67
|
+
plainText() {
|
|
68
|
+
let deferred1_0;
|
|
69
|
+
let deferred1_1;
|
|
70
|
+
try {
|
|
71
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
72
|
+
wasm.wasmdocument_plainText(retptr, this.__wbg_ptr);
|
|
73
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
74
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
75
|
+
deferred1_0 = r0;
|
|
76
|
+
deferred1_1 = r1;
|
|
77
|
+
return getStringFromWasm0(r0, r1);
|
|
78
|
+
} finally {
|
|
79
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
80
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Convert the document to an HTML fragment.
|
|
85
|
+
* @returns {string}
|
|
86
|
+
*/
|
|
87
|
+
toHtml() {
|
|
88
|
+
let deferred1_0;
|
|
89
|
+
let deferred1_1;
|
|
90
|
+
try {
|
|
91
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
92
|
+
wasm.wasmdocument_toHtml(retptr, this.__wbg_ptr);
|
|
93
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
94
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
95
|
+
deferred1_0 = r0;
|
|
96
|
+
deferred1_1 = r1;
|
|
97
|
+
return getStringFromWasm0(r0, r1);
|
|
98
|
+
} finally {
|
|
99
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
100
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Convert the document to a JSON IR representation.
|
|
105
|
+
* @returns {any}
|
|
106
|
+
*/
|
|
107
|
+
toIr() {
|
|
108
|
+
try {
|
|
109
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
110
|
+
wasm.wasmdocument_toIr(retptr, this.__wbg_ptr);
|
|
111
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
112
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
113
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
114
|
+
if (r2) {
|
|
115
|
+
throw takeObject(r1);
|
|
116
|
+
}
|
|
117
|
+
return takeObject(r0);
|
|
118
|
+
} finally {
|
|
119
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Convert the document to markdown.
|
|
124
|
+
* @returns {string}
|
|
125
|
+
*/
|
|
126
|
+
toMarkdown() {
|
|
127
|
+
let deferred1_0;
|
|
128
|
+
let deferred1_1;
|
|
129
|
+
try {
|
|
130
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
131
|
+
wasm.wasmdocument_toMarkdown(retptr, this.__wbg_ptr);
|
|
132
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
133
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
134
|
+
deferred1_0 = r0;
|
|
135
|
+
deferred1_1 = r1;
|
|
136
|
+
return getStringFromWasm0(r0, r1);
|
|
137
|
+
} finally {
|
|
138
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
139
|
+
wasm.__wbindgen_export3(deferred1_0, deferred1_1, 1);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (Symbol.dispose) WasmDocument.prototype[Symbol.dispose] = WasmDocument.prototype.free;
|
|
144
|
+
|
|
145
|
+
function __wbg_get_imports() {
|
|
146
|
+
const import0 = {
|
|
147
|
+
__proto__: null,
|
|
148
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
149
|
+
const ret = String(getObject(arg1));
|
|
150
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
151
|
+
const len1 = WASM_VECTOR_LEN;
|
|
152
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
153
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
154
|
+
},
|
|
155
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
156
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
157
|
+
},
|
|
158
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
159
|
+
const ret = new Array();
|
|
160
|
+
return addHeapObject(ret);
|
|
161
|
+
},
|
|
162
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
163
|
+
const ret = new Object();
|
|
164
|
+
return addHeapObject(ret);
|
|
165
|
+
},
|
|
166
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
167
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
168
|
+
},
|
|
169
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
170
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
171
|
+
},
|
|
172
|
+
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
173
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
174
|
+
const ret = arg0;
|
|
175
|
+
return addHeapObject(ret);
|
|
176
|
+
},
|
|
177
|
+
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
178
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
179
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
180
|
+
return addHeapObject(ret);
|
|
181
|
+
},
|
|
182
|
+
__wbindgen_object_clone_ref: function(arg0) {
|
|
183
|
+
const ret = getObject(arg0);
|
|
184
|
+
return addHeapObject(ret);
|
|
185
|
+
},
|
|
186
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
187
|
+
takeObject(arg0);
|
|
188
|
+
},
|
|
189
|
+
};
|
|
190
|
+
return {
|
|
191
|
+
__proto__: null,
|
|
192
|
+
"./office_oxide_bg.js": import0,
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
const WasmDocumentFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
197
|
+
? { register: () => {}, unregister: () => {} }
|
|
198
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmdocument_free(ptr >>> 0, 1));
|
|
199
|
+
|
|
200
|
+
function addHeapObject(obj) {
|
|
201
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
202
|
+
const idx = heap_next;
|
|
203
|
+
heap_next = heap[idx];
|
|
204
|
+
|
|
205
|
+
heap[idx] = obj;
|
|
206
|
+
return idx;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function dropObject(idx) {
|
|
210
|
+
if (idx < 1028) return;
|
|
211
|
+
heap[idx] = heap_next;
|
|
212
|
+
heap_next = idx;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
let cachedDataViewMemory0 = null;
|
|
216
|
+
function getDataViewMemory0() {
|
|
217
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
218
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
219
|
+
}
|
|
220
|
+
return cachedDataViewMemory0;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
function getStringFromWasm0(ptr, len) {
|
|
224
|
+
ptr = ptr >>> 0;
|
|
225
|
+
return decodeText(ptr, len);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
let cachedUint8ArrayMemory0 = null;
|
|
229
|
+
function getUint8ArrayMemory0() {
|
|
230
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
231
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
232
|
+
}
|
|
233
|
+
return cachedUint8ArrayMemory0;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function getObject(idx) { return heap[idx]; }
|
|
237
|
+
|
|
238
|
+
let heap = new Array(1024).fill(undefined);
|
|
239
|
+
heap.push(undefined, null, true, false);
|
|
240
|
+
|
|
241
|
+
let heap_next = heap.length;
|
|
242
|
+
|
|
243
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
244
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
245
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
246
|
+
WASM_VECTOR_LEN = arg.length;
|
|
247
|
+
return ptr;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
251
|
+
if (realloc === undefined) {
|
|
252
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
253
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
254
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
255
|
+
WASM_VECTOR_LEN = buf.length;
|
|
256
|
+
return ptr;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
let len = arg.length;
|
|
260
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
261
|
+
|
|
262
|
+
const mem = getUint8ArrayMemory0();
|
|
263
|
+
|
|
264
|
+
let offset = 0;
|
|
265
|
+
|
|
266
|
+
for (; offset < len; offset++) {
|
|
267
|
+
const code = arg.charCodeAt(offset);
|
|
268
|
+
if (code > 0x7F) break;
|
|
269
|
+
mem[ptr + offset] = code;
|
|
270
|
+
}
|
|
271
|
+
if (offset !== len) {
|
|
272
|
+
if (offset !== 0) {
|
|
273
|
+
arg = arg.slice(offset);
|
|
274
|
+
}
|
|
275
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
276
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
277
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
278
|
+
|
|
279
|
+
offset += ret.written;
|
|
280
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
WASM_VECTOR_LEN = offset;
|
|
284
|
+
return ptr;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
function takeObject(idx) {
|
|
288
|
+
const ret = getObject(idx);
|
|
289
|
+
dropObject(idx);
|
|
290
|
+
return ret;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
294
|
+
cachedTextDecoder.decode();
|
|
295
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
296
|
+
let numBytesDecoded = 0;
|
|
297
|
+
function decodeText(ptr, len) {
|
|
298
|
+
numBytesDecoded += len;
|
|
299
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
300
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
301
|
+
cachedTextDecoder.decode();
|
|
302
|
+
numBytesDecoded = len;
|
|
303
|
+
}
|
|
304
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
const cachedTextEncoder = new TextEncoder();
|
|
308
|
+
|
|
309
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
310
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
311
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
312
|
+
view.set(buf);
|
|
313
|
+
return {
|
|
314
|
+
read: arg.length,
|
|
315
|
+
written: buf.length
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
let WASM_VECTOR_LEN = 0;
|
|
321
|
+
|
|
322
|
+
let wasmModule, wasm;
|
|
323
|
+
function __wbg_finalize_init(instance, module) {
|
|
324
|
+
wasm = instance.exports;
|
|
325
|
+
wasmModule = module;
|
|
326
|
+
cachedDataViewMemory0 = null;
|
|
327
|
+
cachedUint8ArrayMemory0 = null;
|
|
328
|
+
return wasm;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
async function __wbg_load(module, imports) {
|
|
332
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
333
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
334
|
+
try {
|
|
335
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
336
|
+
} catch (e) {
|
|
337
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
338
|
+
|
|
339
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
340
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
341
|
+
|
|
342
|
+
} else { throw e; }
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const bytes = await module.arrayBuffer();
|
|
347
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
348
|
+
} else {
|
|
349
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
350
|
+
|
|
351
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
352
|
+
return { instance, module };
|
|
353
|
+
} else {
|
|
354
|
+
return instance;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
function expectedResponseType(type) {
|
|
359
|
+
switch (type) {
|
|
360
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
361
|
+
}
|
|
362
|
+
return false;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function initSync(module) {
|
|
367
|
+
if (wasm !== undefined) return wasm;
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
if (module !== undefined) {
|
|
371
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
372
|
+
({module} = module)
|
|
373
|
+
} else {
|
|
374
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
const imports = __wbg_get_imports();
|
|
379
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
380
|
+
module = new WebAssembly.Module(module);
|
|
381
|
+
}
|
|
382
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
383
|
+
return __wbg_finalize_init(instance, module);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
async function __wbg_init(module_or_path) {
|
|
387
|
+
if (wasm !== undefined) return wasm;
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
if (module_or_path !== undefined) {
|
|
391
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
392
|
+
({module_or_path} = module_or_path)
|
|
393
|
+
} else {
|
|
394
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
if (module_or_path === undefined) {
|
|
399
|
+
module_or_path = new URL('office_oxide_bg.wasm', import.meta.url);
|
|
400
|
+
}
|
|
401
|
+
const imports = __wbg_get_imports();
|
|
402
|
+
|
|
403
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
404
|
+
module_or_path = fetch(module_or_path);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
408
|
+
|
|
409
|
+
return __wbg_finalize_init(instance, module);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export { initSync, __wbg_init as default };
|
|
Binary file
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_wasmdocument_free: (a: number, b: number) => void;
|
|
5
|
+
export const wasmdocument_formatName: (a: number, b: number) => void;
|
|
6
|
+
export const wasmdocument_new: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
7
|
+
export const wasmdocument_plainText: (a: number, b: number) => void;
|
|
8
|
+
export const wasmdocument_toHtml: (a: number, b: number) => void;
|
|
9
|
+
export const wasmdocument_toIr: (a: number, b: number) => void;
|
|
10
|
+
export const wasmdocument_toMarkdown: (a: number, b: number) => void;
|
|
11
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
12
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
13
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
14
|
+
export const __wbindgen_export3: (a: number, b: number, c: number) => void;
|