refactor: normalize array type notation from Array<T> to T[] in generators and type mapper
This commit is contained in:
@@ -7,7 +7,7 @@ export function mapSwaggerTypeToTs(type?: string): string {
|
||||
string: 'string',
|
||||
boolean: 'boolean',
|
||||
number: 'number',
|
||||
array: 'Array<unknown>',
|
||||
array: 'unknown[]',
|
||||
object: 'unknown'
|
||||
};
|
||||
return typeMap[type] || 'unknown';
|
||||
|
||||
Reference in New Issue
Block a user