Skip to main content

Function: hasScales()

hasScales(config: unknown): config is { scales: ChartScalesConfig }

Defined in: shared/types/chartConfig.ts:519

Type guard to check if an object has scales configuration.

Parametersโ€‹

configโ€‹

unknown

Object to check

Returnsโ€‹

config is { scales: ChartScalesConfig }

True if the object has scales configuration