Skip to content

Commit

Permalink
docs: Update description for format.formatter (#363)
Browse files Browse the repository at this point in the history
Make it clear that the function is bound to the file object.
  • Loading branch information
ryanfitzer authored and dbanksdesign committed Sep 28, 2020
1 parent 7f6a8f4 commit d601b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/register/format.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @param {Object} format
* @param {String} format.name - Name of the format to be referenced in your config.json
* @param {Function} format.formatter - Function to perform the format. Takes 2 arguments, `dictionary` and `config`
* Must return a string.
* Must return a string. Function is bound to its file object in the `platform.files` array.
* @returns {module:style-dictionary}
* @example
* ```js
Expand Down

0 comments on commit d601b5d

Please sign in to comment.