Универсальные (динамические) типы

let d: any = "some string"
d = d.toUpperCase()
//d is "SOME STRING"

d = 3.14
let s = d.toString()

s = d.tostring(); //<- RunTime error
console.log(`s is "${s}"`)