0.0.2 • Published 2 years ago
tealina-gdoc v0.0.2
Generate API document from a specifice .d.ts
file
Convietion
- The
.d.ts
only export one Interface - The Interface should be a Record<string,{body:{..},response:{..},...}>
Entry Example
// entry.d.ts
export interface API_Record {
'/user/create': {
body: { name: string; age: number }
response: {
id: number
name: string
age: number
}
}
}