@@ -340,8 +340,6 @@ export type FormStateProxy<TFieldValues extends FieldValues = FieldValues> = {
340
340
isValid: boolean ;
341
341
};
342
342
343
- // Warning: (ae-forgotten-export) The symbol "Subject" needs to be exported by the entry point index.d.ts
344
- //
345
343
// @public (undocumented)
346
344
export type FormStateSubjectRef <TFieldValues extends FieldValues > = Subject <Partial <FormState <TFieldValues >> & {
347
345
name? : InternalFieldName ;
@@ -430,6 +428,9 @@ export type IsFlatObject<T extends object> = Extract<Exclude<T[keyof T], NestedV
430
428
// @public (undocumented)
431
429
export const isFunction: (value : unknown ) => value is Function ;
432
430
431
+ // @public (undocumented)
432
+ export const isNameInFieldArray: (names : Set <InternalFieldName >, name : InternalFieldName ) => boolean ;
433
+
433
434
// @public
434
435
export type IsNever <T > = [T ] extends [never ] ? true : false ;
435
436
@@ -526,6 +527,11 @@ export type NumericKeys<T extends Traversable> = UnionToIntersection<T extends R
526
527
// @public
527
528
export type ObjectKeys <T extends Traversable > = Exclude <ToKey <keyof T >, ` ${string }.${string } ` | ' ' >;
528
529
530
+ // @public (undocumented)
531
+ export type Observer <T > = {
532
+ next: (value : T ) => void ;
533
+ };
534
+
529
535
// Warning: (ae-forgotten-export) The symbol "PathInternal" needs to be exported by the entry point index.d.ts
530
536
//
531
537
// @public
@@ -651,6 +657,13 @@ export const shouldSubscribeByName: <T extends string | string[] | undefined>(na
651
657
export type SplitPathString <PS extends PathString > = SplitPathStringImpl <PS , [
652
658
]>;
653
659
660
+ // @public (undocumented)
661
+ export type Subject <T > = {
662
+ readonly observers: Observer <T >[];
663
+ subscribe: (value : Observer <T >) => Subscription ;
664
+ unsubscribe: Noop ;
665
+ } & Observer <T >;
666
+
654
667
// @public (undocumented)
655
668
export type Subjects <TFieldValues extends FieldValues = FieldValues > = {
656
669
watch: Subject <{
@@ -671,6 +684,11 @@ export type SubmitErrorHandler<TFieldValues extends FieldValues> = (errors: Fiel
671
684
// @public (undocumented)
672
685
export type SubmitHandler <TFieldValues extends FieldValues > = (data : TFieldValues , event ? : React .BaseSyntheticEvent ) => any | Promise <any >;
673
686
687
+ // @public (undocumented)
688
+ export type Subscription = {
689
+ unsubscribe: Noop ;
690
+ };
691
+
674
692
// @public (undocumented)
675
693
export const swapArrayAt: <T >(data : T [], indexA : number , indexB : number ) => void ;
676
694
@@ -955,8 +973,7 @@ export type WatchObserver<TFieldValues extends FieldValues> = (value: DeepPartia
955
973
956
974
// Warnings were encountered during analysis:
957
975
//
958
- // dist/index.d.ts:734:5 - (ae-forgotten-export) The symbol "AsyncDefaultValues" needs to be exported by the entry point index.d.ts
959
- // dist/index.d.ts:1013:5 - (ae-forgotten-export) The symbol "Subscription" needs to be exported by the entry point index.d.ts
976
+ // dist/types/index.d.ts:734:5 - (ae-forgotten-export) The symbol "AsyncDefaultValues" needs to be exported by the entry point index.d.ts
960
977
961
978
// (No @packageDocumentation comment for this package)
962
979
0 commit comments