typescript in object interface code example Example: interface ts one valu Click to copy// use type instead interface type StringOrNull = string | null;