@@ -340,8 +340,6 @@ export type FormStateProxy<TFieldValues extends FieldValues = FieldValues> = {
340340 isValid: boolean ;
341341};
342342
343- // Warning: (ae-forgotten-export) The symbol "Subject" needs to be exported by the entry point index.d.ts
344- //
345343// @public (undocumented)
346344export type FormStateSubjectRef <TFieldValues extends FieldValues > = Subject <Partial <FormState <TFieldValues >> & {
347345 name? : InternalFieldName ;
@@ -430,6 +428,9 @@ export type IsFlatObject<T extends object> = Extract<Exclude<T[keyof T], NestedV
430428// @public (undocumented)
431429export const isFunction: (value : unknown ) => value is Function ;
432430
431+ // @public (undocumented)
432+ export const isNameInFieldArray: (names : Set <InternalFieldName >, name : InternalFieldName ) => boolean ;
433+
433434// @public
434435export type IsNever <T > = [T ] extends [never ] ? true : false ;
435436
@@ -526,6 +527,11 @@ export type NumericKeys<T extends Traversable> = UnionToIntersection<T extends R
526527// @public
527528export type ObjectKeys <T extends Traversable > = Exclude <ToKey <keyof T >, ` ${string }.${string } ` | ' ' >;
528529
530+ // @public (undocumented)
531+ export type Observer <T > = {
532+ next: (value : T ) => void ;
533+ };
534+
529535// Warning: (ae-forgotten-export) The symbol "PathInternal" needs to be exported by the entry point index.d.ts
530536//
531537// @public
@@ -651,6 +657,13 @@ export const shouldSubscribeByName: <T extends string | string[] | undefined>(na
651657export type SplitPathString <PS extends PathString > = SplitPathStringImpl <PS , [
652658]>;
653659
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+
654667// @public (undocumented)
655668export type Subjects <TFieldValues extends FieldValues = FieldValues > = {
656669 watch: Subject <{
@@ -671,6 +684,11 @@ export type SubmitErrorHandler<TFieldValues extends FieldValues> = (errors: Fiel
671684// @public (undocumented)
672685export type SubmitHandler <TFieldValues extends FieldValues > = (data : TFieldValues , event ? : React .BaseSyntheticEvent ) => any | Promise <any >;
673686
687+ // @public (undocumented)
688+ export type Subscription = {
689+ unsubscribe: Noop ;
690+ };
691+
674692// @public (undocumented)
675693export const swapArrayAt: <T >(data : T [], indexA : number , indexB : number ) => void ;
676694
@@ -955,8 +973,7 @@ export type WatchObserver<TFieldValues extends FieldValues> = (value: DeepPartia
955973
956974// Warnings were encountered during analysis:
957975//
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
960977
961978// (No @packageDocumentation comment for this package)
962979
0 commit comments