UNPKG

398 BTypeScriptView Raw
1/**
2 * Removes event handlers from the given object.
3 * A field is considered an event handler if it is a function with a name beginning with `on`.
4 *
5 * @param object Object to remove event handlers from.
6 * @returns Object with event handlers removed.
7 */
8declare function omitEventHandlers<Props extends Record<string, unknown>>(object: Props | undefined): {};
9export default omitEventHandlers;