mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(monorepo/server): fix error due to express types
This commit is contained in:
parent
fc228ca47c
commit
f6d095fe2b
@ -214,7 +214,7 @@ function parseSearchParams(req: Request) {
|
|||||||
|
|
||||||
const SEARCH_PARAM_ERROR = "SEARCH_PARAM_VALIDATION_ERROR";
|
const SEARCH_PARAM_ERROR = "SEARCH_PARAM_VALIDATION_ERROR";
|
||||||
|
|
||||||
function parseString(value: string | ParsedQs | string[] | ParsedQs[] | undefined): string | undefined {
|
function parseString(value: string | ParsedQs | (string | ParsedQs)[] | undefined): string | undefined {
|
||||||
if (typeof value === "string") {
|
if (typeof value === "string") {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user