Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

QueryParam with types like number/boolean are string #6

Open
amcdnl opened this issue May 18, 2017 · 0 comments
Open

QueryParam with types like number/boolean are string #6

amcdnl opened this issue May 18, 2017 · 0 comments

Comments

@amcdnl
Copy link
Contributor

amcdnl commented May 18, 2017

QueryParam's are not resolving to their types. Given the following:

@Post('/run/:id')
async run(@QueryParam('async') isAsync: boolean = true): Promise<any> {
}

The property isAsync would resolve to "false" rather than false boolean.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant