victory icon indicating copy to clipboard operation
victory copied to clipboard

TypeScript error with victory-core's index.d.ts

Open dlabrecq opened this issue 3 years ago • 0 comments

Describe the bug Encountered a TypeScript error while attempting to build with the latest victory-core package.

Victory version victory-core: 36.5.3 typescript: 4.7.4

To Reproduce Steps to reproduce the behavior:

  1. yarn add victory-core
  2. import from victory-core
  3. build
  4. See error

Expected behavior Removing the type keyword, from the index.d.ts snippet (below) appears to resolve the issue.

export { Border as Box, type BorderProps as BoxProps, } from "./victory-primitives";

Screenshots

Screen Shot 2022-07-08 at 10 39 52 AM

Desktop (please complete the following information):

  • OS: macOS Monterey
  • Version 12.4

dlabrecq avatar Jul 08 '22 14:07 dlabrecq

Fixed in #2363

scottrippey avatar Aug 19 '22 03:08 scottrippey