catdadcode / poker-engine

32 stars 13 forks source link

Subsequent property declarations must have the same type. #4

Closed scraggelz closed 2 years ago

scraggelz commented 2 years ago

I noticed I'm receiving this error even though I have typescript specified in devDependencies:

src/Card.ts(72,3): error TS2717: Subsequent property declarations must have the same type. Property 'color' must be of type 'CardColor', but here has type 'CardColor'.

This is on a fresh project trying to install the library. I might have something misconfigured in my tsconfig file

scraggelz commented 2 years ago

Looks like typscript 4.0.2 works fine but more recent versions break.