UNPKG

es-grid-template

Version:

es-grid-template

10 lines (9 loc) 583 B
import type { CellProps } from '../interfaces'; /** Merge two cellProps objects and return a new merged object. * * mergeCellProps merges according to these rules: * - For primitive fields (number, string, boolean), values from `extra` override `base` (with `className` concatenated). * - For function fields (event handlers), mergeCellProps returns a new function that calls `base` then `extra`. * - For plain object fields (e.g., styles), mergeCellProps shallow-merges the two objects. */ export default function mergeCellProps(base: CellProps, extra: CellProps): CellProps;