Réponse
ParseIntPipe
Colonne
Explication
@Get(':id')
async findOne(@Param('id', ParseIntPipe) id: number): Promise<Cat[]> {
console.log(`Dans findOne de Get. id = `, id);
return [];
}
Question
Comment s'appelle le pipe qui permet de vérifier si l'entrée est bien un entier ?
Thématique