Typescript String Type Vs Interface Typescript Compiler