Skip to main content

Optionals (T?)

Optional or nullable values can be declared either by using the questionmark operator (?), or by adding an undefined variant:

interface Math extends HybridObject {
a?: number
b: number | undefined
}

In Kotlin/Java, nullables have to be boxed in object types.