I have downsized my issue to a smaller scale.
This class needs to set the default value of its "status" property. The type T extends the string literal type "PossibleStatus" which consists of 3 possible strings.
Typescript is giving me trouble with this. Can you assist in deciphering why?
Visit this stackblitz for a live demonstration
export type PossibleStatuses = 'idle' | 'on' | 'off';
export class StatefulNode<T extends PossibleStatuses> {
private status: T = 'idle';
constructor() { }
}