✏️ initialize types for api docs
parent
febf8c7da5
commit
eac48ecef0
@ -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…
Reference in New Issue