mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
More generics flatten. (#37398)
This commit is contained in:
parent
4884c3a2c8
commit
4e61a08d6b
5
types/react-native/index.d.ts
vendored
5
types/react-native/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user