Skip to content

Commit

Permalink
Merge pull request #2480 from FormidableLabs/typescript/victory-stack
Browse files Browse the repository at this point in the history
Typescript: victory-stack props
  • Loading branch information
scottrippey committed Sep 26, 2022
2 parents 1f5983b + 1da86d1 commit 2e37125
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/few-owls-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"victory-stack": patch
---

TypeScript: Added strongly-typed props to `VictoryStack` (fixes #2449)
2 changes: 1 addition & 1 deletion packages/victory-stack/src/victory-stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export interface VictoryStackProps
xOffset?: number;
}

const VictoryStackBase = (initialProps) => {
const VictoryStackBase = (initialProps: VictoryStackProps) => {
// eslint-disable-next-line no-use-before-define
const { role } = VictoryStack;
const { setAnimationState, getAnimationProps, getProps } =
Expand Down

0 comments on commit 2e37125

Please sign in to comment.