📜  typescript req.query.query - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:34.328000             🧑  作者: Mango

代码示例1
// req.query.shopEventId is possibly === undefined

if (!req.query.shopEventId) {
    return res.status(400).send()
}

const shopEventId: string = String(req.query.shopEventId)