JoshuaKGoldberg / JoshuaKGoldberg/TypeStat

Bug: previous type annotation is not replaced

Open
#2,018 1 comment 0 reactions 0 assignees View on GitHub
area: fixers status: accepting prs type: bug
Dominant language
TypeScript
Stars
2.3k
Forks
47
Avg merge
15h 55m
Merged PRs (30d)
21

Description

### 🐛 Bug Report

- TypeStat version: 0.8.1
- TypeScript version: 5.2
- Node version: 20

#### Actual Behavior

```patch
diff --git a/lib/ReactViews/Tools/DiffTool/DiffTool.tsx b/lib/ReactViews/Tools/DiffTool/DiffTool.tsx
index 79c9e6e0c..f52735a8b 100644
--- a/lib/ReactViews/Tools/DiffTool/DiffTool.tsx
+++ b/lib/ReactViews/Tools/DiffTool/DiffTool.tsx
@@ -890,7 +890,7 @@ const Selector = (props: any) => (

const AreaFilterSelection = (props: {
t: TFunction;
- location?: LatLonHeight;
+ location?: LatLonHeight | number;
isPickingNewLocation: boolean;
theme?: any;
}) => {
@@ -969,7 +969,12 @@ const LocationAndDatesDisplayBox = styled(Box).attrs({
}
`;

-const LegendImage = function (props: any) {
+interface LegendImageProps {
+width: string;
+src: string;
+}
+
+const LegendImage = function (props: any: LegendImageProps) {
return (

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.