refactor: fix types
This commit is contained in:
parent
7afee5977f
commit
21331e53fe
6 changed files with 17 additions and 13 deletions
|
@ -27,7 +27,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
|
|||
return {
|
||||
params: Object.entries(ep.params.properties ?? {}).map(([k, v]) => ({
|
||||
name: k,
|
||||
type: v.type.charAt(0).toUpperCase() + v.type.slice(1),
|
||||
type: v.type ? v.type.charAt(0).toUpperCase() + v.type.slice(1) : 'string',
|
||||
})),
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue