pubky-app-specs 0.3.0-rc2 → 0.3.0-rc4
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/package.json +1 -1
- package/pubky_app_specs.d.ts +2 -0
- package/pubky_app_specs.js +19 -0
- package/pubky_app_specs_bg.wasm +0 -0
package/package.json
CHANGED
package/pubky_app_specs.d.ts
CHANGED
|
@@ -319,6 +319,7 @@ export class PubkyAppMute {
|
|
|
319
319
|
*/
|
|
320
320
|
export class PubkyAppPost {
|
|
321
321
|
free(): void;
|
|
322
|
+
static fromJson(js_value: any): PubkyAppPost;
|
|
322
323
|
toJson(): any;
|
|
323
324
|
/**
|
|
324
325
|
* Creates a new `PubkyAppPost` instance and sanitizes it.
|
|
@@ -484,6 +485,7 @@ export interface InitOutput {
|
|
|
484
485
|
readonly pubkyapppost_parent: (a: number) => [number, number];
|
|
485
486
|
readonly pubkyapppost_embed: (a: number) => number;
|
|
486
487
|
readonly pubkyapppost_attachments: (a: number) => [number, number];
|
|
488
|
+
readonly pubkyapppost_fromJson: (a: any) => [number, number, number];
|
|
487
489
|
readonly pubkyapppost_toJson: (a: number) => [number, number, number];
|
|
488
490
|
readonly pubkyapppost_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
489
491
|
readonly __wbg_pubkyapptag_free: (a: number, b: number) => void;
|
package/pubky_app_specs.js
CHANGED
|
@@ -1486,6 +1486,17 @@ export class PubkyAppPost {
|
|
|
1486
1486
|
}
|
|
1487
1487
|
return v1;
|
|
1488
1488
|
}
|
|
1489
|
+
/**
|
|
1490
|
+
* @param {any} js_value
|
|
1491
|
+
* @returns {PubkyAppPost}
|
|
1492
|
+
*/
|
|
1493
|
+
static fromJson(js_value) {
|
|
1494
|
+
const ret = wasm.pubkyapppost_fromJson(js_value);
|
|
1495
|
+
if (ret[2]) {
|
|
1496
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1497
|
+
}
|
|
1498
|
+
return PubkyAppPost.__wrap(ret[0]);
|
|
1499
|
+
}
|
|
1489
1500
|
/**
|
|
1490
1501
|
* @returns {any}
|
|
1491
1502
|
*/
|
|
@@ -2268,6 +2279,10 @@ function __wbg_get_imports() {
|
|
|
2268
2279
|
const ret = arg0.done;
|
|
2269
2280
|
return ret;
|
|
2270
2281
|
};
|
|
2282
|
+
imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
|
|
2283
|
+
const ret = Object.entries(arg0);
|
|
2284
|
+
return ret;
|
|
2285
|
+
};
|
|
2271
2286
|
imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
|
|
2272
2287
|
const ret = Reflect.get(arg0, arg1);
|
|
2273
2288
|
return ret;
|
|
@@ -2420,6 +2435,10 @@ function __wbg_get_imports() {
|
|
|
2420
2435
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2421
2436
|
return ret;
|
|
2422
2437
|
};
|
|
2438
|
+
imports.wbg.__wbindgen_is_string = function(arg0) {
|
|
2439
|
+
const ret = typeof(arg0) === 'string';
|
|
2440
|
+
return ret;
|
|
2441
|
+
};
|
|
2423
2442
|
imports.wbg.__wbindgen_is_undefined = function(arg0) {
|
|
2424
2443
|
const ret = arg0 === undefined;
|
|
2425
2444
|
return ret;
|
package/pubky_app_specs_bg.wasm
CHANGED
|
Binary file
|