type PathConverter
= (params: P) => string
type routes = {
boards: {
GET: {
pathParams: {}
bodyParams: {}
},
POST: {
pathParams: {}
bodyParams: { title: string }
}
},
board: {
GET: {
pathParams: { id: number }
bodyParams: {}
},
PATCH: {
pathParams: { id: number }
bodyParams: { title: string }
}
}
}
type HttpVerbs = 'GET' | 'POST' | 'PATCH'
type Verbs