UNPKG

@visx/shape

Version:
14 lines 693 B
import type { D3Scale, PickD3Scale } from '@visx/scale'; import type { ReactNode, SVGProps } from 'react'; export type $TSFIXME = any; export type DatumObject = Record<string | number, $TSFIXME>; export type AnyScaleBand = PickD3Scale<'band', any, any>; /** A catch-all type for scales that returns number */ export type PositionScale = D3Scale<number, any, any>; /** * Add fields from `SVGProps` for the specified SVG `Element` * to `Props` except fields that already exist in `Props` */ export type AddSVGProps<Props, Element extends SVGElement> = Props & Omit<SVGProps<Element>, keyof Props>; export type RenderProp<Input> = (args: Input) => ReactNode; //# sourceMappingURL=base.d.ts.map