From 53495df96eea4ce75734360176b9abcb268568bc Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Wed, 4 Jun 2025 09:12:42 -0700 Subject: [PATCH] Fix a bunch of TypeScript build errors from apparently forgetting to add some new defaultProps ``` > @modelcontextprotocol/inspector-client@0.10.2 build > tsc -b && vite build src/components/__tests__/Sidebar.test.tsx:44:10 - error TS2739: Type '{ connectionStatus: "disconnected"; transportType: "stdio"; setTransportType: Mock; command: string; setCommand: Mock; ... 16 more ...; setConfig: Mock<...>; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 44 ~~~~~~~ src/components/__tests__/Sidebar.test.tsx:185:12 - error TS2739: Type '{ bearerToken: string; transportType: "sse"; connectionStatus: "disconnected"; setTransportType: Mock; command: string; setCommand: Mock; ... 15 more ...; setConfig: Mock<...>; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 185 ; command: string; setCommand: Mock; ... 15 more ...; setConfig: Mock<...>; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 215 ; setEnv: Mock; connectionStatus: "disconnected"; transportType: "stdio"; setTransportType: Mock; ... 16 more ...; setConfig: Mock<...>; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 379 ~~~~~~~ src/components/__tests__/Sidebar.test.tsx:414:12 - error TS2739: Type '{ env: { NEW_KEY: string; }; connectionStatus: "disconnected"; transportType: "stdio"; setTransportType: Mock; command: string; setCommand: Mock; ... 15 more ...; setConfig: Mock<...>; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 414 ~~~~~~~ src/components/__tests__/Sidebar.test.tsx:599:12 - error TS2739: Type '{ config: InspectorConfig; setConfig: Mock; connectionStatus: "disconnected"; transportType: "stdio"; setTransportType: Mock<...>; ... 16 more ...; loggingSupported: boolean; }' is missing the following properties from type 'SidebarProps': oauthClientId, setOauthClientId, oauthParams, setOauthParams 599 { setEnv: jest.fn(), bearerToken: "", setBearerToken: jest.fn(), + oauthClientId: "", + setOauthClientId: jest.fn(), + oauthParams: "", + setOauthParams: jest.fn(), onConnect: jest.fn(), onDisconnect: jest.fn(), stdErrNotifications: [],