File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { getKey } from "../Utils/nodeKey.js";
12
12
export class PromiseNodeParser implements SubNodeParser {
13
13
public constructor (
14
14
protected typeChecker : ts . TypeChecker ,
15
- protected childNodeParser : NodeParser
15
+ protected childNodeParser : NodeParser ,
16
16
) { }
17
17
18
18
public supportsNode ( node : ts . Node ) : boolean {
@@ -42,7 +42,7 @@ export class PromiseNodeParser implements SubNodeParser {
42
42
43
43
public createType (
44
44
node : ts . InterfaceDeclaration | ts . ClassDeclaration | ts . ExpressionWithTypeArguments | ts . TypeAliasDeclaration ,
45
- context : Context
45
+ context : Context ,
46
46
) : BaseType {
47
47
const type = this . typeChecker . getTypeAtLocation ( node ) ;
48
48
@@ -53,7 +53,7 @@ export class PromiseNodeParser implements SubNodeParser {
53
53
54
54
if ( ! awaitedNode ) {
55
55
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 ( ) } ` ,
57
57
) ;
58
58
}
59
59
@@ -72,7 +72,7 @@ export class PromiseNodeParser implements SubNodeParser {
72
72
}
73
73
74
74
private getNodeName (
75
- node : ts . InterfaceDeclaration | ts . ClassDeclaration | ts . ExpressionWithTypeArguments | ts . TypeAliasDeclaration
75
+ node : ts . InterfaceDeclaration | ts . ClassDeclaration | ts . ExpressionWithTypeArguments | ts . TypeAliasDeclaration ,
76
76
) {
77
77
if ( ts . isExpressionWithTypeArguments ( node ) ) {
78
78
if ( ! ts . isHeritageClause ( node . parent ) ) {
You can’t perform that action at this time.
0 commit comments