Hi, do you have any idea how to define once the ty...
# javascript
m
Hi, do you have any idea how to define once the type signature of handler ? (I'm in an external interface)
Copy code
fun param(name: String, handler: (req: Request, res: Response, next: (err: Error?) -> Unit, value: Any, name: String) -> Any): Application
fun param(name: Array<String>, handler: (req: Request, res: Response, next: (err: Error?) -> Unit, value: Any, name: String) -> Any): Application
t
You are thinking about something like union type?
o
typealias
?
👍 2
m
Exactly! Thank you! 🙂