mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 17:35:49 +08:00
react-navigation: Fix lint (#21173)
This commit is contained in:
@@ -76,8 +76,7 @@ interface NextScreenNavigationParams {
|
||||
id: number;
|
||||
name: string;
|
||||
}
|
||||
interface NextScreenProps extends NavigationScreenProps<NextScreenNavigationParams> { }
|
||||
class NextScreen extends React.Component<NextScreenProps> {
|
||||
class NextScreen extends React.Component<NavigationScreenProps<NextScreenNavigationParams>> {
|
||||
render() {
|
||||
// Implicit type checks.
|
||||
const navigationStateParams: NextScreenNavigationParams = this.props.navigation.state.params;
|
||||
|
||||
Reference in New Issue
Block a user