UNPKG

react-advanced-cropper

Version:

The react cropper library that gives the possibility to create croppers exactly suited for your website design

6 lines (5 loc) 373 B
import { SetStateAction } from "react"; declare type DispatchWithCallback<S> = (value: SetStateAction<S>, callback?: Function) => void; export declare function useStateWithCallback<S>(initialState?: S | (() => S)): [S, DispatchWithCallback<S>]; export declare function useStateWithCallback<S = undefined>(): [S | undefined, DispatchWithCallback<S | undefined>]; export {};