Обращение к членам типа

Динамические типы

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

d = 3.14
let s = d.toString()

s = d.tostring(); //<- Error at run time
console.log(`s is "${s}"`)