@mui/x-charts
Version:
The community edition of MUI X Charts components.
5 lines • 548 B
TypeScript
import type { Selector } from 'reselect';
import { type ChartAnyPluginSignature } from "../models/plugin.js";
import { type ChartState } from "../models/chart.js";
export type ChartRootSelector<TSignature extends ChartAnyPluginSignature, T extends keyof TSignature['state'] = keyof TSignature['state']> = Selector<ChartState<[TSignature]>, TSignature['state'][T]>;
export type ChartOptionalRootSelector<TSignature extends ChartAnyPluginSignature> = Selector<ChartState<[], [TSignature]>, TSignature['state'][keyof TSignature['state']] | undefined>;