react-loading-progress
Version:
Loading display components
30 lines (23 loc) • 680 B
JavaScript
// @flow
export type Interpolation =
| ((executionContext: Object) => Interpolation)
| string
| number
| Array<Interpolation>
/* 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 | ReactClass<*>
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,
}