Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Add recursive array type to CSS prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schuman committed Feb 8, 2018
1 parent b843c27 commit 9012bca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions typings/css-properties.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1933,3 +1933,7 @@ export interface CSSProperties
extends CSSPropertiesComplete,
CSSPropertiesPseudo,
CSSPropertiesLossy {}

export type CSSPropertiesRecursive = CSSProperties | CSSPropertiesArray

export interface CSSPropertiesArray extends Array<CSSPropertiesRecursive> {}
4 changes: 2 additions & 2 deletions typings/glamorous-component.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {CSSProperties} from './css-properties'
import {CSSProperties, CSSPropertiesRecursive} from './css-properties'

import {Component} from './glamorous'

Expand All @@ -20,7 +20,7 @@ export interface ExtraGlamorousProps {
/**
* Same type as any of the styles provided, will be merged with this component's styles and take highest priority over the component's predefined styles
*/
css?: CSSProperties
css?: CSSPropertiesRecursive
theme?: object
}

Expand Down

0 comments on commit 9012bca

Please sign in to comment.