UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

16 lines (15 loc) 975 B
import { type PropsWithChildren, type ReactNode } from "react"; import type { GridSpec as LnSpec } from "../types/grid.js"; import type { Column as LnColumn } from "../types/column.js"; import type { API as LnAPI } from "../types/api.js"; import type { Props as LnProps } from "../types/props.js"; import type { RowSource } from "@1771technologies/lytenyte-shared"; export declare const Root: <Spec extends Root.GridSpec = Root.GridSpec>(props: PropsWithChildren<Root.Props<Spec> & (undefined extends Spec["api"] ? object : { apiExtension: Spec["api"]; })>) => ReactNode; export declare namespace Root { type GridSpec<T = unknown, C extends Record<string, any> = object, S extends RowSource<T> = RowSource, E extends Record<string, any> = object> = LnSpec<T, C, S, E>; type Props<Spec extends GridSpec = GridSpec> = LnProps<Spec>; type API<Spec extends GridSpec = GridSpec> = LnAPI<Spec>; type Column<Spec extends GridSpec = GridSpec> = LnColumn<Spec>; }