Parser doesn't seem to handle generic TS types
Hello
It looks like the file parsed used for this lib does not correctly handle TS generic types, at least for the Request object.
I have the following function signature for one of my endpoints:
export async function createBoard(req: Request<{id: string}, {}, CreateBoard>, res: MyResponse) {
/* ... */
}
and my configuration comments are ignored for this specific endpoint. Removing the generic type, thus using
export async function createBoard(req: Request, res: MyResponse) {
/* ... */
}
works just fine.
Hi @ZRunner! Thank you for opening the issue.
I'll try to fix this as soon as possible. Any news, I'll post it here.
@ZRunner Using unknown or any solved the problem
export async function createBoard(req: Request<{id: string}, unknown, CreateBoard>, res: MyResponse) { /* ... */ }
From what I can see, Request<{id: string}, unknown, CreateBoard> doesn't fix the issue but Request<any, unknown, CreateBoard> does. Which requires loosing quite a bit of information :/
@davibaltar do you have any approximate ETA for the fix of this issue? Or is the project discontinued?