Fixing Type 'string' Is Not Assignable to Type in TypeScript Union Types | CodeTrail