More generics flatten. (#37398)

This commit is contained in:
Ryoga Kitagawa 2019-08-17 08:59:33 +09:00 committed by Pranav Senthilnathan
parent 4884c3a2c8
commit 4e61a08d6b

View File

@ -5427,10 +5427,7 @@ export namespace StyleSheet {
* their respective objects, merged as one and then returned. This also explains
* the alternative use.
*/
export function flatten<T>(style?: RegisteredStyle<T>): T;
export function flatten(style?: StyleProp<TextStyle>): TextStyle;
export function flatten(style?: StyleProp<ImageStyle>): ImageStyle;
export function flatten(style?: StyleProp<ViewStyle>): ViewStyle;
export function flatten<T>(style?: StyleProp<T>): T;
/**
* WARNING: EXPERIMENTAL. Breaking changes will probably happen a lot and will