-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
area: fixersAround how TypeStat fixes code.Around how TypeStat fixes code.area: reactRelated to JSX syntax, particularly for React components and the like.Related to JSX syntax, particularly for React components and the like.status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: bugSomething isn't working :( 🐛Something isn't working :( 🐛
Description
🐛 Bug Report
- TypeStat version: 0.8.1
- TypeScript version: 5.2
- Node version: 20
Actual Behavior
diff --git a/lib/ReactViews/Custom/Chart/ChartPanelDownloadButton.tsx b/lib/ReactViews/Custom/Chart/ChartPanelDownloadButton.tsx
index 20bb45d24..ba40adf73 100644
--- a/lib/ReactViews/Custom/Chart/ChartPanelDownloadButton.tsx
+++ b/lib/ReactViews/Custom/Chart/ChartPanelDownloadButton.tsx
@@ -86,7 +86,15 @@ async function download(items: TableMixin.Instance[]) {
}
export const ChartPanelDownloadButton = observer(
- (props: { chartableItems: ChartableMixin.Instance[] }) => {
+ (props: { chartableItems: ChartableMixin.Instance[] key: string;
+catalogItem: MappableMixin.Instance;
+features: TerriaFeature[];
+onToggleOpen: (feature: TerriaFeature) => void;
+viewState: ViewState;
+item: CatalogMemberMixin.Instance;
+removable: boolean;
+terria: Terria;
+}) => {
// For the moment we only support TableMixin items
const tableItems = props.chartableItems.filter(TableMixin.isMixedInto);Expected Behavior
Just looking at the output, I would guess that TypeStat forgets to add a semi-colon and/or newline after the single member of the object when there isn't one, and proceeds to output its discovered additional members.
Reproduction
Same as #2014.
JoshuaKGoldberg
Metadata
Metadata
Assignees
Labels
area: fixersAround how TypeStat fixes code.Around how TypeStat fixes code.area: reactRelated to JSX syntax, particularly for React components and the like.Related to JSX syntax, particularly for React components and the like.status: accepting prsPlease, send a pull request to resolve this! 🙏Please, send a pull request to resolve this! 🙏type: bugSomething isn't working :( 🐛Something isn't working :( 🐛