Cleanup type name alias formatting (#8784)

This commit is contained in:
Jaco 2023-01-13 11:16:25 +02:00 committed by GitHub
parent 02a3c30202
commit c516067a8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,9 +18,8 @@ function formatJSON (input: string): string {
.replace(/\\/g, '')
.replace(/:Null/g, '')
.replace(/:/g, ': ')
// .replace(/{/g, '{ ')
// .replace(/}/g, ' }')
.replace(/,/g, ', ');
.replace(/,/g, ', ')
.replace(/^{_alias: {.*}, /, '{');
}
function Param ({ className = '', defaultValue, isDisabled, isError, isInOption, isOptional, name, onChange, onEnter, onEscape, overrides, registry, type }: Props): React.ReactElement<Props> | null {