Skip to content

Commit

Permalink
enhanced typings
Browse files Browse the repository at this point in the history
updated allowed values for css() params to match the clean() function
  • Loading branch information
otbe authored Jan 3, 2017
1 parent 946438d commit 58f7ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export interface StyleAttribute {
[attributeName: string]: '';
}

type Rule = StyleAttribute | CSSProperties | null;
type FalsyValues = null | undefined | false;
type Rule = StyleAttribute | CSSProperties | FalsyValues;

/**
* Defines a `rule` with the given key-value pairs. Returns an object (of shape
Expand Down

0 comments on commit 58f7ea3

Please sign in to comment.