6 lines
154 B
TypeScript
6 lines
154 B
TypeScript
export type Trigger = (callback?: VoidFunction) => void;
|
|
/**
|
|
* Trigger a callback on state change
|
|
*/
|
|
export default function useEffectState(): Trigger;
|