index.d.mts 390 B

123456789
  1. import * as React from "react";
  2. type UseControllableStateParams<T> = {
  3. prop?: T | undefined;
  4. defaultProp?: T | undefined;
  5. onChange?: (state: T) => void;
  6. };
  7. export function useControllableState<T>({ prop, defaultProp, onChange, }: UseControllableStateParams<T>): readonly [T | undefined, React.Dispatch<React.SetStateAction<T | undefined>>];
  8. //# sourceMappingURL=index.d.ts.map