Skip to content

fix: handle undefined paths in getModifiedTime #865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mogzol
Copy link

@mogzol mogzol commented May 21, 2025

Fixes #855

When building projects in tsc build mode (with typescript.build set to true), some paths passed to getModifiedTime will be undefined. Previously, this would cause an error and prevent type-checking (see #855). With these changes, the modified time will just be returned as undefined in such cases, which allows type checking to complete successfully.

When building projects in `tsc` build mode (with `typescript.build` set
to `true`), some paths passed to `getModifiedTime` will be `undefined`.
Previously, this would cause an error and prevent type-checking (see
TypeStrong#855).
With these changes, the modified time will just be returned as
`undefined` in such cases, which allows type checking to complete
successfully.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type Checking Not Works with TypeScript 5.6+ and build: true Option
1 participant