Skip to content

🤖 User test baselines have changed for contextualTypingFixes #36480

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

Conversation

typescript-bot
Copy link
Collaborator

This test run was triggerd by a request on #36476
Please review the diff and merge if no changes are unexpected.
You can view the build log here.

cc @ahejlsberg

@@ -5,6 +5,9 @@ lib/ContextModule.js(465,34): error TS2341: Property 'moduleGraph' is private an
lib/ContextModule.js(767,34): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
lib/Dependency.js(139,29): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
lib/ExternalModule.js(284,54): error TS2341: Property 'moduleGraph' is private and only accessible within class 'ChunkGraph'.
lib/FileSystemInfo.js(357,4): error TS2345: Argument of type '({ type, context, path, expected }: { type: any; context: any; path: any; expected: any; }, callback: any) => void' is not assignable to parameter of type 'AsyncFunction<{ type: number; path: string; context?: string; expected?: string; }, Error>'.
Copy link
Member

@weswigham weswigham Jan 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahejlsberg this one's new to your PR, from what I can tell?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's new and it appears to be correct. According to the type annotations, the queue method expects an argument of type AsyncFunction<T, E> which is equivalent to (callback: (err?: E, result?: T) => void) => void. But the arrow function provided expects an object in the first parameter. Pretty sure the type annotations are wrong somehow, but certainly we're correct to report an error.

@weswigham weswigham closed this Jan 31, 2020
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.

3 participants