Our application employs express
along with TypeScript. While exploring their type definitions, I stumbled upon the following snippet and I'm curious about its meaning:
export interface IRouter extends RequestHandler {
all: IRouterMatcher<this>;
}
https://i.sstatic.net/HvXBH.png
Specifically, the usage of IRouterMatcher<this>
.
Despite multiple readings of the documentation, I couldn't find any information regarding this particular scenario. Additionally, searching for <this>
proves challenging on platforms like SO or the web, as angle brackets are typically removed.