Download node_modules/@tanstack/table-core/dist/flex-render.d.ts from sitcod3/modul-s: direct link, hf CLI and curl.
- Browser
- Download file 1.36 kB
-
https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/table-core/dist/flex-render.d.ts
- Command line
-
hf download hf://spaces/sitcod3/modul-s@c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/@tanstack/table-core/dist/flex-render.d.ts
-
curl -L -o flex-render.d.ts https://huggingface.co/spaces/sitcod3/modul-s/resolve/c06e4783a2be21cd7ca9fedf1ede4d4f0156ba3a/node_modules/%40tanstack/table-core/dist/flex-render.d.ts
1.36 kB
| import { CellData, RowData } from "./types/type-utils.js"; | |
| import { Header } from "./types/Header.js"; | |
| import { Cell } from "./types/Cell.js"; | |
| import { TableFeatures } from "./types/TableFeatures.js"; | |
| //#region src/flex-render.d.ts | |
| /** | |
| * Renders a static value or render function with the provided props. | |
| * | |
| * Framework adapters use this helper to support column definitions that contain either plain values or template functions. | |
| */ | |
| declare function flexRender<TProps extends object>(comp: unknown, props: TProps): unknown | null; | |
| type FlexRenderProps<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData> = { | |
| cell: Cell<TFeatures, TData, TValue>; | |
| header?: never; | |
| footer?: never; | |
| } | { | |
| header: Header<TFeatures, TData, TValue>; | |
| cell?: never; | |
| footer?: never; | |
| } | { | |
| footer: Header<TFeatures, TData, TValue>; | |
| cell?: never; | |
| header?: never; | |
| }; | |
| /** | |
| * Renders a static value or render function with the provided props. | |
| * | |
| * Framework adapters use this helper to support column definitions that contain either plain values or template functions. | |
| */ | |
| declare function FlexRender<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(props: FlexRenderProps<TFeatures, TData, TValue>): unknown | null; | |
| //#endregion | |
| export { FlexRender, FlexRenderProps, flexRender }; |