Skip to content
This repository has been archived by the owner. It is now read-only.
Go to file
Cannot retrieve contributors at this time
39 lines (31 sloc) 1004 Bytes
import * as CSS from 'csstype'
import {SingleOrArray} from './helpers'
export interface CSSPropertiesCompleteSingle
extends CSS.Properties<number | string> {}
export type CSSPropertiesPseudo = {[K in CSS.Pseudos]?: CSSProperties}
type CSSPropertiesComplete = SingleOrArray<
keyof CSSPropertiesCompleteSingle
export interface CSSPropertiesLossy {
[propertyName: string]:
| string
| number
| CSSPropertiesComplete
| undefined
| Array<CSSPropertiesComplete[keyof CSSPropertiesComplete]>
| CSSPropertiesLossy
export interface CSSProperties
extends CSSPropertiesComplete,
CSSPropertiesLossy {}
export type CSSPropertiesRecursive =
| CSSProperties
| CSSPropertiesArray
| CSSFunction
// TODO: This could be made generic. Issue PR if you're so inclined!
export interface CSSFunction {
(props: {}): CSSPropertiesRecursive
export interface CSSPropertiesArray extends Array<CSSPropertiesRecursive> {}
You can’t perform that action at this time.