further typing improvements

This commit is contained in:
Thomas Ruoff
2020-08-28 23:20:18 +02:00
committed by Thomas Ruoff
parent 90ac05a907
commit 52a68e9989
17 changed files with 94 additions and 71 deletions

View File

@@ -1,8 +1,10 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import { NextApiRequest, NextApiResponse } from 'next'
import { getBookedDays } from '../../db/index'
export default async function useHandler(req, res) {
export default async function useHandler(
req: NextApiRequest,
res: NextApiResponse
) {
const { method } = req
switch (method) {