Coming fresh to the TypeScript world, I was puzzled at first which type definition I should take for a simple string type. This also applies to other types like number and boolean, but I’ll stick with strings in this example.

string types can be assigned to String types.