mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
use unknown in Flatlist setNativeProps type for typescript >= 3.0 (#46773)
Summary: While digging through the types I came accross this TODO. Now that react-native uses version 5 of TS this can be updated ## Changelog: [General] [Added] - Updated FlatList setNativeProps type Pull Request resolved: https://github.com/facebook/react-native/pull/46773 Reviewed By: NickGerleman Differential Revision: D63765333 Pulled By: cipolleschi fbshipit-source-id: ad612205d168cd90f270da72092f8ce67f5038c4
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d3c7469d8c
commit
b0ac99b477
+1
-2
@@ -235,8 +235,7 @@ export abstract class FlatListComponent<
|
||||
|
||||
getScrollableNode: () => any;
|
||||
|
||||
// TODO: use `unknown` instead of `any` for Typescript >= 3.0
|
||||
setNativeProps: (props: {[key: string]: any}) => void;
|
||||
setNativeProps: (props: {[key: string]: unknown}) => void;
|
||||
}
|
||||
|
||||
export class FlatList<ItemT = any> extends FlatListComponent<
|
||||
|
||||
Reference in New Issue
Block a user