@owanturist/signal-form 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -547,11 +547,6 @@ type FormListFlagSetter<TElement extends SignalForm> = Setter<boolean | Readonly
|
|
|
547
547
|
|
|
548
548
|
type FormListInput<TElement extends SignalForm> = ReadonlyArray<GetFormInput<TElement>>;
|
|
549
549
|
|
|
550
|
-
type FormListInputSetter<TElement extends SignalForm> = Setter<ReadonlyArray<GetFormInput<TElement>>, [
|
|
551
|
-
FormListInput<TElement>,
|
|
552
|
-
FormListInput<TElement>
|
|
553
|
-
]>;
|
|
554
|
-
|
|
555
550
|
type FormListValidateOnVerbose<TElement extends SignalForm> = ReadonlyArray<GetFormValidateOnVerbose<TElement>>;
|
|
556
551
|
|
|
557
552
|
type FormListValidateOnSetter<TElement extends SignalForm> = Setter<ValidateStrategy | ReadonlyArray<undefined | GetFormValidateOnSetter<TElement>>, [
|
|
@@ -562,6 +557,11 @@ type FormListError<TElement extends SignalForm> = null | ReadonlyArray<GetFormEr
|
|
|
562
557
|
|
|
563
558
|
type FormListFlag<TElement extends SignalForm> = boolean | ReadonlyArray<GetFormFlag<TElement>>;
|
|
564
559
|
|
|
560
|
+
type FormListInputSetter<TElement extends SignalForm> = Setter<ReadonlyArray<GetFormInput<TElement>>, [
|
|
561
|
+
FormListInput<TElement>,
|
|
562
|
+
FormListInput<TElement>
|
|
563
|
+
]>;
|
|
564
|
+
|
|
565
565
|
type FormListOutput<TElement extends SignalForm> = ReadonlyArray<GetFormOutput<TElement>>;
|
|
566
566
|
|
|
567
567
|
type FormListOutputVerbose<TElement extends SignalForm> = ReadonlyArray<GetFormOutputVerbose<TElement>>;
|
|
@@ -638,11 +638,11 @@ interface FormListOptions<TElement extends SignalForm> {
|
|
|
638
638
|
/**
|
|
639
639
|
* @default []
|
|
640
640
|
*/
|
|
641
|
-
readonly initial?:
|
|
641
|
+
readonly initial?: FormListInput<TElement>;
|
|
642
642
|
/**
|
|
643
643
|
* @default {@link initial}
|
|
644
644
|
*/
|
|
645
|
-
readonly input?:
|
|
645
|
+
readonly input?: FormListInput<TElement>;
|
|
646
646
|
readonly touched?: FormListFlagSetter<TElement>;
|
|
647
647
|
readonly validateOn?: FormListValidateOnSetter<TElement>;
|
|
648
648
|
readonly error?: FormListErrorSetter<TElement>;
|
package/dist/index.d.ts
CHANGED
|
@@ -547,11 +547,6 @@ type FormListFlagSetter<TElement extends SignalForm> = Setter<boolean | Readonly
|
|
|
547
547
|
|
|
548
548
|
type FormListInput<TElement extends SignalForm> = ReadonlyArray<GetFormInput<TElement>>;
|
|
549
549
|
|
|
550
|
-
type FormListInputSetter<TElement extends SignalForm> = Setter<ReadonlyArray<GetFormInput<TElement>>, [
|
|
551
|
-
FormListInput<TElement>,
|
|
552
|
-
FormListInput<TElement>
|
|
553
|
-
]>;
|
|
554
|
-
|
|
555
550
|
type FormListValidateOnVerbose<TElement extends SignalForm> = ReadonlyArray<GetFormValidateOnVerbose<TElement>>;
|
|
556
551
|
|
|
557
552
|
type FormListValidateOnSetter<TElement extends SignalForm> = Setter<ValidateStrategy | ReadonlyArray<undefined | GetFormValidateOnSetter<TElement>>, [
|
|
@@ -562,6 +557,11 @@ type FormListError<TElement extends SignalForm> = null | ReadonlyArray<GetFormEr
|
|
|
562
557
|
|
|
563
558
|
type FormListFlag<TElement extends SignalForm> = boolean | ReadonlyArray<GetFormFlag<TElement>>;
|
|
564
559
|
|
|
560
|
+
type FormListInputSetter<TElement extends SignalForm> = Setter<ReadonlyArray<GetFormInput<TElement>>, [
|
|
561
|
+
FormListInput<TElement>,
|
|
562
|
+
FormListInput<TElement>
|
|
563
|
+
]>;
|
|
564
|
+
|
|
565
565
|
type FormListOutput<TElement extends SignalForm> = ReadonlyArray<GetFormOutput<TElement>>;
|
|
566
566
|
|
|
567
567
|
type FormListOutputVerbose<TElement extends SignalForm> = ReadonlyArray<GetFormOutputVerbose<TElement>>;
|
|
@@ -638,11 +638,11 @@ interface FormListOptions<TElement extends SignalForm> {
|
|
|
638
638
|
/**
|
|
639
639
|
* @default []
|
|
640
640
|
*/
|
|
641
|
-
readonly initial?:
|
|
641
|
+
readonly initial?: FormListInput<TElement>;
|
|
642
642
|
/**
|
|
643
643
|
* @default {@link initial}
|
|
644
644
|
*/
|
|
645
|
-
readonly input?:
|
|
645
|
+
readonly input?: FormListInput<TElement>;
|
|
646
646
|
readonly touched?: FormListFlagSetter<TElement>;
|
|
647
647
|
readonly validateOn?: FormListValidateOnSetter<TElement>;
|
|
648
648
|
readonly error?: FormListErrorSetter<TElement>;
|