Syntax

Number

var num: number
num = 123
num = 123.24
num = '123' / Error

String

var str: string
 
str = '123'
str = 123 // Error

Boolean

var bool: boolean
 
bool = true
bool = false
bool = 'tralala' // Error