![](https://secure.gravatar.com/avatar/3d69cd68bd0b1d00c9083256bccf3337.jpg?s=120&d=mm&r=g)
26 Oct
2022
26 Oct
'22
12:24 a.m.
Is it possible to type an object that comprises of certain user defined methods? I am writing a function that should accept a single argument which should be an instance of any object that implements two methods, get and post. Is their a way of creating a type for it that can be scanned by static type checkers?