Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
view-container / src / types.tsx
Size: Mime:
// @flow
import { ComponentType } from 'react'

export type _Interpolation =
  | ((executionContext: Object) => Interpolation)
  | string
  | number

export type Interpolation = _Interpolation | _Interpolation[]

export type RuleSet = Array<Interpolation>

export type Styles = Array<string> | Object

/* eslint-disable no-undef */
export type Target = string | ComponentType<any>

export type NameGenerator = (hash: number) => string

export type Flattener = (
  chunks: Array<Interpolation>,
  executionContext: Object
) => Array<Interpolation>

export type Stringifier = (
  rules: Array<Interpolation>,
  selector: string,
  prefix: string
) => Array<string>

export type StyleSheet = {
  create: Function
}

export * from './typings'