Fix flow type errors of all viewers #2039
No reviewers
Labels
No labels
accessibility
app-parity
area: creator
area: daemon
area: design
area: devops
area: discovery
area: docs
area: installer
area: internal
area: livestream
area: performance
area: proposal
area: reposts
area: rewards
area: search
area: security
area: subscriptions
area: sync
area: ux
area: viewer
area: wallet
BEAMER
channel
comments
community PR
consider soon
core team
css
dependencies
electron
Epic
feature request
first-timers-only
good first issue
hacktoberfest
help wanted
hub-dependent
icebox
Invalid
level: 0
level: 1
level: 2
level: 3
level: 4
merge when green
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
notifications
odysee
on hold
playlists
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
recsys
redesign
regression
resilience
sdk dependent
Tom's Wishlist
trending
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbry-desktop#2039
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hacktober fest contribution: Flow type errors #2024
@seanyesmunt I still don't know how handle
react.createRef
errors, any ideas?https://flow.org/en/docs/react/refs/
@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
Should we use this instead of
any
?https://www.npmjs.com/package/@types/three
@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
Nice. Definitely
@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
Looks like they are
TypeScript
type definitions 😞@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
I can't find anything for flow 😛
@btzr-io I'm not sure. You can just stick with assigning it in the callback
@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
I can't use / import it:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/three/index.d.ts
@ -187,7 +192,39 @@ class ThreeViewer extends React.PureComponent<Props, State> {
}
I gotcha. Oh well.
@btzr-io This may helps
https://stackoverflow.com/questions/51518721/flow-type-of-reacts-ref
@chrisza4 I keep getting this errors if I use
createRef
:@seanyesmunt Ok, it's done.