In TypeScript classes it\'s possible to declare types for properties, for example:
class className { property: string; };
How do declare
If you're trying to write a type annotation, the syntax is:
var x: { property: string; } = ...;
If you're trying to write an object literal, the syntax is:
var x = { property: 'hello' };
Your code is trying to use a type name in a value position.