✏️ initialize types for api docs

master
carlos-burelo 3 years ago
parent febf8c7da5
commit eac48ecef0

11
src/types.d.ts vendored

@ -0,0 +1,11 @@
import { Request, Response } from 'express'
export type Controller<Type = any> = (req: Request, res: Response) => Promise<Type>
export interface Lastest {
id: string
title: string
image: string
type: string
no: number
}
Loading…
Cancel
Save