Answers for "typescript interface default value"

0

typescript interface default value

// Use optionalproperties (here b and c)
interface IX {
    a: string,
    b?: any,
    c?: AnotherType
}

let x: IX = {
    a: 'abc'
}
Posted by: Guest on April-29-2021

Code answers related to "typescript interface default value"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language