Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed May 15, 2024
1 parent c78f38c commit 8f80837
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/NodeParser/PromiseNodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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);

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

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

Expand All @@ -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)) {
Expand Down

0 comments on commit 8f80837

Please sign in to comment.