mohux / react-brackets

Reusable and customizable react brackets component, you can use it to build components such as single elimination, or double elimination brackets
105 stars 47 forks source link

Brackets error in typescript project #1

Closed cooperate closed 3 years ago

cooperate commented 3 years ago

Installed using npm. This happens when running start on my project.

TypeScript error in {project}/node_modules/react-brackets/dist/index.d.ts(3,1):
Declaration or statement expected.  TS1128

    1 | export { default as Bracket } from './brackets';
    2 | export { Seed, SeedTeam, SeedItem, SeedTime, SingleLineSeed } from './components/seed';
  > 3 | export type { SingleEliminationProps } from './brackets';
      | ^
    4 | export type { SeedProps, SeedTimeProps } from './components/seed';
    5 | export type { RoundProps } from './components/round';
    6 | 
mohux commented 3 years ago

Hello, sorry for the late replay

could you please share you tsconfig file and typescript version?

it has something to do with typescript config about exporting the ts