blowfish/node_modules/@headlessui/react/dist/hooks/use-sync-refs.d.ts

6 lines
338 B
TypeScript
Raw Permalink Normal View History

2023-01-29 22:30:24 +00:00
/// <reference types="react" />
export declare function optionalRef<T>(cb: (ref: T) => void, isOptional?: boolean): ((ref: T) => void) & {
[x: symbol]: boolean;
};
export declare function useSyncRefs<TType>(...refs: (React.MutableRefObject<TType | null> | ((instance: TType) => void) | null)[]): ((value: TType) => void) | undefined;