In my class I have a property:
thousandSeparator: '' | ',' | ' ' | '.';
and want to set it by:
const options = {
thousandSeparator: ','
};
when setting this I get the error
Types of property 'thousandSeparator' are incompatible.
Type 'string' is not assignable to type '"" | "," | " " | "."'.