mol_dump_lib 0.0.1011 → 0.0.1013
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/node.d.ts +318 -357
- package/node.d.ts.map +1 -1
- package/node.deps.json +1 -1
- package/node.js +3234 -3385
- package/node.js.map +1 -1
- package/node.mjs +3234 -3385
- package/node.test.js +3641 -3814
- package/node.test.js.map +1 -1
- package/package.json +30 -33
- package/web.d.ts +132 -178
- package/web.d.ts.map +1 -1
- package/web.deps.json +1 -1
- package/web.js +1792 -1986
- package/web.js.map +1 -1
- package/web.mjs +1792 -1986
- package/web.test.js +754 -809
- package/web.test.js.map +1 -1
package/node.d.ts
CHANGED
|
@@ -771,6 +771,74 @@ declare namespace $ {
|
|
|
771
771
|
function $mol_style_prop<Keys extends string[]>(prefix: string, keys: Keys): Record<Keys[number], $mol_style_func<"var", unknown>>;
|
|
772
772
|
}
|
|
773
773
|
|
|
774
|
+
declare namespace $ {
|
|
775
|
+
const $mol_theme: Record<"image" | "line" | "text" | "focus" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "field" | "spirit", $mol_style_func<"var", unknown>>;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
declare namespace $ {
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
declare namespace $ {
|
|
782
|
+
let $mol_gap: Record<"text" | "blur" | "page" | "block" | "space" | "round" | "emoji", $mol_style_func<"var", unknown>>;
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
declare namespace $ {
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
declare namespace $ {
|
|
789
|
+
function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
declare namespace $ {
|
|
793
|
+
type $mol_type_partial_deep<Val> = Val extends object ? Val extends Function ? Val : {
|
|
794
|
+
[field in keyof Val]?: $mol_type_partial_deep<Val[field]> | undefined;
|
|
795
|
+
} : Val;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
declare namespace $ {
|
|
799
|
+
let $mol_jsx_prefix: string;
|
|
800
|
+
let $mol_jsx_crumbs: string;
|
|
801
|
+
let $mol_jsx_booked: null | Set<string>;
|
|
802
|
+
let $mol_jsx_document: $mol_jsx.JSX.ElementClass['ownerDocument'];
|
|
803
|
+
const $mol_jsx_frag = "";
|
|
804
|
+
function $mol_jsx<Props extends $mol_jsx.JSX.IntrinsicAttributes, Children extends Array<Node | string>>(Elem: string | ((props: Props, ...children: Children) => Element), props: Props, ...childNodes: Children): Element | DocumentFragment;
|
|
805
|
+
namespace $mol_jsx.JSX {
|
|
806
|
+
interface Element extends HTMLElement {
|
|
807
|
+
class?: string;
|
|
808
|
+
}
|
|
809
|
+
interface ElementClass {
|
|
810
|
+
attributes: {};
|
|
811
|
+
ownerDocument: Pick<Document, 'getElementById' | 'createElementNS' | 'createDocumentFragment'>;
|
|
812
|
+
childNodes: Array<Node | string>;
|
|
813
|
+
valueOf(): Element;
|
|
814
|
+
}
|
|
815
|
+
type OrString<Dict> = {
|
|
816
|
+
[key in keyof Dict]: Dict[key] | string;
|
|
817
|
+
};
|
|
818
|
+
type IntrinsicElements = {
|
|
819
|
+
[key in keyof ElementTagNameMap]?: $.$mol_type_partial_deep<OrString<Element & IntrinsicAttributes & ElementTagNameMap[key]>>;
|
|
820
|
+
};
|
|
821
|
+
interface IntrinsicAttributes {
|
|
822
|
+
id?: string;
|
|
823
|
+
xmlns?: string;
|
|
824
|
+
}
|
|
825
|
+
interface ElementAttributesProperty {
|
|
826
|
+
attributes: {};
|
|
827
|
+
}
|
|
828
|
+
interface ElementChildrenAttribute {
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
declare namespace $ {
|
|
834
|
+
class $mol_window extends $mol_object {
|
|
835
|
+
static size(): {
|
|
836
|
+
width: number;
|
|
837
|
+
height: number;
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
|
|
774
842
|
declare namespace $ {
|
|
775
843
|
function $mol_key<Value>(value: Value): string;
|
|
776
844
|
}
|
|
@@ -838,366 +906,17 @@ declare namespace $ {
|
|
|
838
906
|
declare namespace $ {
|
|
839
907
|
function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
|
|
840
908
|
value: (this: typeof host, ...args: Args) => any;
|
|
841
|
-
enumerable?: boolean;
|
|
842
|
-
configurable?: boolean;
|
|
843
|
-
writable?: boolean;
|
|
844
|
-
get?: (() => (...args: Args) => any) | undefined;
|
|
845
|
-
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
846
|
-
};
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
declare namespace $ {
|
|
850
|
-
let $mol_mem: typeof $mol_wire_solo;
|
|
851
|
-
let $mol_mem_key: typeof $mol_wire_plex;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
declare namespace $ {
|
|
855
|
-
let $mol_action: typeof $mol_wire_method;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
declare namespace $ {
|
|
859
|
-
class $mol_state_arg extends $mol_object {
|
|
860
|
-
prefix: string;
|
|
861
|
-
static prolog: string;
|
|
862
|
-
static separator: string;
|
|
863
|
-
static href(next?: string): string;
|
|
864
|
-
static href_normal(): string;
|
|
865
|
-
static dict(next?: {
|
|
866
|
-
[key: string]: string | null;
|
|
867
|
-
}): Readonly<{
|
|
868
|
-
[key: string]: string;
|
|
869
|
-
}>;
|
|
870
|
-
static value(key: string, next?: string | null): string | null;
|
|
871
|
-
static link(next: Record<string, string | null>): string;
|
|
872
|
-
static make_link(next: Record<string, string | null>): string;
|
|
873
|
-
static go(next: {
|
|
874
|
-
[key: string]: string | null;
|
|
875
|
-
}): void;
|
|
876
|
-
static commit(): void;
|
|
877
|
-
constructor(prefix?: string);
|
|
878
|
-
value(key: string, next?: string): string | null;
|
|
879
|
-
sub(postfix: string): $mol_state_arg;
|
|
880
|
-
link(next: Record<string, string | null>): string;
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
declare namespace $ {
|
|
885
|
-
class $mol_media extends $mol_object2 {
|
|
886
|
-
static match(query: string, next?: boolean): boolean;
|
|
887
|
-
}
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
declare namespace $ {
|
|
891
|
-
function $mol_wire_solid(): void;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
declare namespace $ {
|
|
895
|
-
let $mol_mem_persist: typeof $mol_wire_solid;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
declare namespace $ {
|
|
899
|
-
function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
declare namespace $ {
|
|
903
|
-
let $mol_mem_cached: typeof $mol_wire_probe;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
declare namespace $ {
|
|
907
|
-
function $mol_wait_user_async(this: $): Promise<unknown>;
|
|
908
|
-
function $mol_wait_user(this: $): unknown;
|
|
909
|
-
}
|
|
910
|
-
|
|
911
|
-
declare namespace $ {
|
|
912
|
-
class $mol_storage extends $mol_object2 {
|
|
913
|
-
static native(): StorageManager;
|
|
914
|
-
static persisted(next?: boolean, cache?: 'cache'): boolean;
|
|
915
|
-
static estimate(): StorageEstimate;
|
|
916
|
-
static dir(): FileSystemDirectoryHandle;
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
declare namespace $ {
|
|
921
|
-
class $mol_state_local<Value> extends $mol_object {
|
|
922
|
-
static 'native()': Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
|
|
923
|
-
static native(): Storage | {
|
|
924
|
-
getItem(key: string): any;
|
|
925
|
-
setItem(key: string, value: string): void;
|
|
926
|
-
removeItem(key: string): void;
|
|
927
|
-
};
|
|
928
|
-
static changes(next?: StorageEvent): StorageEvent | undefined;
|
|
929
|
-
static value<Value>(key: string, next?: Value | null): Value | null;
|
|
930
|
-
prefix(): string;
|
|
931
|
-
value(key: string, next?: Value): Value | null;
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
declare namespace $ {
|
|
936
|
-
function $mol_const<Value>(value: Value): {
|
|
937
|
-
(): Value;
|
|
938
|
-
'()': Value;
|
|
939
|
-
};
|
|
940
|
-
}
|
|
941
|
-
|
|
942
|
-
declare namespace $ {
|
|
943
|
-
export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
|
|
944
|
-
type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
|
|
945
|
-
type MethodsResultPromisify<Host extends Object> = {
|
|
946
|
-
[K in keyof Host]: FunctionResultPromisify<Host[K]>;
|
|
947
|
-
};
|
|
948
|
-
type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
|
|
949
|
-
export {};
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
declare namespace $ {
|
|
953
|
-
class $mol_lock extends $mol_object {
|
|
954
|
-
protected promise: null | Promise<void>;
|
|
955
|
-
wait(): Promise<() => void>;
|
|
956
|
-
grab(): () => void;
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
declare namespace $ {
|
|
961
|
-
function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
declare namespace $ {
|
|
965
|
-
type $mol_charset_encoding = 'utf8' | 'utf-16le' | 'utf-16be' | 'ibm866' | 'iso-8859-2' | 'iso-8859-3' | 'iso-8859-4' | 'iso-8859-5' | 'iso-8859-6' | 'iso-8859-7' | 'iso-8859-8' | 'iso-8859-8i' | 'iso-8859-10' | 'iso-8859-13' | 'iso-8859-14' | 'iso-8859-15' | 'iso-8859-16' | 'koi8-r' | 'koi8-u' | 'koi8-r' | 'macintosh' | 'windows-874' | 'windows-1250' | 'windows-1251' | 'windows-1252' | 'windows-1253' | 'windows-1254' | 'windows-1255' | 'windows-1256' | 'windows-1257' | 'windows-1258' | 'x-mac-cyrillic' | 'gbk' | 'gb18030' | 'hz-gb-2312' | 'big5' | 'euc-jp' | 'iso-2022-jp' | 'shift-jis' | 'euc-kr' | 'iso-2022-kr';
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
declare namespace $ {
|
|
969
|
-
function $mol_charset_decode(buffer: AllowSharedBufferSource, encoding?: $mol_charset_encoding): string;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
declare namespace $ {
|
|
973
|
-
function $mol_charset_buffer(size: number): Uint8Array<ArrayBuffer>;
|
|
974
|
-
}
|
|
975
|
-
|
|
976
|
-
declare namespace $ {
|
|
977
|
-
function $mol_charset_encode(str: string): Uint8Array<ArrayBuffer>;
|
|
978
|
-
function $mol_charset_encode_to(str: string, buf: Uint8Array<ArrayBuffer>, from?: number): number;
|
|
979
|
-
function $mol_charset_encode_size(str: string): number;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
declare namespace $ {
|
|
983
|
-
type $mol_file_transaction_mode = 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append';
|
|
984
|
-
type $mol_file_transaction_buffer = ArrayBufferView;
|
|
985
|
-
class $mol_file_transaction extends $mol_object {
|
|
986
|
-
path(): string;
|
|
987
|
-
modes(): readonly $mol_file_transaction_mode[];
|
|
988
|
-
write(options: {
|
|
989
|
-
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
|
|
990
|
-
offset?: number | null;
|
|
991
|
-
length?: number | null;
|
|
992
|
-
position?: number | null;
|
|
993
|
-
}): number;
|
|
994
|
-
read(): Uint8Array<ArrayBuffer>;
|
|
995
|
-
truncate(size: number): void;
|
|
996
|
-
flush(): void;
|
|
997
|
-
close(): void;
|
|
998
|
-
destructor(): void;
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
declare namespace $ {
|
|
1003
|
-
class $mol_file_transaction_node extends $mol_file_transaction {
|
|
1004
|
-
protected descr(): number;
|
|
1005
|
-
write({ buffer, offset, length, position }: {
|
|
1006
|
-
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
|
|
1007
|
-
offset?: number | null;
|
|
1008
|
-
length?: number | null;
|
|
1009
|
-
position?: number | null;
|
|
1010
|
-
}): number;
|
|
1011
|
-
truncate(size: number): void;
|
|
1012
|
-
read(): Uint8Array<ArrayBuffer>;
|
|
1013
|
-
flush(): void;
|
|
1014
|
-
close(): void;
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
declare namespace $ {
|
|
1019
|
-
class $mol_file_base extends $mol_object {
|
|
1020
|
-
static absolute<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
|
|
1021
|
-
static relative<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
|
|
1022
|
-
static base: string;
|
|
1023
|
-
path(): string;
|
|
1024
|
-
parent(): this;
|
|
1025
|
-
exists_cut(): boolean;
|
|
1026
|
-
protected root(): boolean;
|
|
1027
|
-
protected stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
|
|
1028
|
-
protected static changed: Set<$mol_file_base>;
|
|
1029
|
-
protected static frame: null | $mol_after_timeout;
|
|
1030
|
-
protected static changed_add(type: 'change' | 'rename', path: string): void;
|
|
1031
|
-
static watch_debounce(): number;
|
|
1032
|
-
static flush(): void;
|
|
1033
|
-
protected static watching: boolean;
|
|
1034
|
-
protected static lock: $mol_lock;
|
|
1035
|
-
protected static watch_off(path: string): void;
|
|
1036
|
-
static unwatched<Result>(side_effect: () => Result, affected_dir: string): Result;
|
|
1037
|
-
reset(): void;
|
|
1038
|
-
modified(): Date | null;
|
|
1039
|
-
version(): string;
|
|
1040
|
-
protected info(path: string): null | $mol_file_stat;
|
|
1041
|
-
protected ensure(): void;
|
|
1042
|
-
protected drop(): void;
|
|
1043
|
-
protected copy(to: string): void;
|
|
1044
|
-
protected read(): Uint8Array<ArrayBuffer>;
|
|
1045
|
-
protected write(buffer: Uint8Array<ArrayBuffer>): void;
|
|
1046
|
-
protected kids(): readonly this[];
|
|
1047
|
-
readable(opts: {
|
|
1048
|
-
start?: number;
|
|
1049
|
-
end?: number;
|
|
1050
|
-
}): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1051
|
-
writable(opts: {
|
|
1052
|
-
start?: number;
|
|
1053
|
-
}): WritableStream<Uint8Array<ArrayBuffer>>;
|
|
1054
|
-
buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
|
|
1055
|
-
stat_make(size: number): {
|
|
1056
|
-
readonly type: "file";
|
|
1057
|
-
readonly size: number;
|
|
1058
|
-
readonly atime: Date;
|
|
1059
|
-
readonly mtime: Date;
|
|
1060
|
-
readonly ctime: Date;
|
|
1061
|
-
};
|
|
1062
|
-
clone(to: string): this | null;
|
|
1063
|
-
watcher(): {
|
|
1064
|
-
destructor(): void;
|
|
1065
|
-
};
|
|
1066
|
-
exists(next?: boolean): boolean;
|
|
1067
|
-
type(): "" | $mol_file_type;
|
|
1068
|
-
name(): string;
|
|
1069
|
-
ext(): string;
|
|
1070
|
-
text(next?: string, virt?: 'virt'): string;
|
|
1071
|
-
text_int(next?: string, virt?: 'virt'): string;
|
|
1072
|
-
sub(reset?: null): this[];
|
|
1073
|
-
resolve(path: string): this;
|
|
1074
|
-
relate(base?: $mol_file_base): string;
|
|
1075
|
-
find(include?: RegExp, exclude?: RegExp): this[];
|
|
1076
|
-
size(): number;
|
|
1077
|
-
toJSON(): string;
|
|
1078
|
-
open(...modes: readonly $mol_file_transaction_mode[]): $mol_file_transaction;
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
declare namespace $ {
|
|
1083
|
-
type $mol_file_type = 'file' | 'dir' | 'link';
|
|
1084
|
-
interface $mol_file_stat {
|
|
1085
|
-
type: $mol_file_type;
|
|
1086
|
-
size: number;
|
|
1087
|
-
atime: Date;
|
|
1088
|
-
mtime: Date;
|
|
1089
|
-
ctime: Date;
|
|
1090
|
-
}
|
|
1091
|
-
class $mol_file extends $mol_file_base {
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
declare namespace $ {
|
|
1096
|
-
function $mol_file_node_buffer_normalize(buf: Buffer<ArrayBuffer>): Uint8Array<ArrayBuffer>;
|
|
1097
|
-
class $mol_file_node extends $mol_file {
|
|
1098
|
-
static relative<This extends typeof $mol_file>(this: This, path: string): InstanceType<This>;
|
|
1099
|
-
watcher(reset?: null): {
|
|
1100
|
-
destructor(): void;
|
|
1101
|
-
};
|
|
1102
|
-
protected info(path: string): $mol_file_stat | null;
|
|
1103
|
-
protected ensure(): null | undefined;
|
|
1104
|
-
protected copy(to: string): void;
|
|
1105
|
-
protected drop(): void;
|
|
1106
|
-
protected read(): Uint8Array<ArrayBuffer>;
|
|
1107
|
-
protected write(buffer: Uint8Array<ArrayBuffer>): undefined;
|
|
1108
|
-
protected kids(): this[];
|
|
1109
|
-
resolve(path: string): this;
|
|
1110
|
-
relate(base?: $mol_file): string;
|
|
1111
|
-
readable(opts: {
|
|
1112
|
-
start?: number;
|
|
1113
|
-
end?: number;
|
|
1114
|
-
}): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
1115
|
-
writable(opts?: {
|
|
1116
|
-
start?: number;
|
|
1117
|
-
}): WritableStream<Uint8Array<ArrayBuffer>>;
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
declare namespace $ {
|
|
1122
|
-
class $mol_state_local_node<Value> extends $mol_state_local<Value> {
|
|
1123
|
-
static dir(): $mol_file;
|
|
1124
|
-
static value<Value>(key: string, next?: Value | null): Value | null;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
declare namespace $ {
|
|
1129
|
-
function $mol_lights(this: $, next?: boolean): boolean;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
declare namespace $ {
|
|
1133
|
-
const $mol_theme: Record<"image" | "line" | "text" | "focus" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "field" | "spirit", $mol_style_func<"var", unknown>>;
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
declare namespace $ {
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
declare namespace $ {
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
declare namespace $ {
|
|
1143
|
-
let $mol_gap: Record<"text" | "blur" | "page" | "block" | "space" | "round" | "emoji", $mol_style_func<"var", unknown>>;
|
|
1144
|
-
}
|
|
1145
|
-
|
|
1146
|
-
declare namespace $ {
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
declare namespace $ {
|
|
1150
|
-
function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
declare namespace $ {
|
|
1154
|
-
type $mol_type_partial_deep<Val> = Val extends object ? Val extends Function ? Val : {
|
|
1155
|
-
[field in keyof Val]?: $mol_type_partial_deep<Val[field]> | undefined;
|
|
1156
|
-
} : Val;
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
declare namespace $ {
|
|
1160
|
-
let $mol_jsx_prefix: string;
|
|
1161
|
-
let $mol_jsx_crumbs: string;
|
|
1162
|
-
let $mol_jsx_booked: null | Set<string>;
|
|
1163
|
-
let $mol_jsx_document: $mol_jsx.JSX.ElementClass['ownerDocument'];
|
|
1164
|
-
const $mol_jsx_frag = "";
|
|
1165
|
-
function $mol_jsx<Props extends $mol_jsx.JSX.IntrinsicAttributes, Children extends Array<Node | string>>(Elem: string | ((props: Props, ...children: Children) => Element), props: Props, ...childNodes: Children): Element | DocumentFragment;
|
|
1166
|
-
namespace $mol_jsx.JSX {
|
|
1167
|
-
interface Element extends HTMLElement {
|
|
1168
|
-
class?: string;
|
|
1169
|
-
}
|
|
1170
|
-
interface ElementClass {
|
|
1171
|
-
attributes: {};
|
|
1172
|
-
ownerDocument: Pick<Document, 'getElementById' | 'createElementNS' | 'createDocumentFragment'>;
|
|
1173
|
-
childNodes: Array<Node | string>;
|
|
1174
|
-
valueOf(): Element;
|
|
1175
|
-
}
|
|
1176
|
-
type OrString<Dict> = {
|
|
1177
|
-
[key in keyof Dict]: Dict[key] | string;
|
|
1178
|
-
};
|
|
1179
|
-
type IntrinsicElements = {
|
|
1180
|
-
[key in keyof ElementTagNameMap]?: $.$mol_type_partial_deep<OrString<Element & IntrinsicAttributes & ElementTagNameMap[key]>>;
|
|
1181
|
-
};
|
|
1182
|
-
interface IntrinsicAttributes {
|
|
1183
|
-
id?: string;
|
|
1184
|
-
xmlns?: string;
|
|
1185
|
-
}
|
|
1186
|
-
interface ElementAttributesProperty {
|
|
1187
|
-
attributes: {};
|
|
1188
|
-
}
|
|
1189
|
-
interface ElementChildrenAttribute {
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
909
|
+
enumerable?: boolean;
|
|
910
|
+
configurable?: boolean;
|
|
911
|
+
writable?: boolean;
|
|
912
|
+
get?: (() => (...args: Args) => any) | undefined;
|
|
913
|
+
set?: ((value: (...args: Args) => any) => void) | undefined;
|
|
914
|
+
};
|
|
1192
915
|
}
|
|
1193
916
|
|
|
1194
917
|
declare namespace $ {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
width: number;
|
|
1198
|
-
height: number;
|
|
1199
|
-
};
|
|
1200
|
-
}
|
|
918
|
+
let $mol_mem: typeof $mol_wire_solo;
|
|
919
|
+
let $mol_mem_key: typeof $mol_wire_plex;
|
|
1201
920
|
}
|
|
1202
921
|
|
|
1203
922
|
declare namespace $ {
|
|
@@ -1231,10 +950,25 @@ declare namespace $ {
|
|
|
1231
950
|
function $mol_dom_qname(name: string): string;
|
|
1232
951
|
}
|
|
1233
952
|
|
|
953
|
+
declare namespace $ {
|
|
954
|
+
function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
|
|
955
|
+
}
|
|
956
|
+
|
|
1234
957
|
declare namespace $ {
|
|
1235
958
|
function $mol_wire_watch(): void;
|
|
1236
959
|
}
|
|
1237
960
|
|
|
961
|
+
declare namespace $ {
|
|
962
|
+
function $mol_const<Value>(value: Value): {
|
|
963
|
+
(): Value;
|
|
964
|
+
'()': Value;
|
|
965
|
+
};
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
declare namespace $ {
|
|
969
|
+
function $mol_wire_solid(): void;
|
|
970
|
+
}
|
|
971
|
+
|
|
1238
972
|
declare namespace $ {
|
|
1239
973
|
function $mol_dom_render_attributes(el: Element, attrs: {
|
|
1240
974
|
[key: string]: string | number | boolean | null;
|
|
@@ -1263,6 +997,16 @@ declare namespace $ {
|
|
|
1263
997
|
}): void;
|
|
1264
998
|
}
|
|
1265
999
|
|
|
1000
|
+
declare namespace $ {
|
|
1001
|
+
export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
|
|
1002
|
+
type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
|
|
1003
|
+
type MethodsResultPromisify<Host extends Object> = {
|
|
1004
|
+
[K in keyof Host]: FunctionResultPromisify<Host[K]>;
|
|
1005
|
+
};
|
|
1006
|
+
type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
|
|
1007
|
+
export {};
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1266
1010
|
declare namespace $ {
|
|
1267
1011
|
type $mol_type_keys_extract<Input, Upper, Lower = never> = {
|
|
1268
1012
|
[Field in keyof Input]: unknown extends Input[Field] ? never : Input[Field] extends never ? never : Input[Field] extends Upper ? [
|
|
@@ -2150,6 +1894,10 @@ declare namespace $.$$ {
|
|
|
2150
1894
|
declare namespace $.$$ {
|
|
2151
1895
|
}
|
|
2152
1896
|
|
|
1897
|
+
declare namespace $ {
|
|
1898
|
+
let $mol_mem_cached: typeof $mol_wire_probe;
|
|
1899
|
+
}
|
|
1900
|
+
|
|
2153
1901
|
declare namespace $ {
|
|
2154
1902
|
function $mol_support_css_overflow_anchor(this: $): boolean;
|
|
2155
1903
|
}
|
|
@@ -2589,6 +2337,219 @@ declare namespace $.$$ {
|
|
|
2589
2337
|
}
|
|
2590
2338
|
}
|
|
2591
2339
|
|
|
2340
|
+
declare namespace $ {
|
|
2341
|
+
let $mol_mem_persist: typeof $mol_wire_solid;
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
declare namespace $ {
|
|
2345
|
+
function $mol_wait_user_async(this: $): Promise<unknown>;
|
|
2346
|
+
function $mol_wait_user(this: $): unknown;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2349
|
+
declare namespace $ {
|
|
2350
|
+
class $mol_storage extends $mol_object2 {
|
|
2351
|
+
static native(): StorageManager;
|
|
2352
|
+
static persisted(next?: boolean, cache?: 'cache'): boolean;
|
|
2353
|
+
static estimate(): StorageEstimate;
|
|
2354
|
+
static dir(): FileSystemDirectoryHandle;
|
|
2355
|
+
}
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2358
|
+
declare namespace $ {
|
|
2359
|
+
class $mol_state_local<Value> extends $mol_object {
|
|
2360
|
+
static 'native()': Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
|
|
2361
|
+
static native(): Storage | {
|
|
2362
|
+
getItem(key: string): any;
|
|
2363
|
+
setItem(key: string, value: string): void;
|
|
2364
|
+
removeItem(key: string): void;
|
|
2365
|
+
};
|
|
2366
|
+
static changes(next?: StorageEvent): StorageEvent | undefined;
|
|
2367
|
+
static value<Value>(key: string, next?: Value | null): Value | null;
|
|
2368
|
+
prefix(): string;
|
|
2369
|
+
value(key: string, next?: Value): Value | null;
|
|
2370
|
+
}
|
|
2371
|
+
}
|
|
2372
|
+
|
|
2373
|
+
declare namespace $ {
|
|
2374
|
+
let $mol_action: typeof $mol_wire_method;
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
declare namespace $ {
|
|
2378
|
+
class $mol_lock extends $mol_object {
|
|
2379
|
+
protected promise: null | Promise<void>;
|
|
2380
|
+
wait(): Promise<() => void>;
|
|
2381
|
+
grab(): () => void;
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
declare namespace $ {
|
|
2386
|
+
function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
declare namespace $ {
|
|
2390
|
+
type $mol_charset_encoding = 'utf8' | 'utf-16le' | 'utf-16be' | 'ibm866' | 'iso-8859-2' | 'iso-8859-3' | 'iso-8859-4' | 'iso-8859-5' | 'iso-8859-6' | 'iso-8859-7' | 'iso-8859-8' | 'iso-8859-8i' | 'iso-8859-10' | 'iso-8859-13' | 'iso-8859-14' | 'iso-8859-15' | 'iso-8859-16' | 'koi8-r' | 'koi8-u' | 'koi8-r' | 'macintosh' | 'windows-874' | 'windows-1250' | 'windows-1251' | 'windows-1252' | 'windows-1253' | 'windows-1254' | 'windows-1255' | 'windows-1256' | 'windows-1257' | 'windows-1258' | 'x-mac-cyrillic' | 'gbk' | 'gb18030' | 'hz-gb-2312' | 'big5' | 'euc-jp' | 'iso-2022-jp' | 'shift-jis' | 'euc-kr' | 'iso-2022-kr';
|
|
2391
|
+
}
|
|
2392
|
+
|
|
2393
|
+
declare namespace $ {
|
|
2394
|
+
function $mol_charset_decode(buffer: AllowSharedBufferSource, encoding?: $mol_charset_encoding): string;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
declare namespace $ {
|
|
2398
|
+
function $mol_charset_buffer(size: number): Uint8Array<ArrayBuffer>;
|
|
2399
|
+
}
|
|
2400
|
+
|
|
2401
|
+
declare namespace $ {
|
|
2402
|
+
function $mol_charset_encode(str: string): Uint8Array<ArrayBuffer>;
|
|
2403
|
+
function $mol_charset_encode_to(str: string, buf: Uint8Array<ArrayBuffer>, from?: number): number;
|
|
2404
|
+
function $mol_charset_encode_size(str: string): number;
|
|
2405
|
+
}
|
|
2406
|
+
|
|
2407
|
+
declare namespace $ {
|
|
2408
|
+
type $mol_file_transaction_mode = 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append';
|
|
2409
|
+
type $mol_file_transaction_buffer = ArrayBufferView;
|
|
2410
|
+
class $mol_file_transaction extends $mol_object {
|
|
2411
|
+
path(): string;
|
|
2412
|
+
modes(): readonly $mol_file_transaction_mode[];
|
|
2413
|
+
write(options: {
|
|
2414
|
+
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
|
|
2415
|
+
offset?: number | null;
|
|
2416
|
+
length?: number | null;
|
|
2417
|
+
position?: number | null;
|
|
2418
|
+
}): number;
|
|
2419
|
+
read(): Uint8Array<ArrayBuffer>;
|
|
2420
|
+
truncate(size: number): void;
|
|
2421
|
+
flush(): void;
|
|
2422
|
+
close(): void;
|
|
2423
|
+
destructor(): void;
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
declare namespace $ {
|
|
2428
|
+
class $mol_file_transaction_node extends $mol_file_transaction {
|
|
2429
|
+
protected descr(): number;
|
|
2430
|
+
write({ buffer, offset, length, position }: {
|
|
2431
|
+
buffer: ArrayBufferView | string | readonly ArrayBufferView[];
|
|
2432
|
+
offset?: number | null;
|
|
2433
|
+
length?: number | null;
|
|
2434
|
+
position?: number | null;
|
|
2435
|
+
}): number;
|
|
2436
|
+
truncate(size: number): void;
|
|
2437
|
+
read(): Uint8Array<ArrayBuffer>;
|
|
2438
|
+
flush(): void;
|
|
2439
|
+
close(): void;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
declare namespace $ {
|
|
2444
|
+
class $mol_file_base extends $mol_object {
|
|
2445
|
+
static absolute<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
|
|
2446
|
+
static relative<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
|
|
2447
|
+
static base: string;
|
|
2448
|
+
path(): string;
|
|
2449
|
+
parent(): this;
|
|
2450
|
+
exists_cut(): boolean;
|
|
2451
|
+
protected root(): boolean;
|
|
2452
|
+
protected stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
|
|
2453
|
+
protected static changed: Set<$mol_file_base>;
|
|
2454
|
+
protected static frame: null | $mol_after_timeout;
|
|
2455
|
+
protected static changed_add(type: 'change' | 'rename', path: string): void;
|
|
2456
|
+
static watch_debounce(): number;
|
|
2457
|
+
static flush(): void;
|
|
2458
|
+
protected static watching: boolean;
|
|
2459
|
+
protected static lock: $mol_lock;
|
|
2460
|
+
protected static watch_off(path: string): void;
|
|
2461
|
+
static unwatched<Result>(side_effect: () => Result, affected_dir: string): Result;
|
|
2462
|
+
reset(): void;
|
|
2463
|
+
modified(): Date | null;
|
|
2464
|
+
version(): string;
|
|
2465
|
+
protected info(path: string): null | $mol_file_stat;
|
|
2466
|
+
protected ensure(): void;
|
|
2467
|
+
protected drop(): void;
|
|
2468
|
+
protected copy(to: string): void;
|
|
2469
|
+
protected read(): Uint8Array<ArrayBuffer>;
|
|
2470
|
+
protected write(buffer: Uint8Array<ArrayBuffer>): void;
|
|
2471
|
+
protected kids(): readonly this[];
|
|
2472
|
+
readable(opts: {
|
|
2473
|
+
start?: number;
|
|
2474
|
+
end?: number;
|
|
2475
|
+
}): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2476
|
+
writable(opts: {
|
|
2477
|
+
start?: number;
|
|
2478
|
+
}): WritableStream<Uint8Array<ArrayBuffer>>;
|
|
2479
|
+
buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
|
|
2480
|
+
stat_make(size: number): {
|
|
2481
|
+
readonly type: "file";
|
|
2482
|
+
readonly size: number;
|
|
2483
|
+
readonly atime: Date;
|
|
2484
|
+
readonly mtime: Date;
|
|
2485
|
+
readonly ctime: Date;
|
|
2486
|
+
};
|
|
2487
|
+
clone(to: string): this | null;
|
|
2488
|
+
watcher(): {
|
|
2489
|
+
destructor(): void;
|
|
2490
|
+
};
|
|
2491
|
+
exists(next?: boolean): boolean;
|
|
2492
|
+
type(): "" | $mol_file_type;
|
|
2493
|
+
name(): string;
|
|
2494
|
+
ext(): string;
|
|
2495
|
+
text(next?: string, virt?: 'virt'): string;
|
|
2496
|
+
text_int(next?: string, virt?: 'virt'): string;
|
|
2497
|
+
sub(reset?: null): this[];
|
|
2498
|
+
resolve(path: string): this;
|
|
2499
|
+
relate(base?: $mol_file_base): string;
|
|
2500
|
+
find(include?: RegExp, exclude?: RegExp): this[];
|
|
2501
|
+
size(): number;
|
|
2502
|
+
toJSON(): string;
|
|
2503
|
+
open(...modes: readonly $mol_file_transaction_mode[]): $mol_file_transaction;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
declare namespace $ {
|
|
2508
|
+
type $mol_file_type = 'file' | 'dir' | 'link';
|
|
2509
|
+
interface $mol_file_stat {
|
|
2510
|
+
type: $mol_file_type;
|
|
2511
|
+
size: number;
|
|
2512
|
+
atime: Date;
|
|
2513
|
+
mtime: Date;
|
|
2514
|
+
ctime: Date;
|
|
2515
|
+
}
|
|
2516
|
+
class $mol_file extends $mol_file_base {
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
declare namespace $ {
|
|
2521
|
+
function $mol_file_node_buffer_normalize(buf: Buffer<ArrayBuffer>): Uint8Array<ArrayBuffer>;
|
|
2522
|
+
class $mol_file_node extends $mol_file {
|
|
2523
|
+
static relative<This extends typeof $mol_file>(this: This, path: string): InstanceType<This>;
|
|
2524
|
+
watcher(reset?: null): {
|
|
2525
|
+
destructor(): void;
|
|
2526
|
+
};
|
|
2527
|
+
protected info(path: string): $mol_file_stat | null;
|
|
2528
|
+
protected ensure(): null | undefined;
|
|
2529
|
+
protected copy(to: string): void;
|
|
2530
|
+
protected drop(): void;
|
|
2531
|
+
protected read(): Uint8Array<ArrayBuffer>;
|
|
2532
|
+
protected write(buffer: Uint8Array<ArrayBuffer>): undefined;
|
|
2533
|
+
protected kids(): this[];
|
|
2534
|
+
resolve(path: string): this;
|
|
2535
|
+
relate(base?: $mol_file): string;
|
|
2536
|
+
readable(opts: {
|
|
2537
|
+
start?: number;
|
|
2538
|
+
end?: number;
|
|
2539
|
+
}): ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
2540
|
+
writable(opts?: {
|
|
2541
|
+
start?: number;
|
|
2542
|
+
}): WritableStream<Uint8Array<ArrayBuffer>>;
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
declare namespace $ {
|
|
2547
|
+
class $mol_state_local_node<Value> extends $mol_state_local<Value> {
|
|
2548
|
+
static dir(): $mol_file;
|
|
2549
|
+
static value<Value>(key: string, next?: Value | null): Value | null;
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2592
2553
|
declare namespace $ {
|
|
2593
2554
|
interface $mol_locale_dict {
|
|
2594
2555
|
[key: string]: string;
|