Answer the question
In order to leave comments, you need to log in
How to correctly pass a function to another function?
Hello. I'm trying to implement a method that takes a string and a callback as input. I do it like this:
interface handlers {
handlerFunctions: handler[],
on(event: string, (msg: Message, text: TextMessage, level: string) => void): void
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question