Skip to content

Commit 8f80837

Browse files
lint
1 parent c78f38c commit 8f80837

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NodeParser/PromiseNodeParser.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getKey } from "../Utils/nodeKey.js";
1212
export class PromiseNodeParser implements SubNodeParser {
1313
public constructor(
1414
protected typeChecker: ts.TypeChecker,
15-
protected childNodeParser: NodeParser
15+
protected childNodeParser: NodeParser,
1616
) {}
1717

1818
public supportsNode(node: ts.Node): boolean {
@@ -42,7 +42,7 @@ export class PromiseNodeParser implements SubNodeParser {
4242

4343
public createType(
4444
node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration,
45-
context: Context
45+
context: Context,
4646
): BaseType {
4747
const type = this.typeChecker.getTypeAtLocation(node);
4848

@@ -53,7 +53,7 @@ export class PromiseNodeParser implements SubNodeParser {
5353

5454
if (!awaitedNode) {
5555
throw new Error(
56-
`Could not find awaited node for type ${node.pos === -1 ? "<unresolved>" : node.getText()}`
56+
`Could not find awaited node for type ${node.pos === -1 ? "<unresolved>" : node.getText()}`,
5757
);
5858
}
5959

@@ -72,7 +72,7 @@ export class PromiseNodeParser implements SubNodeParser {
7272
}
7373

7474
private getNodeName(
75-
node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration
75+
node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration,
7676
) {
7777
if (ts.isExpressionWithTypeArguments(node)) {
7878
if (!ts.isHeritageClause(node.parent)) {

0 commit comments

Comments
 (0)