Skip to content

Commit

Permalink
docs: Fix documentation compile errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret committed Jun 29, 2019
1 parent ad4c64c commit b38fd57
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/manipulation/renaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ This behaviour can be changed by enabling the `usePrefixAndSuffixText` setting,
const b = 5;
const x = { a: b };

export { a as b };
export { b as a };
```

This behaviour change can be specified when renaming:
Expand Down
2 changes: 1 addition & 1 deletion docs/manipulation/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const project = new Project({
// LineFeed or CarriageReturnLineFeed
newLineKind: NewLineKind.LineFeed,
// Single or Double
quoteKind: QuoteKind.Double
quoteKind: QuoteKind.Double,
// Whether to change shorthand property assignments to property assignments
// and add aliases to import & export specifiers (see more information in
// the renaming section of the documentation).
Expand Down
3 changes: 3 additions & 0 deletions docs/navigation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ node.forEachChild(node => {
const classDec = node.forEachChild(node => {
if (TypeGuards.isClassDeclaration(node))
return node; // stops iterating over the children and returns this value
return undefined; // return a falsy value or no value to continue iterating
});
```

Expand Down Expand Up @@ -87,5 +88,7 @@ const result = node.forEachDescendant((node, traversal) => {
// stops traversal completely and returns this value
return node;
}

return undefined;
});
```
2 changes: 1 addition & 1 deletion wrapped-nodes.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ The disadvantage to a node not being wrapped is that it won't have helper method
* :x: moduleName
* :heavy_check_mark: referencedFiles
* :heavy_check_mark: typeReferenceDirectives
* :x: libReferenceDirectives
* :heavy_check_mark: libReferenceDirectives
* :heavy_check_mark: languageVariant
* :heavy_check_mark: isDeclarationFile
* :x: hasNoDefaultLib
Expand Down

0 comments on commit b38fd57

Please sign in to comment.