I have a function that takes an object now this object's shape can be of one of three interfaces:
interface A{ strig:string } interface B{ number:number } interface C{ boolean:boolean } The function takes this object an does different things depending on the shape of the object I want to do something like this
function doSomething(item: object){ if(item typeof A) do A effecst; if(item typeof B) do B effect; if(item typeof B) do C effect; } But I get the error "'IComic' only refers to a type, but here it is used as a value."