Skip to content

Commit

Permalink
docs(src): add description to function
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Mar 25, 2016
1 parent 108f3ba commit 8ec0599
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/suitcss-classnames.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ const DefaultSuitCSSObject = {
*
*/
/**
*
* Create class names string from object.
* The option object should have `component` property.
* It it based name of the class names.
* @param {{
* namespace: string, descendant: ?string, component: ?string,
* namespace: ?string, descendant: ?string, component: string,
* modifiers: (?string[] | ?Object), states: (?string[] | ?Object), utilities: (?string[] | ?Object)
* }} suitCSSObject
* @returns {string}
* @returns {string} class names string. it could be assigned to `class` attribute of element.
*/
export default function suitClassNames(suitCSSObject) {
if (suitCSSObject == null) {
Expand Down

0 comments on commit 8ec0599

Please sign in to comment.