Friday, November 8, 2019

'Foo' only refers to a type, but is being used as a value here.

This TypeScript error rears its head in Visual Studio Code when you are trying to new up an interface as if it were a class.

No comments:

Post a Comment