Skip to content

Commit

Permalink
fix: get type of type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
plantain-00 committed Sep 15, 2020
1 parent 64d5178 commit 313b88e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,9 +656,7 @@ export class Parser {
|| reference.typeName.text === 'ReturnType'
|| reference.typeName.text === 'DeepReturnType')) {
const typeArgument = reference.typeArguments[0]
if (ts.isTypeReferenceNode(typeArgument)) {
return this.getTypeOfTypeReference(typeArgument, sourceFile)
}
return this.getType(typeArgument, sourceFile)
} else if (reference.typeName.text === 'Pick') {
const type = this.getTypeOfPick(reference.typeName, reference.typeArguments, sourceFile)
if (type) {
Expand Down

0 comments on commit 313b88e

Please sign in to comment.