@typerighter/rpc-client 0.3.0 → 0.4.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/package.json
CHANGED
package/src/typedown_server.d.ts
CHANGED
|
@@ -21,22 +21,40 @@ export interface TdContentNotification {
|
|
|
21
21
|
content: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
/**
|
|
25
|
+
* File metadata
|
|
26
|
+
*/
|
|
27
|
+
export interface TdFileMetadata {
|
|
28
|
+
/**
|
|
29
|
+
* Last modification time as seconds since UNIX epoch
|
|
30
|
+
*/
|
|
31
|
+
mtime: number;
|
|
32
|
+
/**
|
|
33
|
+
* Creation time as seconds since UNIX epoch
|
|
34
|
+
*/
|
|
35
|
+
ctime: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
24
38
|
/**
|
|
25
39
|
* Lightweight summary of a content file (no body content)
|
|
26
40
|
*/
|
|
27
41
|
export interface TdContentSummary {
|
|
28
42
|
/**
|
|
29
|
-
*
|
|
43
|
+
* File path relative to the content directory
|
|
30
44
|
*/
|
|
31
|
-
|
|
45
|
+
filepath: string;
|
|
32
46
|
/**
|
|
33
47
|
* Schema type name
|
|
34
48
|
*/
|
|
35
|
-
schema
|
|
49
|
+
schema?: string;
|
|
36
50
|
/**
|
|
37
51
|
* Frontmatter header as JSON
|
|
38
52
|
*/
|
|
39
53
|
header: Record<string, any>;
|
|
54
|
+
/**
|
|
55
|
+
* File metadata
|
|
56
|
+
*/
|
|
57
|
+
metadata: TdFileMetadata;
|
|
40
58
|
}
|
|
41
59
|
|
|
42
60
|
/**
|
|
@@ -84,9 +102,13 @@ export interface TdSiteConfig {
|
|
|
84
102
|
* Structured build result: Header (frontmatter) and content (commonmark body)
|
|
85
103
|
*/
|
|
86
104
|
export interface TdBuiltResource {
|
|
87
|
-
schema
|
|
105
|
+
schema?: string;
|
|
88
106
|
header: Record<string, any>;
|
|
89
107
|
content: string;
|
|
108
|
+
/**
|
|
109
|
+
* File metadata
|
|
110
|
+
*/
|
|
111
|
+
metadata: TdFileMetadata;
|
|
90
112
|
}
|
|
91
113
|
|
|
92
114
|
|
|
@@ -273,7 +273,7 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
|
273
273
|
const a = state0.a;
|
|
274
274
|
state0.a = 0;
|
|
275
275
|
try {
|
|
276
|
-
return
|
|
276
|
+
return wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
277
277
|
} finally {
|
|
278
278
|
state0.a = a;
|
|
279
279
|
}
|
|
@@ -385,33 +385,33 @@ export function __wbg_wasClean_3c7aa2335da09e74(arg0) {
|
|
|
385
385
|
return ret;
|
|
386
386
|
}
|
|
387
387
|
export function __wbindgen_cast_0000000000000001(arg0, arg1) {
|
|
388
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
389
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
388
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 257, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
389
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___wasm_bindgen_1cb3149d3324cc5b___JsValue__core_f92d3014a3b48e14___result__Result_____wasm_bindgen_1cb3149d3324cc5b___JsError___true_);
|
|
390
390
|
return ret;
|
|
391
391
|
}
|
|
392
392
|
export function __wbindgen_cast_0000000000000002(arg0, arg1) {
|
|
393
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
394
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
393
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 161, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
394
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true_);
|
|
395
395
|
return ret;
|
|
396
396
|
}
|
|
397
397
|
export function __wbindgen_cast_0000000000000003(arg0, arg1) {
|
|
398
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
399
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
398
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 161, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
399
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__2);
|
|
400
400
|
return ret;
|
|
401
401
|
}
|
|
402
402
|
export function __wbindgen_cast_0000000000000004(arg0, arg1) {
|
|
403
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
404
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
403
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 161, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
404
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__3);
|
|
405
405
|
return ret;
|
|
406
406
|
}
|
|
407
407
|
export function __wbindgen_cast_0000000000000005(arg0, arg1) {
|
|
408
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
409
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
408
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 165, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
409
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true_);
|
|
410
410
|
return ret;
|
|
411
411
|
}
|
|
412
412
|
export function __wbindgen_cast_0000000000000006(arg0, arg1) {
|
|
413
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
414
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
413
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 236, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
414
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true__1_);
|
|
415
415
|
return ret;
|
|
416
416
|
}
|
|
417
417
|
export function __wbindgen_cast_0000000000000007(arg0) {
|
|
@@ -457,35 +457,35 @@ export function __wbindgen_init_externref_table() {
|
|
|
457
457
|
table.set(offset + 2, true);
|
|
458
458
|
table.set(offset + 3, false);
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
wasm.
|
|
460
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
461
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true_(arg0, arg1);
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
function
|
|
465
|
-
wasm.
|
|
464
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
465
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
function
|
|
469
|
-
wasm.
|
|
468
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2) {
|
|
469
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true_(arg0, arg1, arg2);
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
function
|
|
473
|
-
wasm.
|
|
472
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2) {
|
|
473
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__2(arg0, arg1, arg2);
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
function
|
|
477
|
-
wasm.
|
|
476
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2) {
|
|
477
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__3(arg0, arg1, arg2);
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
function
|
|
481
|
-
const ret = wasm.
|
|
480
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___wasm_bindgen_1cb3149d3324cc5b___JsValue__core_f92d3014a3b48e14___result__Result_____wasm_bindgen_1cb3149d3324cc5b___JsError___true_(arg0, arg1, arg2) {
|
|
481
|
+
const ret = wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___wasm_bindgen_1cb3149d3324cc5b___JsValue__core_f92d3014a3b48e14___result__Result_____wasm_bindgen_1cb3149d3324cc5b___JsError___true_(arg0, arg1, arg2);
|
|
482
482
|
if (ret[1]) {
|
|
483
483
|
throw takeFromExternrefTable0(ret[0]);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
-
function
|
|
488
|
-
wasm.
|
|
487
|
+
function wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
488
|
+
wasm.wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
|
|
Binary file
|
|
@@ -19,13 +19,13 @@ export const rpcclient_onSchemaCreated: (a: number, b: any) => void;
|
|
|
19
19
|
export const rpcclient_onSchemaDeleted: (a: number, b: any) => void;
|
|
20
20
|
export const rpcclient_requestFile: (a: number, b: number, c: number) => any;
|
|
21
21
|
export const rpcclient_requestFiles: (a: number, b: number, c: number) => any;
|
|
22
|
-
export const
|
|
23
|
-
export const
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
28
|
-
export const
|
|
22
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___wasm_bindgen_1cb3149d3324cc5b___JsValue__core_f92d3014a3b48e14___result__Result_____wasm_bindgen_1cb3149d3324cc5b___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
23
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined___js_sys_369f260317a9271e___Function_fn_wasm_bindgen_1cb3149d3324cc5b___JsValue_____wasm_bindgen_1cb3149d3324cc5b___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
24
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true_: (a: number, b: number, c: any) => void;
|
|
25
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__2: (a: number, b: number, c: any) => void;
|
|
26
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke___web_sys_ce9d43a04a5b187d___features__gen_CloseEvent__CloseEvent______true__3: (a: number, b: number, c: any) => void;
|
|
27
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true_: (a: number, b: number) => void;
|
|
28
|
+
export const wasm_bindgen_1cb3149d3324cc5b___convert__closures_____invoke_______true__1_: (a: number, b: number) => void;
|
|
29
29
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
30
30
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
31
31
|
export const __wbindgen_exn_store: (a: number) => void;
|