As part of Typescript migration added/removed the error causing fields.
Motivation
TypeScript 5.0 has marked some options as deprecated. We can temporarily override these deprecations, but the documented plan is for the ability to override the flag to go away in TypeScript 5.5
Context
includeStepsText={false}
Error: No overload matches this call.Type '{ needsReviewCardsViewData: CardsViewModel; needsReviewCardSelectionMessageCreator: CardSelectionMessageCreator; automatedChecksCardsViewData: CardsViewModel }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'
Property 'includeStepsText' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly
In file src/DetailsView/components/default-test-view-container-provider.tsx getting error for includeStepsText. Added the property in reference file.
requirementState={requirementState}
Error: Type '{ deps: AdhocTabStopsTestViewDeps; failureInstanceState: FailureInstanceState; requirementState: TabStopRequirementState; }' is not assignable to type 'IntrinsicAttributes & TabStopsFailedInstancePanelProps & { children?: ReactNode; }'.
Property 'requirementState' does not exist on type 'IntrinsicAttributes & TabStopsFailedInstancePanelProps & { children?: ReactNode; }'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
featureFlagStoreData={featureFlagStoreData}
Error: Type '{ deps: DetailsViewLeftNavDeps; featureFlagStoreData: FeatureFlagStoreData; pivotKey: DetailsViewPivotType; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'.
Property 'featureFlagStoreData' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
Deps
Error: Type '{ deps: ReportExportComponentDeps; isOpen: boolean; htmlFileName: string; jsonFileName: string; description: string; htmlExportData: string; jsonExportData: string; ... 9 more ...; exportResultsClickedTelemetry: (reportExportFormat: ReportExportFormat, selectedServiceKey: ReportExportServiceKey, event: MouseEvent<.....' is not assignable to type 'IntrinsicAttributes & ExportDialogProps & { children?: ReactNode; }'.
Property 'deps' does not exist on type 'IntrinsicAttributes & ExportDialogProps & { children?: ReactNode; }'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
outline: '3px dashed'
Error: Type '{ fontColor: string; background: string; text: string; fontWeight: string; fontSize: string; outline: string; }' is not assignable to type 'TextBoxConfig'.
Object literal featureFlagData={featureFlags}may only specify known properties, and 'outline' does not exist in type 'TextBoxConfig'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
featureFlagData={featureFlags}
Error: Type '{ deps: LaunchPanelHeaderDeps; popupWindow: Window; header: this; featureFlagData: FeatureFlagStoreData; }' is not assignable to type 'IntrinsicAttributes & HamburgerMenuButtonProps & { children?: ReactNode; }'.
Property 'featureFlagData' does not exist on type 'IntrinsicAttributes & HamburgerMenuButtonProps & { children?: ReactNode; }'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
isContextMenuVisible
Error: Argument of type '{ target: any; isContextMenuVisible: boolean; }' is not assignable to parameter of type 'LaunchPanelHeaderState | ((prevState: Readonly, props: Readonly) => LaunchPanelHeaderState | Pick<...>) | Pick<...>'.
Object literal may only specify known properties, and 'isContextMenuVisible' does not exist in type 'LaunchPanelHeaderState
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
featureFlagStoreData
Error: Property 'featureFlagStoreData' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
deps:null
Error: Argument of type '{ id: string; header: JSX.Element; content: JSX.Element; headingLevel: number; deps: null; }' is not assignable to parameter of type 'ReportCollapsibleContainerProps'.
Object literal may only specify known properties, and 'deps' does not exist in type 'ReportCollapsibleContainerProps'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
testName: 'test-name'
Error: Type '{ key: string; testName: string; rules: string[]; testType: VisualizationType; }' is not assignable to type 'Readonly<Partial>'.
Object literal may only specify known properties, and 'testName' does not exist in type 'Readonly<Partial>'.
openGettingStartedDialog
Error: Type '{ deps: LaunchPanelHeaderDeps; title: string; subtitle: string; openGettingStartedDialog: any; openFeedbackDialog: any; popupWindow: Window; featureFlags: FeatureFlagStoreData; openAdhocToolsPanel: () => void; dropdownClickHandler: DropdownClickHandler; }' is not assignable to type 'LaunchPanelHeaderProps'.
Object literal may only specify known properties, and 'openGettingStartedDialog' does not exist in type 'LaunchPanelHeaderProps'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
deps
Error: Type '{ deps: { collapsibleControl: (collapsibleControlProps: ReportCollapsibleContainerProps) => JSX.Element; }; failed: { url: string; numFailures: number; reportLocation: string; }[]; passed: { ...; }[]; unscannable: { ...; }[]; }' is not assignable to type 'SummaryScanResults'.
Object literal may only specify known properties, and 'deps' does not exist in type 'SummaryScanResults'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
Details
As part of Typescript migration added/removed the error causing fields.
Motivation
TypeScript 5.0 has marked some options as deprecated. We can temporarily override these deprecations, but the documented plan is for the ability to override the flag to go away in TypeScript 5.5
Context
Error: Type '{ deps: AdhocTabStopsTestViewDeps; failureInstanceState: FailureInstanceState; requirementState: TabStopRequirementState; }' is not assignable to type 'IntrinsicAttributes & TabStopsFailedInstancePanelProps & { children?: ReactNode; }'.
Property 'requirementState' does not exist on type 'IntrinsicAttributes & TabStopsFailedInstancePanelProps & { children?: ReactNode; }'.
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
Error: Type '{ deps: DetailsViewLeftNavDeps; featureFlagStoreData: FeatureFlagStoreData; pivotKey: DetailsViewPivotType; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly & Readonly<...>'.
Property 'featureFlagStoreData' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes
As per the previous commits, someone removed from the reference interface/type but didn't remove from actual usage.
Pull request checklist
yarn fastpass
yarn test
)<rootDir>/test-results/unit/coverage
fix:
,chore:
,feat(feature-name):
,refactor:
). SeeCONTRIBUTING.md
.