hyperscript-rxjs 1.3.1 → 1.3.2

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.
@@ -51,8 +51,8 @@ export declare function aside(props?: { [_: string]: any }, ...childNodes: any[]
51
51
  * @throws 如果参数无效会抛出错误。
52
52
  */
53
53
  export declare function attachSubscriptionToNode(
54
- elem: Node & { subscription?: Subscription },
55
- subscription: Subscription
54
+ elem: Node & { subscription?: Subscription },
55
+ subscription: Subscription
56
56
  ): void;
57
57
 
58
58
  export declare function audio(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
@@ -70,8 +70,8 @@ export declare function bdo(props?: { [_: string]: any }, ...childNodes: any[]):
70
70
  * @param tabIndex$ - 表示当前激活选项卡索引的 BehaviorSubject。
71
71
  */
72
72
  export declare function bindTabIndex(
73
- tabRoot: HTMLElement,
74
- tabIndex$: BehaviorSubject<number>
73
+ tabRoot: HTMLElement,
74
+ tabIndex$: BehaviorSubject<number>
75
75
  ): void;
76
76
 
77
77
  /**
@@ -107,8 +107,8 @@ export declare function checkbox(props: {
107
107
  * @returns 包含所有可能性的 HTML 元素数组。
108
108
  */
109
109
  export declare function choice(
110
- chosen$: Observable<string>,
111
- possibilities: Record<string, HTMLElement | HTMLElement[]>
110
+ chosen$: Observable<string>,
111
+ possibilities: Record<string, HTMLElement | HTMLElement[]>
112
112
  ): HTMLElement[];
113
113
 
114
114
  export declare function cite(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -128,8 +128,8 @@ export declare function colgroup(props?: { [_: string]: any }, ...childNodes: an
128
128
  * @throws 如果 elements 中包含非 HTMLElement 节点会抛出错误。
129
129
  */
130
130
  export declare function collapse(
131
- hidden$: Observable<boolean>,
132
- ...elements: (HTMLElement | HTMLElement[])[]
131
+ hidden$: Observable<boolean>,
132
+ ...elements: (HTMLElement | HTMLElement[])[]
133
133
  ): HTMLElement[];
134
134
 
135
135
  /**
@@ -151,8 +151,8 @@ export declare function compareDate(a: Date, b: Date): number;
151
151
  * @returns A negative number if `entry1` is less than `entry2`, 0 if they are equal, or a positive number if `entry1` is greater than `entry2`.
152
152
  */
153
153
  export declare function compareEntries(
154
- entry1: [(number | string)[], any],
155
- entry2: [(number | string)[], any]
154
+ entry1: [(number | string)[], any],
155
+ entry2: [(number | string)[], any]
156
156
  ): number;
157
157
 
158
158
  /**
@@ -303,7 +303,7 @@ export declare class Comparer<T> {
303
303
  * @throws {TypeError} 当参数包含非函数时抛出错误。
304
304
  */
305
305
  export declare function compose(
306
- ...fns: Array<(arg: any) => any>
306
+ ...fns: Array<(arg: any) => any>
307
307
  ): (input: any) => any;
308
308
 
309
309
  /**
@@ -313,10 +313,10 @@ export declare function compose(
313
313
  * @returns 一个函数,调用时会依次判断分支并返回第一个匹配的结果。
314
314
  */
315
315
  export declare function cond<T extends any[], R>(
316
- branches: (
317
- | ((...args: T) => R | undefined | void | null | false)
318
- | [(...args: T) => any, (...args: [...T, any]) => R]
319
- )[]
316
+ branches: (
317
+ | ((...args: T) => R | undefined | void | null | false)
318
+ | [ (...args: T) => any, (...args: [...T, any]) => R ]
319
+ )[]
320
320
  ): (...args: T) => R | undefined;
321
321
 
322
322
  export declare function data(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
@@ -354,16 +354,16 @@ export declare class Deep<T> {
354
354
  union(entries: [(string | number)[], T][]): Deep<T>;
355
355
 
356
356
  map<U>(
357
- callbackfn: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => U,
358
- thisArg?: any
357
+ callbackfn: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => U,
358
+ thisArg?: any
359
359
  ): Deep<U>;
360
360
  filter(
361
- predicate: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => boolean,
362
- thisArg?: any
361
+ predicate: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => boolean,
362
+ thisArg?: any
363
363
  ): Deep<T>;
364
364
  forEach(
365
- callbackfn: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => void,
366
- thisArg?: any
365
+ callbackfn: (value: [(string | number)[], T], index: number, array: [(string | number)[], T][]) => void,
366
+ thisArg?: any
367
367
  ): void;
368
368
 
369
369
  freshValue(obj: Record<string | number, any>): Deep<any>;
@@ -374,8 +374,8 @@ export declare class Deep<T> {
374
374
  merge<U>(): Observable<[(string | number)[], U]>;
375
375
 
376
376
  static fromObject(
377
- obj: Record<string | number, any>,
378
- filter?: (value: any, key: string | number, keyPath: (string | number)[]) => boolean
377
+ obj: Record<string | number, any>,
378
+ filter?: (value: any, key: string | number, keyPath: (string | number)[]) => boolean
379
379
  ): Deep<any>;
380
380
  static fromBehaviorSubject(obj: Record<string | number, any>): Deep<BehaviorSubject<any>>;
381
381
  static fromObservable(obj: Record<string | number, any>): Deep<Observable<any>>;
@@ -423,7 +423,7 @@ export declare const entryComparer: Comparer<[(number | string)[], any]>;
423
423
  * @returns 嵌套的对象或数组。
424
424
  */
425
425
  export declare function erectObject(
426
- entries: [(string | number)[], any][]
426
+ entries: [ (string | number)[], any ][]
427
427
  ): object | any[];
428
428
 
429
429
  export declare function fieldset(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
@@ -442,9 +442,9 @@ export declare function figure(props?: { [_: string]: any }, ...childNodes: any[
442
442
  * @returns The index of the last element that satisfies the callback function, or -1 if no such element is found.
443
443
  */
444
444
  export declare function findLastIndex<T>(
445
- array: T[],
446
- callbackFn: (value: T, index: number) => boolean,
447
- lastIndex?: number
445
+ array: T[],
446
+ callbackFn: (value: T, index: number) => boolean,
447
+ lastIndex?: number
448
448
  ): number;
449
449
 
450
450
  /**
@@ -457,11 +457,11 @@ export declare function findLastIndex<T>(
457
457
  * @returns An array of tuples, where each tuple contains a key path (array of string or number) and the corresponding value.
458
458
  */
459
459
  export declare function flat(
460
- data: Record<string | number, any>,
461
- isLeaf: (
462
- value: any,
463
- key: string | number,
464
- keyPath: (string | number)[]) => boolean
460
+ data: Record<string | number, any>,
461
+ isLeaf: (
462
+ value: any,
463
+ key: string | number,
464
+ keyPath: (string | number)[]) => boolean
465
465
  ): [(string | number)[], any][];
466
466
 
467
467
  /**
@@ -473,9 +473,9 @@ export declare function flat(
473
473
  * @returns 包含所有元素的数组。
474
474
  */
475
475
  export declare function flip(
476
- yinHidden$: Observable<boolean>,
477
- yin: HTMLElement | HTMLElement[],
478
- yang: HTMLElement | HTMLElement[]
476
+ yinHidden$: Observable<boolean>,
477
+ yin: HTMLElement | HTMLElement[],
478
+ yang: HTMLElement | HTMLElement[]
479
479
  ): HTMLElement[];
480
480
 
481
481
  /**
@@ -487,9 +487,9 @@ export declare function flip(
487
487
  * @returns 折叠后的累加结果。
488
488
  */
489
489
  export declare function fold<A, S>(
490
- fn: (acc: A, seed: S) => [A, S] | [A] | [] | null | undefined,
491
- acc: A,
492
- seed: S
490
+ fn: (acc: A, seed: S) => [A, S] | [A] | [] | null | undefined,
491
+ acc: A,
492
+ seed: S
493
493
  ): A;
494
494
 
495
495
  export declare function footer(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -504,7 +504,7 @@ export declare function form(props?: { [_: string]: any }, ...childNodes: any[])
504
504
  * @throws 如果传入的子节点不是有效的 DOM 节点会抛出错误。
505
505
  */
506
506
  export declare function fragment(
507
- ...childNodes: (Node | Node[])[]
507
+ ...childNodes: (Node | Node[])[]
508
508
  ): DocumentFragment;
509
509
 
510
510
  /**
@@ -524,8 +524,8 @@ export declare function getDisplay(elem: HTMLElement): string;
524
524
  * @throws 如果路径中的某一级属性不存在或输入无效会抛出错误。
525
525
  */
526
526
  export declare function getNestedProperty(
527
- obj: Record<string | number, any>,
528
- keyPath: (string | number)[]
527
+ obj: Record<string | number, any>,
528
+ keyPath: (string | number)[]
529
529
  ): any;
530
530
 
531
531
  /**
@@ -535,8 +535,8 @@ export declare function getNestedProperty(
535
535
  * @returns 分组后的数组,每组为 [key, group],group 是 [[keyPath, value]][]。
536
536
  */
537
537
  export declare function groupByFirstLevelKey(
538
- flatEntries: [(string | number)[], any][]
539
- ): [string | number, [(string | number)[], any][]][];
538
+ flatEntries: [ (string | number)[], any ][]
539
+ ): [ string | number, [ (string | number)[], any ][] ][];
540
540
 
541
541
  export declare function h1(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
542
542
 
@@ -564,28 +564,28 @@ export declare function hr(props?: { [_: string]: any }, ...childNodes: any[]):
564
564
  * @throws If elemName is not a valid HTML element tag name
565
565
  */
566
566
  export declare function hyperscript(
567
- elemName: string,
568
- ...args: any[]
567
+ elemName: string,
568
+ ...args: any[]
569
569
  ): HyperscriptExtensions<HTMLElement>;
570
570
 
571
571
  declare type HyperscriptExtensions<T extends Node> =
572
- T & {
572
+ T & {
573
573
 
574
- pipeEvent(
575
- event: string,
576
- subscriber: (input$: Observable<Event>) => Subscription
577
- ): HyperscriptExtensions<T>;
574
+ pipeEvent(
575
+ event: string,
576
+ subscriber: (input$: Observable<Event>) => Subscription
577
+ ): HyperscriptExtensions<T>;
578
578
 
579
- subscribeEvent(
580
- event: string,
581
- observer: ((value: Event) => void) | Partial<Observer<Event>>
582
- ): HyperscriptExtensions<T>;
579
+ subscribeEvent(
580
+ event: string,
581
+ observer: ((value: Event) => void) | Partial<Observer<Event>>
582
+ ): HyperscriptExtensions<T>;
583
583
 
584
- unsubscribe(): void;
584
+ unsubscribe(): void;
585
585
 
586
- subscription?: Subscription;
586
+ subscription?: Subscription;
587
587
 
588
- };
588
+ };
589
589
 
590
590
  export declare function i(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
591
591
 
@@ -610,9 +610,9 @@ export declare function ins(props?: { [_: string]: any }, ...childNodes: any[]):
610
610
  * @throws 如果 obj 不是对象或 keys 不是数组会抛出 TypeError。
611
611
  */
612
612
  export declare function intersectObject(
613
- obj: Record<string, any>,
614
- keys: string[]
615
- ): Record<string, any>;
613
+ obj: Record<string,any>,
614
+ keys: string[]
615
+ ): Record<string,any>;
616
616
 
617
617
  /**
618
618
  * 判断对象是否为空对象(非数组、非 null,且无自有属性)。
@@ -686,12 +686,11 @@ export declare function meter(props?: { [_: string]: any }, ...childNodes: any[]
686
686
  * @throws 如果 props 不是对象,或者 options 中的选项未正确定义 selected 属性会抛出错误。
687
687
  */
688
688
  export declare function multiselect(
689
- props: {
690
- oninput?: (e: Event) => void,
691
- onchange?: (e: Event) => void,
692
- [key: string]: any
693
- },
694
- ...options: HTMLOptionElement[]
689
+ props: {
690
+ oninput?: (e: Event) => void,
691
+ onchange?: (e: Event) => void,
692
+ [key: string]: any },
693
+ ...options: HTMLOptionElement[]
695
694
  ): HyperscriptExtensions<HTMLSelectElement>;
696
695
 
697
696
  export declare function nav(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -703,8 +702,8 @@ export declare function nav(props?: { [_: string]: any }, ...childNodes: any[]):
703
702
  * @returns 一个 Observable,发出扁平化后的对象。
704
703
  */
705
704
  export declare function nestedCombineLatest(
706
- model: Record<string | number, any>,
707
- ): Observable<Record<string | number, any>>;
705
+ model: Record<string|number, any>,
706
+ ): Observable<Record<string|number, any>>;
708
707
 
709
708
  /**
710
709
  * 追踪对象属性的变化,返回变化属性的键路径和新值。
@@ -713,8 +712,8 @@ export declare function nestedCombineLatest(
713
712
  * @returns 合并后的 Observable。
714
713
  */
715
714
  export declare function nestedMerge(
716
- model: Record<string | number, any>
717
- ): Observable<[(string | number)[], any]>;
715
+ model: Record<string|number, any>
716
+ ): Observable<[ (string | number)[], any ]>;
718
717
 
719
718
  /**
720
719
  * 规范化子节点,将非节点转换为文本节点。
@@ -723,7 +722,7 @@ export declare function nestedMerge(
723
722
  * @returns 返回规范化后的节点数组。
724
723
  */
725
724
  export declare function normalizeChildNodes(
726
- childNodes: any[]
725
+ childNodes: any[]
727
726
  ): Node[];
728
727
 
729
728
  /**
@@ -810,7 +809,7 @@ export declare function p(props?: { [_: string]: any }, ...childNodes: any[]): H
810
809
  * @throws 如果参数不是数组会抛出错误。
811
810
  */
812
811
  export declare function parseHyperscriptArgs(
813
- args: any[]
812
+ args: any[]
814
813
  ): { props: Record<string, any>, childNodes: any[] };
815
814
 
816
815
  /**
@@ -822,8 +821,8 @@ export declare function parseHyperscriptArgs(
822
821
  * @throws 如果路径中的某一级属性不存在或输入无效会抛出错误。
823
822
  */
824
823
  export declare function parsePropName(
825
- props: string,
826
- obj: Record<string, any>
824
+ props: string,
825
+ obj: Record<string, any>
827
826
  ): [Record<string, any>, string];
828
827
 
829
828
  /**
@@ -844,7 +843,7 @@ export declare function pctEncodeChar(utf8: number[]): string;
844
843
  *
845
844
  */
846
845
  export declare function pickBehaviorSubject(
847
- model: Record<string | number, any> & { pickeys?: string[] }
846
+ model: Record<string | number, any> & { pickeys?: string[] }
848
847
  ): Record<string | number, any>;
849
848
 
850
849
  /**
@@ -857,8 +856,8 @@ export declare function pickBehaviorSubject(
857
856
  * @throws {TypeError} 当参数包含非函数时抛出错误。
858
857
  */
859
858
  export declare function pipe(
860
- initialValue: any,
861
- ...fns: Array<(arg: any) => any>
859
+ initialValue: any,
860
+ ...fns: Array<(arg: any) => any>
862
861
  ): any;
863
862
 
864
863
  /**
@@ -869,10 +868,10 @@ export declare function pipe(
869
868
  * @throws 如果参数无效会抛出错误。
870
869
  */
871
870
  export declare function pipeEvent(
872
- elem: HTMLElement
871
+ elem: HTMLElement
873
872
  ): (
874
- event: string,
875
- subscriber: (event$: Observable<Event>) => Subscription
873
+ event: string,
874
+ subscriber: (event$: Observable<Event>) => Subscription
876
875
  ) => HTMLElement;
877
876
 
878
877
  /**
@@ -884,8 +883,8 @@ export declare function pipeEvent(
884
883
  * @throws 当路径不存在时抛出 TypeError。
885
884
  */
886
885
  export declare function pluckProperty(
887
- obj: Record<string | number, any>,
888
- keyPath: (string | number)[]
886
+ obj: Record<string | number, any>,
887
+ keyPath: (string | number)[]
889
888
  ): any;
890
889
 
891
890
  export declare function pre(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
@@ -941,8 +940,8 @@ export declare function rb(props?: { [_: string]: any }, ...childNodes: any[]):
941
940
  * @returns 返回更新后的 model。
942
941
  */
943
942
  export declare function restore(
944
- model: Record<string | number, any>,
945
- src: Record<string | number, any>
943
+ model: Record<string | number, any>,
944
+ src: Record<string | number, any>
946
945
  ): Record<string | number, any>;
947
946
 
948
947
  export declare function rp(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -968,12 +967,12 @@ export declare function section(props?: { [_: string]: any }, ...childNodes: any
968
967
  * @throws 如果 props 不是对象,或者 selectedIndex/value 不是 BehaviorSubject 会抛出错误。
969
968
  */
970
969
  export declare function select(
971
- props: {
972
- selectedIndex?: BehaviorSubject<number>,
973
- value?: BehaviorSubject<string>,
974
- [key: string]: any
975
- },
976
- ...options: HTMLOptionElement[]
970
+ props: {
971
+ selectedIndex?: BehaviorSubject<number>,
972
+ value?: BehaviorSubject<string>,
973
+ [key: string]: any
974
+ },
975
+ ...options: HTMLOptionElement[]
977
976
  ): HyperscriptExtensions<HTMLSelectElement>;
978
977
 
979
978
  /**
@@ -988,9 +987,9 @@ export declare function select(
988
987
  * @throws 如果参数无效或设置失败会抛出错误。
989
988
  */
990
989
  export declare function setProp(
991
- root: HTMLElement,
992
- key: string,
993
- value: any
990
+ root: HTMLElement,
991
+ key: string,
992
+ value: any
994
993
  ): HTMLElement;
995
994
 
996
995
  /**
@@ -1002,8 +1001,8 @@ export declare function setProp(
1002
1001
  * @throws 如果参数无效或设置属性失败会抛出错误。
1003
1002
  */
1004
1003
  export declare function setProps(
1005
- element: HTMLElement,
1006
- props: Record<string, any | Observable<any>>
1004
+ element: HTMLElement,
1005
+ props: Record<string, any | Observable<any>>
1007
1006
  ): HTMLElement;
1008
1007
 
1009
1008
  export declare function small(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -1018,7 +1017,7 @@ export declare function span(props?: { [_: string]: any }, ...childNodes: any[])
1018
1017
  * @throws 如果参数不是一个非空对象会抛出错误。
1019
1018
  */
1020
1019
  export declare function splitObjectByObservable(
1021
- obj: Record<string, any>
1020
+ obj: Record<string, any>
1022
1021
  ): [Record<string, Observable<any>>, Record<string, any>];
1023
1022
 
1024
1023
  /**
@@ -1049,10 +1048,10 @@ export declare function sub(props?: { [_: string]: any }, ...childNodes: any[]):
1049
1048
  * @throws 如果参数无效会抛出错误。
1050
1049
  */
1051
1050
  export declare function subscribeEvent(
1052
- elem: HTMLElement
1051
+ elem: HTMLElement
1053
1052
  ): (
1054
- event: string,
1055
- observer: ((value: Event) => void) | Partial<Observer<Event>>
1053
+ event: string,
1054
+ observer: ((value: Event) => void) | Partial<Observer<Event>>
1056
1055
  ) => HTMLElement;
1057
1056
 
1058
1057
  /**
@@ -1065,9 +1064,9 @@ export declare function subscribeEvent(
1065
1064
  * @throws 如果参数无效或订阅失败会抛出错误。
1066
1065
  */
1067
1066
  export declare function subscribeProp(
1068
- element: HTMLElement,
1069
- key: string,
1070
- value$: Observable<any>
1067
+ element: HTMLElement,
1068
+ key: string,
1069
+ value$: Observable<any>
1071
1070
  ): HTMLElement;
1072
1071
 
1073
1072
  export declare function summary(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
@@ -1083,12 +1082,12 @@ export declare function sup(props?: { [_: string]: any }, ...childNodes: any[]):
1083
1082
  * @returns 返回一个包含导航栏和内容面板的选项卡组件。
1084
1083
  */
1085
1084
  export declare function tabControl(
1086
- props: {
1087
- tabIndex: BehaviorSubject<number>,
1088
- [key: string]: any
1089
- },
1090
- tabs: Array<string | HTMLElement>,
1091
- panels: Array<string | HTMLElement>
1085
+ props: {
1086
+ tabIndex: BehaviorSubject<number>,
1087
+ [key: string]: any
1088
+ },
1089
+ tabs: Array<string | HTMLElement>,
1090
+ panels: Array<string | HTMLElement>
1092
1091
  ): HTMLElement;
1093
1092
 
1094
1093
  export declare function table(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
@@ -1100,7 +1099,7 @@ export declare function table(props?: { [_: string]: any }, ...childNodes: any[]
1100
1099
  * @returns 返回一个带有 `nav-item` 样式类的 <li> 元素,内部包含一个按钮。
1101
1100
  */
1102
1101
  export declare function tabNavItem(
1103
- ...source: (string | HTMLElement)[]
1102
+ ...source: (string | HTMLElement)[]
1104
1103
  ): HTMLElement;
1105
1104
 
1106
1105
  /**
@@ -1110,7 +1109,7 @@ export declare function tabNavItem(
1110
1109
  * @returns 返回一个带有 `tab-pane` 样式类的 <div> 元素。
1111
1110
  */
1112
1111
  export declare function tabPanel(
1113
- ...source: (string | HTMLElement)[]
1112
+ ...source: (string | HTMLElement)[]
1114
1113
  ): HTMLElement;
1115
1114
 
1116
1115
  /**
@@ -1133,10 +1132,10 @@ export declare function td(props?: { [_: string]: any }, ...childNodes: any[]):
1133
1132
  * @throws 如果 props 不是对象,或者 value 不是 BehaviorSubject 会抛出错误。
1134
1133
  */
1135
1134
  export declare function textarea(
1136
- props: {
1137
- value: BehaviorSubject<string>,
1138
- [key: string]: any
1139
- }
1135
+ props: {
1136
+ value: BehaviorSubject<string>,
1137
+ [key: string]: any
1138
+ }
1140
1139
  ): HyperscriptExtensions<HTMLTextAreaElement>;
1141
1140
 
1142
1141
  /**
@@ -1158,7 +1157,7 @@ export declare function textbox(props: {
1158
1157
  * @returns 文本节点,若为动态文本节点则带有 unsubscribe 方法。
1159
1158
  */
1160
1159
  export declare function textNode(
1161
- text: string | Observable<string>
1160
+ text: string | Observable<string>
1162
1161
  ): HyperscriptExtensions<Text>;
1163
1162
 
1164
1163
  export declare function tfoot(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
@@ -1176,8 +1175,8 @@ export declare function time(props?: { [_: string]: any }, ...childNodes: any[])
1176
1175
  * @returns 嵌套的对象或数组。
1177
1176
  */
1178
1177
  export declare function tojs(
1179
- flatEntries: [(string | number)[], any][]
1180
- ): Record<string | number, any>;
1178
+ flatEntries: [ (string | number)[], any ][]
1179
+ ): Record<string|number, any>;
1181
1180
 
1182
1181
  /**
1183
1182
  * 将 UTF-16 编码的整数转换为 UTF-8 编码的整数数组(仅支持 utf16 < 0x10000)。
@@ -1211,8 +1210,8 @@ export declare function ul(props?: { [_: string]: any }, ...childNodes: any[]):
1211
1210
  * @returns 由 fn 生成的所有 value 组成的数组。
1212
1211
  */
1213
1212
  export declare function unfold<T, S>(
1214
- fn: (seed: S) => [T, S] | false | null | undefined,
1215
- seed: S
1213
+ fn: (seed: S) => [T, S] | false | null | undefined,
1214
+ seed: S
1216
1215
  ): T[];
1217
1216
 
1218
1217
  /**
@@ -1231,7 +1230,7 @@ export declare function unquotedJsonStringify(value: any): string;
1231
1230
  * @returns The unwrapped array if the input is a single array, otherwise the original array.
1232
1231
  */
1233
1232
  export declare function unwrapArgs<T>(
1234
- args: (T | T[])[]
1233
+ args: (T|T[])[]
1235
1234
  ): T[];
1236
1235
 
1237
1236
  export declare function video(props?: { [_: string]: any }, ...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;