mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 12:18:45 -05:00
search prototype with keyword filters
This commit is contained in:
@@ -47,5 +47,13 @@ export function uploadRecipeImage(recipeId: number, file: File) {
|
||||
}).finally(() => {
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* convert a string or an array of strings into an array of numbers
|
||||
* useful for query parameter transformation
|
||||
* @param param
|
||||
*/
|
||||
export function toNumberArray(param: string | string[]): number[]{
|
||||
return Array.isArray(param) ? param.map(Number) : [parseInt(param)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user