mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Added isStyledComponent
This commit is contained in:
parent
14d234420f
commit
1d6edf7767
4
types/styled-components/native.d.ts
vendored
4
types/styled-components/native.d.ts
vendored
@ -15,6 +15,7 @@ export {
|
||||
import {
|
||||
AnyStyledComponent,
|
||||
DefaultTheme,
|
||||
isStyledComponent,
|
||||
StyledComponentInnerAttrs,
|
||||
StyledComponentInnerComponent,
|
||||
StyledComponentInnerOtherProps,
|
||||
@ -226,6 +227,9 @@ export interface ReactNativeThemedStyledComponentsModule<
|
||||
ThemeProvider: ThemeProviderComponent<T, U>;
|
||||
ThemeConsumer: React.Consumer<T>;
|
||||
ThemeContext: React.Context<T>;
|
||||
|
||||
// This could be made to assert `target is StyledComponent<any, T>` instead, but that feels not type safe
|
||||
isStyledComponent: typeof isStyledComponent;
|
||||
}
|
||||
|
||||
declare const styled: ReactNativeStyledInterface<DefaultTheme>;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user