From 2350ec4d62c2360615822ffc22470f4c64ec5972 Mon Sep 17 00:00:00 2001 From: scottrippey Date: Mon, 20 Jun 2022 10:38:52 -0600 Subject: [PATCH] chore(typescript): mark `data` as `readonly` (fixes #2309) --- packages/victory-core/src/victory-util/common-props.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/victory-core/src/victory-util/common-props.tsx b/packages/victory-core/src/victory-util/common-props.tsx index d003b98ab..3e84c54e8 100644 --- a/packages/victory-core/src/victory-util/common-props.tsx +++ b/packages/victory-core/src/victory-util/common-props.tsx @@ -21,7 +21,7 @@ import { NumberOrCallback, StringOrCallback } from "../types/callbacks"; export interface VictoryDatableProps { categories?: CategoryPropType; - data?: any[]; + data?: readonly any[]; dataComponent?: React.ReactElement; domain?: DomainPropType; domainPadding?: DomainPaddingPropType;