styled-components
Version:
Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
11 lines (7 loc) • 362 B
JavaScript
import type { Component } from 'react'
export type Interpolation = Function | Object | string
/* todo: I want this to actually be an array of Function | string but that causes errors */
export type RuleSet = Array<Interpolation>
/* eslint-disable no-undef */
export type Target = string | Class<Component>
export type NameGenerator = (hash: number) => string