Skip to content

Commit 854d34b

Browse files
committed
fix: reolve typeof operator return string
1 parent 1465322 commit 854d34b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/resolver.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1778,6 +1778,9 @@ export class Resolver extends DiagnosticEmitter {
17781778
}
17791779
return null;
17801780
}
1781+
case Token.TYPEOF: {
1782+
return this.program.stringInstance.type;
1783+
}
17811784
default: assert(false);
17821785
}
17831786
return null;

0 commit comments

Comments
 (0)