How to declare a typescript property that implements multiple interfaces -


say have 2 interfaces:

interface interface1{} interface interface2{} 

is there way declare property implementing both interfaces? like:

class myclass{   public p: interface1, interface2 } 

is there way declare property implementing both interfaces? like:

yup. intersection type:

interface interface1{} interface interface2{} class myclass{   public p: interface1 & interface2 } 

more

this covered here https://basarat.gitbooks.io/typescript/content/docs/types/type-system.html