how to get a type for this in ts code example Example: typescript get type if (typeof abc === "number") { // do something }