2 ms·
Ah good catch, the TS compiler can't as it types it as string that fails. let door: DoorState = "open"; works though. :) I've updated the post and a link to
by kevmo314 6y ago
Ah good catch, the TS compiler can't as it types it as string that fails.
let door: DoorState = "open";
works though. :) I've updated the post and a link to the TS playground.