infer return type of functions

This commit is contained in:
Thomas Ruoff
2021-03-22 23:14:48 +01:00
parent 3cf2aff832
commit 9fe3fffb86
16 changed files with 54 additions and 54 deletions

View File

@@ -4,7 +4,7 @@ import { getBookedDays } from '../../db/index'
export default async function useHandler(
req: NextApiRequest,
res: NextApiResponse
) {
): Promise<void> {
const { method } = req
switch (method) {