Skip to content

Commit

Permalink
Add flow comments annotation to function signatures (#2319)
Browse files Browse the repository at this point in the history
* add flow comments annotation

* chore(annotations): removed constants annotations; add more specificity to returning object;

* feat(flow): add postcss type; remove redundant annotations;
  • Loading branch information
ivanzusko authored and davidtheclark committed Mar 8, 2017
1 parent c8b30d7 commit 16e8cc7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions decls/postcss.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,14 @@ export type postcss$rule = {
parent: Object,
nodes: Array<Object>,
}

export type postcss$result = {
css: string,
root: Object,
stylelint: {
disabledRanges: disabledRangeObject,
ruleSeverities?: Object,
customMessages?: Object,
quiet?: boolean,
},
}
2 changes: 1 addition & 1 deletion lib/assignDisabledRanges.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const ALL_RULES = "all"
module.exports = function (
root/*: Object*/,
result/*: Object*/
) {
)/*: postcss$result*/ {
result.stylelint = result.stylelint || {}

// Most of the functions below work via side effects mutating
Expand Down

0 comments on commit 16e8cc7

Please sign in to comment.