Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript typeof interface property

interface I1 {
    x: any;
}

interface I2 {
    y: {
        a: I1,
        b: I1,
        c: I1
    }
    z: any
}

let myVar: I2['y'];  // indexed access type
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #typeof #interface #property
ADD COMMENT
Topic
Name
6+9 =