hyperscript-rxjs 1.3.24 → 1.3.25

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.
@@ -6,21 +6,21 @@ import { Subscription } from 'rxjs';
6
6
 
7
7
  export declare function a(props: {
8
8
  [_: string]: any;
9
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
9
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLAnchorElement>;
10
10
 
11
- export declare function a(...childNodes: any[]): HyperscriptExtensions<HTMLAnchorElement>;
11
+ export declare function a(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLAnchorElement>;
12
12
 
13
13
  export declare function abbr(props: {
14
14
  [_: string]: any;
15
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
15
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
16
16
 
17
- export declare function abbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
17
+ export declare function abbr(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
18
18
 
19
19
  export declare function address(props: {
20
20
  [_: string]: any;
21
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
21
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
22
22
 
23
- export declare function address(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
23
+ export declare function address(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
24
24
 
25
25
  /**
26
26
  * @template T
@@ -32,9 +32,7 @@ export declare function advance<T>(array: Array<T>, n: number): [Array<T>, Array
32
32
 
33
33
  export declare function area(props: {
34
34
  [_: string]: any;
35
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
36
-
37
- export declare function area(...childNodes: any[]): HyperscriptExtensions<HTMLAreaElement>;
35
+ }): HyperscriptExtensions<HTMLAreaElement>;
38
36
 
39
37
  /**
40
38
  * insert a element at position in place.
@@ -55,15 +53,15 @@ export declare function arrayRemove<T>(array: T[], index?: number): void;
55
53
 
56
54
  export declare function article(props: {
57
55
  [_: string]: any;
58
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
56
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
59
57
 
60
- export declare function article(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
58
+ export declare function article(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
61
59
 
62
60
  export declare function aside(props: {
63
61
  [_: string]: any;
64
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
62
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
65
63
 
66
- export declare function aside(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
64
+ export declare function aside(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
67
65
 
68
66
  export declare function attachSubscriptionToNode(elem: Node & {
69
67
  subscription?: Subscription;
@@ -71,27 +69,27 @@ export declare function attachSubscriptionToNode(elem: Node & {
71
69
 
72
70
  export declare function audio(props: {
73
71
  [_: string]: any;
74
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
72
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLAudioElement>;
75
73
 
76
- export declare function audio(...childNodes: any[]): HyperscriptExtensions<HTMLAudioElement>;
74
+ export declare function audio(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLAudioElement>;
77
75
 
78
76
  export declare function b(props: {
79
77
  [_: string]: any;
80
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
78
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
81
79
 
82
- export declare function b(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
80
+ export declare function b(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
83
81
 
84
82
  export declare function bdi(props: {
85
83
  [_: string]: any;
86
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
84
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
87
85
 
88
- export declare function bdi(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
86
+ export declare function bdi(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
89
87
 
90
88
  export declare function bdo(props: {
91
89
  [_: string]: any;
92
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
90
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
93
91
 
94
- export declare function bdo(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
92
+ export declare function bdo(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
95
93
 
96
94
  /**
97
95
  * 绑定选项卡的激活状态到 `tabIndex`。
@@ -125,27 +123,23 @@ export declare const blockLevelFamily: Set<string>;
125
123
 
126
124
  export declare function blockquote(props: {
127
125
  [_: string]: any;
128
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
129
-
130
- export declare function blockquote(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
126
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLQuoteElement>;
131
127
 
132
- export declare function br(props: {
133
- [_: string]: any;
134
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
128
+ export declare function blockquote(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLQuoteElement>;
135
129
 
136
- export declare function br(...childNodes: any[]): HyperscriptExtensions<HTMLBRElement>;
130
+ export declare function br(): HyperscriptExtensions<HTMLBRElement>;
137
131
 
138
132
  export declare function button(props: {
139
133
  [_: string]: any;
140
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
134
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLButtonElement>;
141
135
 
142
- export declare function button(...childNodes: any[]): HyperscriptExtensions<HTMLButtonElement>;
136
+ export declare function button(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLButtonElement>;
143
137
 
144
138
  export declare function caption(props: {
145
139
  [_: string]: any;
146
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
140
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
147
141
 
148
- export declare function caption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
142
+ export declare function caption(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
149
143
 
150
144
  /**
151
145
  * 创建一个支持 RxJS 的复选框组件。
@@ -170,27 +164,25 @@ possibilities: Record<string, HTMLElement | HTMLElement[]>
170
164
 
171
165
  export declare function cite(props: {
172
166
  [_: string]: any;
173
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
167
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
174
168
 
175
- export declare function cite(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
169
+ export declare function cite(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
176
170
 
177
171
  export declare function code(props: {
178
172
  [_: string]: any;
179
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
173
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
180
174
 
181
- export declare function code(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
175
+ export declare function code(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
182
176
 
183
177
  export declare function col(props: {
184
178
  [_: string]: any;
185
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
186
-
187
- export declare function col(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
179
+ }): HyperscriptExtensions<HTMLTableColElement>;
188
180
 
189
181
  export declare function colgroup(props: {
190
182
  [_: string]: any;
191
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
183
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableColElement>;
192
184
 
193
- export declare function colgroup(...childNodes: any[]): HyperscriptExtensions<HTMLTableColElement>;
185
+ export declare function colgroup(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableColElement>;
194
186
 
195
187
  /**
196
188
  * 显示或隐藏包含的元素。
@@ -354,21 +346,21 @@ export declare class Comparer<T> {
354
346
 
355
347
  export declare function data(props: {
356
348
  [_: string]: any;
357
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
349
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDataElement>;
358
350
 
359
- export declare function data(...childNodes: any[]): HyperscriptExtensions<HTMLDataElement>;
351
+ export declare function data(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDataElement>;
360
352
 
361
353
  export declare function datalist(props: {
362
354
  [_: string]: any;
363
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
355
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDataListElement>;
364
356
 
365
- export declare function datalist(...childNodes: any[]): HyperscriptExtensions<HTMLDataListElement>;
357
+ export declare function datalist(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDataListElement>;
366
358
 
367
359
  export declare function dd(props: {
368
360
  [_: string]: any;
369
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
361
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
370
362
 
371
- export declare function dd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
363
+ export declare function dd(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
372
364
 
373
365
  /**
374
366
  * 深度(嵌套)数据结构类,用于处理按键路径排序的键值对集合。
@@ -541,51 +533,51 @@ export declare const defaultComparer: Comparer<any>;
541
533
 
542
534
  export declare function del(props: {
543
535
  [_: string]: any;
544
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
536
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLModElement>;
545
537
 
546
- export declare function del(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
538
+ export declare function del(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLModElement>;
547
539
 
548
540
  export declare function details(props: {
549
541
  [_: string]: any;
550
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
542
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDetailsElement>;
551
543
 
552
- export declare function details(...childNodes: any[]): HyperscriptExtensions<HTMLDetailsElement>;
544
+ export declare function details(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDetailsElement>;
553
545
 
554
546
  export declare function dfn(props: {
555
547
  [_: string]: any;
556
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
548
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
557
549
 
558
- export declare function dfn(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
550
+ export declare function dfn(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
559
551
 
560
552
  export declare function dialog(props: {
561
553
  [_: string]: any;
562
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
554
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDialogElement>;
563
555
 
564
- export declare function dialog(...childNodes: any[]): HyperscriptExtensions<HTMLDialogElement>;
556
+ export declare function dialog(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDialogElement>;
565
557
 
566
558
  export declare function div(props: {
567
559
  [_: string]: any;
568
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
560
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDivElement>;
569
561
 
570
- export declare function div(...childNodes: any[]): HyperscriptExtensions<HTMLDivElement>;
562
+ export declare function div(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDivElement>;
571
563
 
572
564
  export declare function dl(props: {
573
565
  [_: string]: any;
574
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
566
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDListElement>;
575
567
 
576
- export declare function dl(...childNodes: any[]): HyperscriptExtensions<HTMLDListElement>;
568
+ export declare function dl(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLDListElement>;
577
569
 
578
570
  export declare function dt(props: {
579
571
  [_: string]: any;
580
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
572
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
581
573
 
582
- export declare function dt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
574
+ export declare function dt(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
583
575
 
584
576
  export declare function em(props: {
585
577
  [_: string]: any;
586
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
578
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
587
579
 
588
- export declare function em(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
580
+ export declare function em(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
589
581
 
590
582
  export declare const entryComparer: Comparer<[(string | number)[], any]>;
591
583
 
@@ -600,21 +592,21 @@ export declare function erectObject(entries: [(string | number)[], any][]): obje
600
592
 
601
593
  export declare function fieldset(props: {
602
594
  [_: string]: any;
603
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
595
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLFieldSetElement>;
604
596
 
605
- export declare function fieldset(...childNodes: any[]): HyperscriptExtensions<HTMLFieldSetElement>;
597
+ export declare function fieldset(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLFieldSetElement>;
606
598
 
607
599
  export declare function figcaption(props: {
608
600
  [_: string]: any;
609
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
601
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
610
602
 
611
- export declare function figcaption(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
603
+ export declare function figcaption(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
612
604
 
613
605
  export declare function figure(props: {
614
606
  [_: string]: any;
615
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
607
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
616
608
 
617
- export declare function figure(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
609
+ export declare function figure(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
618
610
 
619
611
  /**
620
612
  * 查找数组中最后一个满足条件的元素索引。
@@ -647,15 +639,15 @@ export declare function flip(yinHidden$: Observable<boolean>, yin: HTMLElement |
647
639
 
648
640
  export declare function footer(props: {
649
641
  [_: string]: any;
650
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
642
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
651
643
 
652
- export declare function footer(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
644
+ export declare function footer(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
653
645
 
654
646
  export declare function form(props: {
655
647
  [_: string]: any;
656
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
648
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLFormElement>;
657
649
 
658
- export declare function form(...childNodes: any[]): HyperscriptExtensions<HTMLFormElement>;
650
+ export declare function form(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLFormElement>;
659
651
 
660
652
  /**
661
653
  * 用途:插入一组元素,不必使用循环语句,fragment 用后即弃。
@@ -717,57 +709,53 @@ export declare function groupByFirstLevelKey(flatEntries: [(string | number)[],
717
709
 
718
710
  export declare function h1(props: {
719
711
  [_: string]: any;
720
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
712
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
721
713
 
722
- export declare function h1(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
714
+ export declare function h1(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
723
715
 
724
716
  export declare function h2(props: {
725
717
  [_: string]: any;
726
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
718
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
727
719
 
728
- export declare function h2(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
720
+ export declare function h2(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
729
721
 
730
722
  export declare function h3(props: {
731
723
  [_: string]: any;
732
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
724
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
733
725
 
734
- export declare function h3(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
726
+ export declare function h3(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
735
727
 
736
728
  export declare function h4(props: {
737
729
  [_: string]: any;
738
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
730
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
739
731
 
740
- export declare function h4(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
732
+ export declare function h4(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
741
733
 
742
734
  export declare function h5(props: {
743
735
  [_: string]: any;
744
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
736
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
745
737
 
746
- export declare function h5(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
738
+ export declare function h5(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
747
739
 
748
740
  export declare function h6(props: {
749
741
  [_: string]: any;
750
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
742
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
751
743
 
752
- export declare function h6(...childNodes: any[]): HyperscriptExtensions<HTMLHeadingElement>;
744
+ export declare function h6(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLHeadingElement>;
753
745
 
754
746
  export declare function header(props: {
755
747
  [_: string]: any;
756
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
748
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
757
749
 
758
- export declare function header(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
750
+ export declare function header(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
759
751
 
760
752
  export declare function hgroup(props: {
761
753
  [_: string]: any;
762
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
763
-
764
- export declare function hgroup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
754
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
765
755
 
766
- export declare function hr(props: {
767
- [_: string]: any;
768
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
756
+ export declare function hgroup(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
769
757
 
770
- export declare function hr(...childNodes: any[]): HyperscriptExtensions<HTMLHRElement>;
758
+ export declare function hr(): HyperscriptExtensions<HTMLHRElement>;
771
759
 
772
760
  export declare type HtmlTagName =
773
761
  // 主根元素
@@ -866,15 +854,13 @@ export declare type HyperscriptTextAreaElement = HyperscriptExtensions<HTMLTextA
866
854
 
867
855
  export declare function i(props: {
868
856
  [_: string]: any;
869
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
857
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
870
858
 
871
- export declare function i(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
859
+ export declare function i(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
872
860
 
873
861
  export declare function img(props: {
874
862
  [_: string]: any;
875
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
876
-
877
- export declare function img(...childNodes: any[]): HyperscriptExtensions<HTMLImageElement>;
863
+ }): HyperscriptExtensions<HTMLImageElement>;
878
864
 
879
865
  /**
880
866
  * 一个包含所有 HTML 内联元素标签名称的集合。
@@ -894,15 +880,13 @@ export declare const inlineFamily: Set<string>;
894
880
 
895
881
  export declare function input(props: {
896
882
  [_: string]: any;
897
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
898
-
899
- export declare function input(...childNodes: any[]): HyperscriptExtensions<HTMLInputElement>;
883
+ }): HyperscriptExtensions<HTMLInputElement>;
900
884
 
901
885
  export declare function ins(props: {
902
886
  [_: string]: any;
903
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
887
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLModElement>;
904
888
 
905
- export declare function ins(...childNodes: any[]): HyperscriptExtensions<HTMLModElement>;
889
+ export declare function ins(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLModElement>;
906
890
 
907
891
  /**
908
892
  * Creates an object composed of the picked object properties.
@@ -944,9 +928,9 @@ export declare function isRxType(obj: any): boolean;
944
928
 
945
929
  export declare function kbd(props: {
946
930
  [_: string]: any;
947
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
931
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
948
932
 
949
- export declare function kbd(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
933
+ export declare function kbd(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
950
934
 
951
935
  export declare const keyComparer: Comparer<string | number>;
952
936
 
@@ -954,51 +938,51 @@ export declare const keyPathComparer: Comparer<(string | number)[]>;
954
938
 
955
939
  export declare function label(props: {
956
940
  [_: string]: any;
957
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
941
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLabelElement>;
958
942
 
959
- export declare function label(...childNodes: any[]): HyperscriptExtensions<HTMLLabelElement>;
943
+ export declare function label(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLabelElement>;
960
944
 
961
945
  export declare function legend(props: {
962
946
  [_: string]: any;
963
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
947
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLegendElement>;
964
948
 
965
- export declare function legend(...childNodes: any[]): HyperscriptExtensions<HTMLLegendElement>;
949
+ export declare function legend(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLegendElement>;
966
950
 
967
951
  export declare function li(props: {
968
952
  [_: string]: any;
969
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
953
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLIElement>;
970
954
 
971
- export declare function li(...childNodes: any[]): HyperscriptExtensions<HTMLLIElement>;
955
+ export declare function li(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLLIElement>;
972
956
 
973
957
  export declare function main(props: {
974
958
  [_: string]: any;
975
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
959
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
976
960
 
977
- export declare function main(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
961
+ export declare function main(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
978
962
 
979
963
  export declare function mark(props: {
980
964
  [_: string]: any;
981
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
965
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
982
966
 
983
- export declare function mark(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
967
+ export declare function mark(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
984
968
 
985
969
  export declare function menu(props: {
986
970
  [_: string]: any;
987
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
971
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLMenuElement>;
988
972
 
989
- export declare function menu(...childNodes: any[]): HyperscriptExtensions<HTMLMenuElement>;
973
+ export declare function menu(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLMenuElement>;
990
974
 
991
975
  export declare function menuitem(props: {
992
976
  [_: string]: any;
993
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
977
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
994
978
 
995
- export declare function menuitem(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
979
+ export declare function menuitem(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
996
980
 
997
981
  export declare function meter(props: {
998
982
  [_: string]: any;
999
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
983
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLMeterElement>;
1000
984
 
1001
- export declare function meter(...childNodes: any[]): HyperscriptExtensions<HTMLMeterElement>;
985
+ export declare function meter(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLMeterElement>;
1002
986
 
1003
987
  /**
1004
988
  * 创建一个支持多选功能的 <select> 元素,并绑定选项的选中状态。必须手动添加控件更新BehaviorSubject的事件。
@@ -1023,9 +1007,9 @@ export declare type MultiselectProps = {
1023
1007
 
1024
1008
  export declare function nav(props: {
1025
1009
  [_: string]: any;
1026
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1010
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1027
1011
 
1028
- export declare function nav(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1012
+ export declare function nav(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1029
1013
 
1030
1014
  /**
1031
1015
  *
@@ -1051,13 +1035,15 @@ export declare type NestedObject<T> =
1051
1035
  */
1052
1036
  export declare type NestedStringArray = string | NestedStringArray[]
1053
1037
 
1038
+ export declare type NodeInput = Node | string | number | boolean | null | undefined
1039
+
1054
1040
  /**
1055
1041
  * 规范化子节点,将非节点转换为文本节点。
1056
1042
  *
1057
- * @param {any[]} childNodes - 子节点数组。
1043
+ * @param {NodeInput[]} childNodes - 子节点数组。
1058
1044
  * @returns {Node[]} - 返回规范化后的节点数组。
1059
1045
  */
1060
- export declare function normalizeChildNodes(childNodes: any[]): Node[];
1046
+ export declare function normalizeChildNodes(childNodes: NodeInput[]): Node[];
1061
1047
 
1062
1048
  /**
1063
1049
  * 创建一个支持双向绑定的数字输入框。
@@ -1141,33 +1127,33 @@ export declare type Observer<T> = Observer_2<T>;
1141
1127
 
1142
1128
  export declare function ol(props: {
1143
1129
  [_: string]: any;
1144
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
1130
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOListElement>;
1145
1131
 
1146
- export declare function ol(...childNodes: any[]): HyperscriptExtensions<HTMLOListElement>;
1132
+ export declare function ol(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOListElement>;
1147
1133
 
1148
1134
  export declare function optgroup(props: {
1149
1135
  [_: string]: any;
1150
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
1136
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOptGroupElement>;
1151
1137
 
1152
- export declare function optgroup(...childNodes: any[]): HyperscriptExtensions<HTMLOptGroupElement>;
1138
+ export declare function optgroup(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOptGroupElement>;
1153
1139
 
1154
1140
  export declare function option(props: {
1155
1141
  [_: string]: any;
1156
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
1142
+ }, ...childNodes: (Text | string)[]): HyperscriptExtensions<HTMLOptionElement>;
1157
1143
 
1158
- export declare function option(...childNodes: any[]): HyperscriptExtensions<HTMLOptionElement>;
1144
+ export declare function option(...childNodes: (Text | string)[]): HyperscriptExtensions<HTMLOptionElement>;
1159
1145
 
1160
1146
  export declare function output(props: {
1161
1147
  [_: string]: any;
1162
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
1148
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOutputElement>;
1163
1149
 
1164
- export declare function output(...childNodes: any[]): HyperscriptExtensions<HTMLOutputElement>;
1150
+ export declare function output(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLOutputElement>;
1165
1151
 
1166
1152
  export declare function p(props: {
1167
1153
  [_: string]: any;
1168
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
1154
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLParagraphElement>;
1169
1155
 
1170
- export declare function p(...childNodes: any[]): HyperscriptExtensions<HTMLParagraphElement>;
1156
+ export declare function p(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLParagraphElement>;
1171
1157
 
1172
1158
  /**
1173
1159
  * 解析 hyperscript 风格的参数,返回 props 和 childNodes。
@@ -1231,21 +1217,21 @@ export declare function pluckProperty(obj: Record<string | number, any>, keyPath
1231
1217
 
1232
1218
  export declare function pre(props: {
1233
1219
  [_: string]: any;
1234
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
1220
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLPreElement>;
1235
1221
 
1236
- export declare function pre(...childNodes: any[]): HyperscriptExtensions<HTMLPreElement>;
1222
+ export declare function pre(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLPreElement>;
1237
1223
 
1238
1224
  export declare function progress(props: {
1239
1225
  [_: string]: any;
1240
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
1226
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLProgressElement>;
1241
1227
 
1242
- export declare function progress(...childNodes: any[]): HyperscriptExtensions<HTMLProgressElement>;
1228
+ export declare function progress(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLProgressElement>;
1243
1229
 
1244
1230
  export declare function q(props: {
1245
1231
  [_: string]: any;
1246
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
1232
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLQuoteElement>;
1247
1233
 
1248
- export declare function q(...childNodes: any[]): HyperscriptExtensions<HTMLQuoteElement>;
1234
+ export declare function q(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLQuoteElement>;
1249
1235
 
1250
1236
  /**
1251
1237
  * 将对象序列化为 URL 查询字符串(支持嵌套对象和多类型字段)。
@@ -1278,9 +1264,9 @@ export declare function rangeArray(length: number): number[];
1278
1264
 
1279
1265
  export declare function rb(props: {
1280
1266
  [_: string]: any;
1281
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1267
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1282
1268
 
1283
- export declare function rb(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1269
+ export declare function rb(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1284
1270
 
1285
1271
  /**
1286
1272
  * Updates a reactive model with new values from a source object.
@@ -1294,45 +1280,45 @@ export declare function restore(model: Record<string | number, any>, src: Record
1294
1280
 
1295
1281
  export declare function rp(props: {
1296
1282
  [_: string]: any;
1297
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1283
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1298
1284
 
1299
- export declare function rp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1285
+ export declare function rp(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1300
1286
 
1301
1287
  export declare function rt(props: {
1302
1288
  [_: string]: any;
1303
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1289
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1304
1290
 
1305
- export declare function rt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1291
+ export declare function rt(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1306
1292
 
1307
1293
  export declare function rtc(props: {
1308
1294
  [_: string]: any;
1309
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1295
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1310
1296
 
1311
- export declare function rtc(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1297
+ export declare function rtc(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1312
1298
 
1313
1299
  export declare function ruby(props: {
1314
1300
  [_: string]: any;
1315
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1301
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1316
1302
 
1317
- export declare function ruby(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1303
+ export declare function ruby(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1318
1304
 
1319
1305
  export declare function s(props: {
1320
1306
  [_: string]: any;
1321
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1307
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1322
1308
 
1323
- export declare function s(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1309
+ export declare function s(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1324
1310
 
1325
1311
  export declare function samp(props: {
1326
1312
  [_: string]: any;
1327
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1313
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1328
1314
 
1329
- export declare function samp(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1315
+ export declare function samp(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1330
1316
 
1331
1317
  export declare function section(props: {
1332
1318
  [_: string]: any;
1333
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1319
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1334
1320
 
1335
- export declare function section(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1321
+ export declare function section(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1336
1322
 
1337
1323
  /**
1338
1324
  * 创建一个支持 RxJS 数据绑定的 <select> 元素。仅单选选择框。
@@ -1375,15 +1361,15 @@ export declare function setProps(element: HTMLElement, props: Object): HTMLEleme
1375
1361
 
1376
1362
  export declare function small(props: {
1377
1363
  [_: string]: any;
1378
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1364
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1379
1365
 
1380
- export declare function small(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1366
+ export declare function small(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1381
1367
 
1382
1368
  export declare function span(props: {
1383
1369
  [_: string]: any;
1384
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
1370
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLSpanElement>;
1385
1371
 
1386
- export declare function span(...childNodes: any[]): HyperscriptExtensions<HTMLSpanElement>;
1372
+ export declare function span(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLSpanElement>;
1387
1373
 
1388
1374
  /**
1389
1375
  * 将对象属性按类型分为两部分:可观察对象(Observable)与普通值(非 Observable)。
@@ -1396,15 +1382,15 @@ export declare function splitObjectByObservable(obj: Record<string, any>): [Reco
1396
1382
 
1397
1383
  export declare function strong(props: {
1398
1384
  [_: string]: any;
1399
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1385
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1400
1386
 
1401
- export declare function strong(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1387
+ export declare function strong(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1402
1388
 
1403
1389
  export declare function sub(props: {
1404
1390
  [_: string]: any;
1405
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1391
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1406
1392
 
1407
- export declare function sub(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1393
+ export declare function sub(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1408
1394
 
1409
1395
  /**
1410
1396
  * @template T
@@ -1435,15 +1421,15 @@ export declare function subscribeProp<T>(element: HTMLElement, key: string, valu
1435
1421
 
1436
1422
  export declare function summary(props: {
1437
1423
  [_: string]: any;
1438
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1424
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1439
1425
 
1440
- export declare function summary(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1426
+ export declare function summary(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1441
1427
 
1442
1428
  export declare function sup(props: {
1443
1429
  [_: string]: any;
1444
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1430
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1445
1431
 
1446
- export declare function sup(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1432
+ export declare function sup(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1447
1433
 
1448
1434
  /**
1449
1435
  * 创建静态选项卡组件。
@@ -1467,9 +1453,9 @@ panels: Array<string | HTMLElement>
1467
1453
 
1468
1454
  export declare function table(props: {
1469
1455
  [_: string]: any;
1470
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
1456
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableElement>;
1471
1457
 
1472
- export declare function table(...childNodes: any[]): HyperscriptExtensions<HTMLTableElement>;
1458
+ export declare function table(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableElement>;
1473
1459
 
1474
1460
  /**
1475
1461
  * 选项卡的导航按钮。
@@ -1507,15 +1493,15 @@ export declare function tabRoot(props: Object): HTMLElement;
1507
1493
 
1508
1494
  export declare function tbody(props: {
1509
1495
  [_: string]: any;
1510
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1496
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1511
1497
 
1512
- export declare function tbody(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1498
+ export declare function tbody(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1513
1499
 
1514
1500
  export declare function td(props: {
1515
1501
  [_: string]: any;
1516
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
1502
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableCellElement>;
1517
1503
 
1518
- export declare function td(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
1504
+ export declare function td(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableCellElement>;
1519
1505
 
1520
1506
  /**
1521
1507
  * 创建一个支持 RxJS 数据绑定的 <textarea> 元素。
@@ -1561,27 +1547,27 @@ export declare function textNode<T>(text: Observable<T>|T): ObservableTextNode;
1561
1547
 
1562
1548
  export declare function tfoot(props: {
1563
1549
  [_: string]: any;
1564
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1550
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1565
1551
 
1566
- export declare function tfoot(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1552
+ export declare function tfoot(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1567
1553
 
1568
1554
  export declare function th(props: {
1569
1555
  [_: string]: any;
1570
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
1556
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableCellElement>;
1571
1557
 
1572
- export declare function th(...childNodes: any[]): HyperscriptExtensions<HTMLTableCellElement>;
1558
+ export declare function th(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableCellElement>;
1573
1559
 
1574
1560
  export declare function thead(props: {
1575
1561
  [_: string]: any;
1576
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1562
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1577
1563
 
1578
- export declare function thead(...childNodes: any[]): HyperscriptExtensions<HTMLTableSectionElement>;
1564
+ export declare function thead(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableSectionElement>;
1579
1565
 
1580
1566
  export declare function time(props: {
1581
1567
  [_: string]: any;
1582
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
1568
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTimeElement>;
1583
1569
 
1584
- export declare function time(...childNodes: any[]): HyperscriptExtensions<HTMLTimeElement>;
1570
+ export declare function time(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTimeElement>;
1585
1571
 
1586
1572
  /**
1587
1573
  * 将扁平化的键值对数组转换为嵌套的 JavaScript 对象或数组。
@@ -1595,35 +1581,33 @@ export declare function tojs(flatEntries: [(string | number)[], any][]): Record<
1595
1581
 
1596
1582
  export declare function tr(props: {
1597
1583
  [_: string]: any;
1598
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
1584
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableRowElement>;
1599
1585
 
1600
- export declare function tr(...childNodes: any[]): HyperscriptExtensions<HTMLTableRowElement>;
1586
+ export declare function tr(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLTableRowElement>;
1601
1587
 
1602
1588
  export declare function track(props: {
1603
1589
  [_: string]: any;
1604
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
1605
-
1606
- export declare function track(...childNodes: any[]): HyperscriptExtensions<HTMLTrackElement>;
1590
+ }): HyperscriptExtensions<HTMLTrackElement>;
1607
1591
 
1608
1592
  export declare function tt(props: {
1609
1593
  [_: string]: any;
1610
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1594
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1611
1595
 
1612
- export declare function tt(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1596
+ export declare function tt(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1613
1597
 
1614
1598
  export declare const types: string[];
1615
1599
 
1616
1600
  export declare function u(props: {
1617
1601
  [_: string]: any;
1618
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1602
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1619
1603
 
1620
- export declare function u(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1604
+ export declare function u(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLElement>;
1621
1605
 
1622
1606
  export declare function ul(props: {
1623
1607
  [_: string]: any;
1624
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
1608
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLUListElement>;
1625
1609
 
1626
- export declare function ul(...childNodes: any[]): HyperscriptExtensions<HTMLUListElement>;
1610
+ export declare function ul(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLUListElement>;
1627
1611
 
1628
1612
  /**
1629
1613
  * 将任意 JS 值序列化为“无引号 JSON”字符串(仅对键名和部分字符串值去引号)。
@@ -1636,15 +1620,11 @@ export declare function unquotedJsonStringify(value: any): string;
1636
1620
 
1637
1621
  export declare function video(props: {
1638
1622
  [_: string]: any;
1639
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
1640
-
1641
- export declare function video(...childNodes: any[]): HyperscriptExtensions<HTMLVideoElement>;
1623
+ }, ...childNodes: NodeInput[]): HyperscriptExtensions<HTMLVideoElement>;
1642
1624
 
1643
- export declare function wbr(props: {
1644
- [_: string]: any;
1645
- }, ...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1625
+ export declare function video(...childNodes: NodeInput[]): HyperscriptExtensions<HTMLVideoElement>;
1646
1626
 
1647
- export declare function wbr(...childNodes: any[]): HyperscriptExtensions<HTMLElement>;
1627
+ export declare function wbr(): HyperscriptExtensions<HTMLElement>;
1648
1628
 
1649
1629
  /**
1650
1630
  * 合并两个数组为一个元组数组。
@@ -1792,7 +1792,28 @@ function subscribeEvent(elem) {
1792
1792
  }
1793
1793
  );
1794
1794
  }
1795
+ ;// ./src/object/isPlainObject.js
1796
+ /**
1797
+ * 检查一个值是否是普通对象(Plain Object)
1798
+ * @param {unknown} value - 要检查的值
1799
+ * @returns {value is object} - 返回是否是普通对象的类型谓词
1800
+ */
1801
+ function isPlainObject(value) {
1802
+ // 基本检查:非对象或为null的直接返回false
1803
+ if (typeof value !== 'object' || value === null) {
1804
+ return false;
1805
+ }
1806
+
1807
+ // 检查原型链
1808
+ const proto = Object.getPrototypeOf(value);
1809
+
1810
+ // 1. 原型为null(如Object.create(null)创建的对象)
1811
+ // 2. 原型等于Object.prototype(普通对象)
1812
+ return proto === null || proto === Object.prototype;
1813
+ }
1795
1814
  ;// ./src/nodes/parseHyperscriptArgs.js
1815
+
1816
+
1796
1817
  /**
1797
1818
  * 解析 hyperscript 风格的参数,返回 props 和 childNodes。
1798
1819
  *
@@ -1800,12 +1821,7 @@ function subscribeEvent(elem) {
1800
1821
  * @returns {{ props: Record<string, any>, childNodes: any[] }} 包含 props(对象)和 childNodes(数组)的对象。
1801
1822
  * @throws 如果参数不是数组会抛出错误。
1802
1823
  */
1803
-
1804
1824
  function parseHyperscriptArgs(args) {
1805
- // 参数验证,确保 args 是一个数组
1806
- if (!Array.isArray(args)) {
1807
- throw new Error('参数 "args" 必须是一个数组。');
1808
- }
1809
1825
  if (args.length === 0) {
1810
1826
  return {
1811
1827
  props: {},
@@ -1813,9 +1829,7 @@ function parseHyperscriptArgs(args) {
1813
1829
  };
1814
1830
  } else {
1815
1831
  let [first, ...rest] = args;
1816
-
1817
- //
1818
- if (isProps(first)) {
1832
+ if (isPlainObject(first)) {
1819
1833
  return {
1820
1834
  props: first ? first : {},
1821
1835
  childNodes: rest
@@ -1829,37 +1843,11 @@ function parseHyperscriptArgs(args) {
1829
1843
  }
1830
1844
  }
1831
1845
  }
1832
-
1833
- /**
1834
- * 如果第一个参数是 undefined、null 或普通对象(非数组),则返回 true。
1835
- * 否则返回 false。
1836
- * @param {unknown} value - 要检查的值
1837
- * @returns {boolean}
1838
- *
1839
- */
1840
- function isProps(value) {
1841
- //// 基本检查: 空作为props的占位符(不建议,作为兼容)
1842
- if (value === undefined || value === null) {
1843
- return true;
1844
- }
1845
-
1846
- // 基本检查:非对象直接返回false
1847
- if (typeof value !== 'object') {
1848
- return false;
1849
- }
1850
-
1851
- // 检查原型链
1852
- const proto = Object.getPrototypeOf(value);
1853
-
1854
- // 1. 原型为null(如Object.create(null)创建的对象)
1855
- // 2. 原型等于Object.prototype(普通对象)
1856
- return proto === null || proto === Object.prototype;
1857
- }
1858
1846
  ;// ./src/nodes/normalizeChildNodes.js
1859
1847
  /**
1860
1848
  * 规范化子节点,将非节点转换为文本节点。
1861
1849
  *
1862
- * @param {any[]} childNodes - 子节点数组。
1850
+ * @param {import("./normalizeChildNodes.d.ts").NodeInput[]} childNodes - 子节点数组。
1863
1851
  * @returns {Node[]} - 返回规范化后的节点数组。
1864
1852
  */
1865
1853
  function normalizeChildNodes(childNodes) {
@@ -2124,37 +2112,23 @@ function setProps(element, props) {
2124
2112
  /**
2125
2113
  * Creates an HTML element with extended event handling capabilities
2126
2114
  * @public
2127
- * @param {string} elemName - The HTML element tag name
2115
+ * @param {import("./hyperscript.d.ts").HtmlTagName} elemName - The HTML element tag name
2128
2116
  * @param {...any} args - Optional properties and child nodes
2129
2117
  * @returns {HyperscriptElement} The created element with extended methods
2130
2118
  * @throws {Error} If elemName is not a valid HTML element tag name
2131
2119
  */
2132
2120
  function hyperscript(elemName, ...args) {
2133
- // 参数验证,确保 elemName 是一个有效的字符串
2134
- if (typeof elemName !== 'string' || !tagNames.has(elemName)) {
2135
- throw new Error(`参数 elemName 不是一个有效的 HTML 元素标签名。`);
2136
- }
2137
-
2138
- // 创建 HTML 元素
2139
-
2140
2121
  let element = document.createElement(elemName);
2141
-
2142
- // 解析传入的参数
2143
2122
  const {
2144
2123
  props,
2145
2124
  childNodes
2146
2125
  } = parseHyperscriptArgs(args);
2147
-
2148
- // 设置元素属性
2149
2126
  setProps(element, props);
2150
-
2151
- // 添加子节点
2152
2127
  normalizeChildNodes(childNodes).forEach(child => {
2153
- element.appendChild(child); // 将子节点附加到元素
2128
+ element.appendChild(child);
2154
2129
  });
2155
2130
  Object.assign(element, {
2156
2131
  /**
2157
- *
2158
2132
  * @param {string} event
2159
2133
  * @param {(event$: Observable<Event>) => Subscription} subscriber
2160
2134
  */
@@ -2162,7 +2136,6 @@ function hyperscript(elemName, ...args) {
2162
2136
  return pipeEvent(element)(event, subscriber);
2163
2137
  },
2164
2138
  /**
2165
- *
2166
2139
  * @param {string} event
2167
2140
  * @param {((value: Event) => void) | import('rxjs').Observer<Event>} observer
2168
2141
  */
@@ -2171,13 +2144,17 @@ function hyperscript(elemName, ...args) {
2171
2144
  },
2172
2145
  unsubscribe() {
2173
2146
  if ('subscription' in element && element.subscription instanceof external_commonjs_rxjs_commonjs2_rxjs_amd_rxjs_root_rxjs_.Subscription) {
2174
- element.subscription.unsubscribe(); // 取消订阅
2175
- delete element.subscription; // 删除属性
2147
+ element.subscription.unsubscribe();
2148
+ delete element.subscription;
2176
2149
  }
2177
2150
  }
2178
2151
  });
2179
- return /** @type {HyperscriptElement} */element; // 返回创建的元素
2152
+ return /** @type {HyperscriptElement} */element;
2180
2153
  }
2154
+
2155
+ /**
2156
+ * @type {Set<import("./hyperscript.d.ts").HtmlTagName>}
2157
+ */
2181
2158
  const tagNames = new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "br", "button", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "mark", "menu", "menuitem", "meter", "nav", "ol", "optgroup", "option", "output", "p", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "section", "select", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "video", "wbr"]);
2182
2159
  ;// ./src/hyperscripts/tags.js
2183
2160
 
@@ -2187,6 +2164,71 @@ const tagNames = new Set(["a", "abbr", "address", "area", "article", "aside", "a
2187
2164
  * @typedef {import("./HyperscriptExtensions.js").HyperscriptExtensions<T>} HyperscriptExtensions
2188
2165
  */
2189
2166
 
2167
+ /// void elements
2168
+
2169
+ /**
2170
+ * 创建 <br> 元素
2171
+ * @returns {HyperscriptExtensions<HTMLBRElement>}
2172
+ */
2173
+ const br = () => (/** @type {HyperscriptExtensions<HTMLBRElement>} */hyperscript('br'));
2174
+
2175
+ /**
2176
+ * 创建 <hr> 元素
2177
+ * @returns {HyperscriptExtensions<HTMLHRElement>}
2178
+ */
2179
+ const hr = () => (/** @type {HyperscriptExtensions<HTMLHRElement>} */hyperscript('hr'));
2180
+
2181
+ /**
2182
+ * 创建 <wbr> 元素
2183
+ * @returns {HyperscriptExtensions<HTMLElement>}
2184
+ */
2185
+ const wbr = () => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('wbr'));
2186
+
2187
+ /// 有属性,无子元素的html
2188
+
2189
+ /**
2190
+ * 创建 <area> 元素
2191
+ * @param {{ [_: string]: any }} [props] - 元素属性
2192
+ * @returns {HyperscriptExtensions<HTMLAreaElement>}
2193
+ */
2194
+ const tags_area = props => (/** @type {HyperscriptExtensions<HTMLAreaElement>} */hyperscript('area', props));
2195
+
2196
+ /**
2197
+ * 创建 <col> 元素
2198
+ * @param {{ [_: string]: any }} [props] - 元素属性
2199
+ * @returns {HyperscriptExtensions<HTMLTableColElement>}
2200
+ */
2201
+ const col = props => (/** @type {HyperscriptExtensions<HTMLTableColElement>} */hyperscript('col', props));
2202
+
2203
+ /**
2204
+ * 创建 <img> 元素
2205
+ * @param {{ [_: string]: any }} [props] - 元素属性
2206
+ * @returns {HyperscriptExtensions<HTMLImageElement>}
2207
+ */
2208
+ const img = props => (/** @type {HyperscriptExtensions<HTMLImageElement>} */hyperscript('img', props));
2209
+
2210
+ /**
2211
+ * 创建 <input> 元素
2212
+ * @param {{ [_: string]: any }} [props] - 元素属性
2213
+ * @returns {HyperscriptExtensions<HTMLInputElement>}
2214
+ */
2215
+ const input = props => (/** @type {HyperscriptExtensions<HTMLInputElement>} */hyperscript('input', props));
2216
+
2217
+ /**
2218
+ * 创建 <track> 元素
2219
+ * @param {{ [_: string]: any }} [props] - 元素属性
2220
+ * @returns {HyperscriptExtensions<HTMLTrackElement>}
2221
+ */
2222
+ const track = props => (/** @type {HyperscriptExtensions<HTMLTrackElement>} */hyperscript('track', props));
2223
+
2224
+ /**
2225
+ * 创建 <option> 元素
2226
+ * @param {{ [_: string]: any }} [props] - 元素属性
2227
+ * @param {...(Text|string)} childNodes - 子节点
2228
+ * @returns {HyperscriptExtensions<HTMLOptionElement>}
2229
+ */
2230
+ const tags_option = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLOptionElement>} */hyperscript('option', props, ...childNodes));
2231
+
2190
2232
  /**
2191
2233
  * 创建 <a> 元素
2192
2234
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2211,14 +2253,6 @@ const abbr = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLEle
2211
2253
  */
2212
2254
  const address = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('address', props, ...childNodes));
2213
2255
 
2214
- /**
2215
- * 创建 <area> 元素
2216
- * @param {{ [_: string]: any }} [props] - 元素属性
2217
- * @param {...any} childNodes - 子节点
2218
- * @returns {HyperscriptExtensions<HTMLAreaElement>}
2219
- */
2220
- const tags_area = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLAreaElement>} */hyperscript('area', props, ...childNodes));
2221
-
2222
2256
  /**
2223
2257
  * 创建 <article> 元素
2224
2258
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2275,14 +2309,6 @@ const bdo = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElem
2275
2309
  */
2276
2310
  const blockquote = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLQuoteElement>} */hyperscript('blockquote', props, ...childNodes));
2277
2311
 
2278
- /**
2279
- * 创建 <br> 元素
2280
- * @param {{ [_: string]: any }} [props] - 元素属性
2281
- * @param {...any} childNodes - 子节点
2282
- * @returns {HyperscriptExtensions<HTMLBRElement>}
2283
- */
2284
- const br = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLBRElement>} */hyperscript('br', props, ...childNodes));
2285
-
2286
2312
  /**
2287
2313
  * 创建 <button> 元素
2288
2314
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2315,14 +2341,6 @@ const cite = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLEle
2315
2341
  */
2316
2342
  const code = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('code', props, ...childNodes));
2317
2343
 
2318
- /**
2319
- * 创建 <col> 元素
2320
- * @param {{ [_: string]: any }} [props] - 元素属性
2321
- * @param {...any} childNodes - 子节点
2322
- * @returns {HyperscriptExtensions<HTMLTableColElement>}
2323
- */
2324
- const col = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLTableColElement>} */hyperscript('col', props, ...childNodes));
2325
-
2326
2344
  /**
2327
2345
  * 创建 <colgroup> 元素
2328
2346
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2523,14 +2541,6 @@ const header = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLE
2523
2541
  */
2524
2542
  const hgroup = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('hgroup', props, ...childNodes));
2525
2543
 
2526
- /**
2527
- * 创建 <hr> 元素
2528
- * @param {{ [_: string]: any }} [props] - 元素属性
2529
- * @param {...any} childNodes - 子节点
2530
- * @returns {HyperscriptExtensions<HTMLHRElement>}
2531
- */
2532
- const hr = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLHRElement>} */hyperscript('hr', props, ...childNodes));
2533
-
2534
2544
  /**
2535
2545
  * 创建 <i> 元素
2536
2546
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2539,22 +2549,6 @@ const hr = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLHREle
2539
2549
  */
2540
2550
  const i = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('i', props, ...childNodes));
2541
2551
 
2542
- /**
2543
- * 创建 <img> 元素
2544
- * @param {{ [_: string]: any }} [props] - 元素属性
2545
- * @param {...any} childNodes - 子节点
2546
- * @returns {HyperscriptExtensions<HTMLImageElement>}
2547
- */
2548
- const img = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLImageElement>} */hyperscript('img', props, ...childNodes));
2549
-
2550
- /**
2551
- * 创建 <input> 元素
2552
- * @param {{ [_: string]: any }} [props] - 元素属性
2553
- * @param {...any} childNodes - 子节点
2554
- * @returns {HyperscriptExtensions<HTMLInputElement>}
2555
- */
2556
- const input = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLInputElement>} */hyperscript('input', props, ...childNodes));
2557
-
2558
2552
  /**
2559
2553
  * 创建 <ins> 元素
2560
2554
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2659,14 +2653,6 @@ const ol = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLOList
2659
2653
  */
2660
2654
  const optgroup = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLOptGroupElement>} */hyperscript('optgroup', props, ...childNodes));
2661
2655
 
2662
- /**
2663
- * 创建 <option> 元素
2664
- * @param {{ [_: string]: any }} [props] - 元素属性
2665
- * @param {...any} childNodes - 子节点
2666
- * @returns {HyperscriptExtensions<HTMLOptionElement>}
2667
- */
2668
- const tags_option = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLOptionElement>} */hyperscript('option', props, ...childNodes));
2669
-
2670
2656
  /**
2671
2657
  * 创建 <output> 元素
2672
2658
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2883,14 +2869,6 @@ const time = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLTim
2883
2869
  */
2884
2870
  const tr = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLTableRowElement>} */hyperscript('tr', props, ...childNodes));
2885
2871
 
2886
- /**
2887
- * 创建 <track> 元素
2888
- * @param {{ [_: string]: any }} [props] - 元素属性
2889
- * @param {...any} childNodes - 子节点
2890
- * @returns {HyperscriptExtensions<HTMLTrackElement>}
2891
- */
2892
- const track = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLTrackElement>} */hyperscript('track', props, ...childNodes));
2893
-
2894
2872
  /**
2895
2873
  * 创建 <tt> 元素
2896
2874
  * @param {{ [_: string]: any }} [props] - 元素属性
@@ -2922,14 +2900,6 @@ const ul = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLUList
2922
2900
  * @returns {HyperscriptExtensions<HTMLVideoElement>}
2923
2901
  */
2924
2902
  const video = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLVideoElement>} */hyperscript('video', props, ...childNodes));
2925
-
2926
- /**
2927
- * 创建 <wbr> 元素
2928
- * @param {{ [_: string]: any }} [props] - 元素属性
2929
- * @param {...any} childNodes - 子节点
2930
- * @returns {HyperscriptExtensions<HTMLElement>}
2931
- */
2932
- const wbr = (props, ...childNodes) => (/** @type {HyperscriptExtensions<HTMLElement>} */hyperscript('wbr', props, ...childNodes));
2933
2903
  ;// ./src/hyperscripts/tabControls/tabRoot.js
2934
2904
 
2935
2905
 
@@ -3597,7 +3567,7 @@ function textNode(text) {
3597
3567
  }
3598
3568
  });
3599
3569
  } else {
3600
- return document.createTextNode(String(text)); // 转换为字符串
3570
+ return document.createTextNode(typeof text === 'string' ? text : String(text)); // 转换为字符串
3601
3571
  }
3602
3572
  }
3603
3573
  ;// ./src/hyperscripts/0.js
@@ -3654,25 +3624,6 @@ function* generator(obj, keys) {
3654
3624
  }
3655
3625
  }
3656
3626
  }
3657
- ;// ./src/object/isPlainObject.js
3658
- /**
3659
- * 检查一个值是否是普通对象(Plain Object)
3660
- * @param {unknown} value - 要检查的值
3661
- * @returns {value is object} - 返回是否是普通对象的类型谓词
3662
- */
3663
- function isPlainObject(value) {
3664
- // 基本检查:非对象或为null的直接返回false
3665
- if (typeof value !== 'object' || value === null) {
3666
- return false;
3667
- }
3668
-
3669
- // 检查原型链
3670
- const proto = Object.getPrototypeOf(value);
3671
-
3672
- // 1. 原型为null(如Object.create(null)创建的对象)
3673
- // 2. 原型等于Object.prototype(普通对象)
3674
- return proto === null || proto === Object.prototype;
3675
- }
3676
3627
  ;// ./src/object/isEmptyObject.js
3677
3628
 
3678
3629
 
package/package.json CHANGED
@@ -46,7 +46,7 @@
46
46
  "type": "module",
47
47
  "sideEffects": false,
48
48
  "license": "LGPL-3.0-or-later",
49
- "version": "1.3.24",
49
+ "version": "1.3.25",
50
50
  "files": [
51
51
  "dist",
52
52
  "README.md"