From 8f80837a95561419c57f66a252a2f3c6b3af5fff Mon Sep 17 00:00:00 2001 From: Arthur Fiorette Date: Wed, 15 May 2024 20:45:35 -0300 Subject: [PATCH] lint --- src/NodeParser/PromiseNodeParser.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NodeParser/PromiseNodeParser.ts b/src/NodeParser/PromiseNodeParser.ts index 0414ede55..721614547 100644 --- a/src/NodeParser/PromiseNodeParser.ts +++ b/src/NodeParser/PromiseNodeParser.ts @@ -12,7 +12,7 @@ import { getKey } from "../Utils/nodeKey.js"; export class PromiseNodeParser implements SubNodeParser { public constructor( protected typeChecker: ts.TypeChecker, - protected childNodeParser: NodeParser + protected childNodeParser: NodeParser, ) {} public supportsNode(node: ts.Node): boolean { @@ -42,7 +42,7 @@ export class PromiseNodeParser implements SubNodeParser { public createType( node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration, - context: Context + context: Context, ): BaseType { const type = this.typeChecker.getTypeAtLocation(node); @@ -53,7 +53,7 @@ export class PromiseNodeParser implements SubNodeParser { if (!awaitedNode) { throw new Error( - `Could not find awaited node for type ${node.pos === -1 ? "" : node.getText()}` + `Could not find awaited node for type ${node.pos === -1 ? "" : node.getText()}`, ); } @@ -72,7 +72,7 @@ export class PromiseNodeParser implements SubNodeParser { } private getNodeName( - node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration + node: ts.InterfaceDeclaration | ts.ClassDeclaration | ts.ExpressionWithTypeArguments | ts.TypeAliasDeclaration, ) { if (ts.isExpressionWithTypeArguments(node)) { if (!ts.isHeritageClause(node.parent)) {