diff --git a/packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts b/packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts index f35dda6bd41a74..bbbf354351ad37 100644 --- a/packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts +++ b/packages-internal/scripts/typescript-to-proptypes/src/getPropTypesFromFile.ts @@ -155,6 +155,12 @@ function checkType({ case 'RegExp': { return createInstanceOfType({ jsDoc, instance: 'RegExp' }); } + case 'URL': { + return createInstanceOfType({ jsDoc, instance: 'URL' }); + } + case 'URLSearchParams': { + return createInstanceOfType({ jsDoc, instance: 'URLSearchParams' }); + } case 'Date': { if (!project.shouldUseObjectForDate?.({ name })) { return createInstanceOfType({ jsDoc, instance: 'Date' });