@izumisy-tailor/tailor-data-viewer 0.2.24 → 0.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/component/types.ts +5 -2
package/package.json
CHANGED
package/src/component/types.ts
CHANGED
|
@@ -278,9 +278,12 @@ export type NodeType<
|
|
|
278
278
|
/**
|
|
279
279
|
* Props passed to a custom cell renderer.
|
|
280
280
|
*/
|
|
281
|
-
export interface CellRendererProps<
|
|
281
|
+
export interface CellRendererProps<
|
|
282
|
+
TRow extends Record<string, unknown>,
|
|
283
|
+
TKey extends keyof TRow = never,
|
|
284
|
+
> {
|
|
282
285
|
/** The value of the cell */
|
|
283
|
-
value: unknown;
|
|
286
|
+
value: [TKey] extends [never] ? unknown : TRow[TKey];
|
|
284
287
|
/** The entire row data */
|
|
285
288
|
row: TRow;
|
|
286
289
|
/** The row index (0-based) */
|