[Vuejs]-Vue TypeScript Object prop type is not correct

0👍

Did you try to put a type after the computed property like so?

unitsString() :string{
  return ... 
}

Typescript with Vue reacts weirdly with computed properties which are inferred.

Leave a comment