Skip to content

Commit

Permalink
Merge pull request #519 from Quramy/fix_ts.4
Browse files Browse the repository at this point in the history
fix: Check interface method
  • Loading branch information
Quramy authored Mar 28, 2023
2 parents b0403ff + 92e2477 commit 126b845
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/language-service-proxy-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export class LanguageServiceProxyBuilder {
public build(): ts.LanguageService {
const ret = this.info.languageService;
this.wrappers.forEach(({ name, wrapper }) => {
if (!this.info.languageService[name as keyof ts.LanguageService]) return;
(ret as any)[name] = wrapper(this.info.languageService[name as keyof ts.LanguageService], this.info);
});
return ret;
Expand Down

0 comments on commit 126b845

Please sign in to comment.