@types/styled-components
Version:
TypeScript definitions for styled-components
11 lines (7 loc) • 460 B
TypeScript
import type { StyledComponent } from "./index";
export function find(element: HTMLElement, styledComponent: StyledComponent<any, any, any, any>): HTMLElement | null;
export function findAll(element: HTMLElement, styledComponent: StyledComponent<any, any, any, any>): NodeList | null;
export function enzymeFind<Wrapper extends { find: (selector: string) => any }>(
wrapper: Wrapper,
styledComponent: StyledComponent<any, any, any, any>,
): Wrapper;