Skip to content

Commit

Permalink
chore: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed Dec 1, 2019
1 parent 124fa2f commit d0d958c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/DocsParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ export class DocsParser {
const parsed: (
| ModuleDocumentationContainer
| ClassDocumentationContainer
| ElementDocumentationContainer)[] = [];
| ElementDocumentationContainer
)[] = [];
const contents = await fs.readFile(filePath, 'utf8');
const md = new MarkdownIt();

Expand Down
9 changes: 6 additions & 3 deletions src/ParsedDocumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export declare type DetailedType = (
| DetailedStringType
| {
type: string;
}) & {
}
) & {
innerTypes?: TypeInformation[];
};
export declare type TypeInformation = {
Expand Down Expand Up @@ -140,7 +141,8 @@ export declare type ParsedDocumentationResult = (
| ModuleDocumentationContainer
| ClassDocumentationContainer
| StructureDocumentationContainer
| ElementDocumentationContainer)[];
| ElementDocumentationContainer
)[];

export class ParsedDocumentation {
private repr: ParsedDocumentationResult = [];
Expand All @@ -153,7 +155,8 @@ export class ParsedDocumentation {
...apiContainers: (
| ModuleDocumentationContainer
| ClassDocumentationContainer
| ElementDocumentationContainer)[]
| ElementDocumentationContainer
)[]
) {
this.repr.push(...apiContainers);
}
Expand Down
4 changes: 1 addition & 3 deletions src/block-parsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,7 @@ export const _headingToMethodBlock = (
for (let i = 0; i < parameters.length; i++) {
expect(parameters[i].required).to.equal(
!guessedParams[i].optional,
`the optionalality of a paramater in the signature should match the documented optionality in the parameter description: "${methodString}${methodSignature}", while parsing parameter: "${
parameters[i].name
}"`,
`the optionalality of a paramater in the signature should match the documented optionality in the parameter description: "${methodString}${methodSignature}", while parsing parameter: "${parameters[i].name}"`,
);
}
}
Expand Down

0 comments on commit d0d958c

Please sign in to comment.