Skip to content

Fix getSourceFile return type#18689

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
filipesilva:fix-getSourceFile-typings
Sep 22, 2017
Merged

Fix getSourceFile return type#18689
mhegazy merged 1 commit into
microsoft:masterfrom
filipesilva:fix-getSourceFile-typings

Conversation

@filipesilva
Copy link
Copy Markdown
Contributor

Typings for CompilerHost.getSourceFile/getSourceFileByPath show return type as SourceFile, but the code shows it's actually SourceFile | undefined: https://github.com/Microsoft/TypeScript/blob/1a383ec29066b400de55426bd6fc6fdf47402563/src/compiler/program.ts#L105

@msftclas
Copy link
Copy Markdown

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@mhegazy mhegazy merged commit d0fd964 into microsoft:master Sep 22, 2017
@filipesilva filipesilva deleted the fix-getSourceFile-typings branch September 22, 2017 21:02
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants