UNPKG

ant-design-x-vue-next

Version:

Ant Design X for Vue — community continuation aligned with @ant-design/x

6 lines (5 loc) 284 B
/** * Stable callback that always invokes the latest handler (avoids stale closures). * Supports multi-argument handlers (e.g. onRequest(params, opts)). */ export declare function useEventCallback<Args extends any[], R = void>(handler: (...args: Args) => R): (...args: Args) => R;