Skip to content

Commit

Permalink
[code-infra] Add new instanceof proptypes for toolpad (#43814)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot authored Sep 19, 2024
1 parent 263c725 commit 3732be3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down

0 comments on commit 3732be3

Please sign in to comment.