What should I do to declare a function that take a class instance as argument
class Message{ constructor(readonly text:string){} } function publish(message