-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[WIP] fix: React 18 type issues in v8 #34345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
@@ -2,7 +2,7 @@ import { concatStyleSets } from './concatStyleSets'; | |||
import { extractStyleParts } from './extractStyleParts'; | |||
import { IStyle } from './IStyle'; | |||
import { IStyleOptions } from './IStyleOptions'; | |||
import { IConcatenatedStyleSet, IProcessedStyleSet, IStyleSet } from './IStyleSet'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
return !!item && typeof item === 'object' && !!(item as React.ReactElement).type; | ||
} | ||
|
||
function _isCardItem(item: React.ReactNode): item is typeof CardItem { | ||
function _isCardItem(item: unknown): item is typeof CardItem { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
React.ReactNode
is not assignable to typeof CardItem
@@ -99,7 +99,7 @@ function _processStackChildren( | |||
return childrenArray; | |||
} | |||
|
|||
function _isStackItem(item: React.ReactNode): item is typeof StackItem { | |||
function _isStackItem(item: unknown): item is typeof StackItem { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the same as above
bd750f9
to
4a692ad
Compare
4a692ad
to
2732a1c
Compare
@@ -2,7 +2,7 @@ import { concatStyleSets } from './concatStyleSets'; | |||
import { extractStyleParts } from './extractStyleParts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕵🏾♀️ visual changes to review in the Visual Change Report
vr-tests/Callout 4 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests/Callout.Gap space 25.default.chromium.png | 2181 | Changed |
vr-tests/Callout.Rendering callout attached to a rectangle.default.chromium.png | 1832 | Changed |
vr-tests/Callout.No callout width specified.default.chromium.png | 2126 | Changed |
vr-tests/Callout.Top auto edge.default.chromium.png | 2196 | Changed |
vr-tests/Keytip 2 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests/Keytip.Offset.default.chromium.png | 86 | Changed |
vr-tests/Keytip.Root.default.chromium.png | 51 | Changed |
vr-tests/react-charting-AreaChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests/react-charting-AreaChart.Custom Accessibility.default.chromium.png | 11 | Changed |
vr-tests/react-charting-GaugeChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests/react-charting-GaugeChart.Basic.default.chromium.png | 2 | Changed |
vr-tests/react-charting-LineChart 1 screenshots
Image Name | Diff(in Pixels) | Image Type |
---|---|---|
vr-tests/react-charting-LineChart.Multiple.default.chromium.png | 192 | Changed |
Will get back to this when we migrate the monorepo to use React 18 types