-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Update user test baselines #23181
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
Update user test baselines #23181
Conversation
node_modules/clone/clone.js(180,16): error TS2403: Subsequent variable declarations must have the same type. Variable 'i' must be of type 'string', but here has type 'number'. | ||
node_modules/clone/clone.js(180,23): error TS2365: Operator '<' cannot be applied to types 'string' and 'number'. | ||
node_modules/clone/clone.js(180,52): error TS2356: An arithmetic operand must be of type 'any', 'number' or an enum type. | ||
node_modules/clone/clone.js(165,16): error TS2551: Property 'getOwnPropertySymbols' does not exist on type 'ObjectConstructor'. Did you mean 'getOwnPropertyNames'? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the --lib
we are using to compile these files? we should be using --lib esnext
, and dom
when appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not specified, which I think means es5+dom. I'll make the change in a separate PR, though, to keep it separate from this update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks better than before, a few comments
node_modules/follow-redirects/index.js(208,10): error TS2339: Property '_isRedirect' does not exist on type '{ _options: any; _redirectCount: number | undefined; _requestBodyLength: number | undefined; _req...'. | ||
node_modules/follow-redirects/index.js(213,33): error TS2339: Property '_currentUrl' does not exist on type '{ _options: any; _redirectCount: number | undefined; _requestBodyLength: number | undefined; _req...'. | ||
node_modules/follow-redirects/index.js(214,10): error TS2339: Property 'emit' does not exist on type '{ _options: any; _redirectCount: number | undefined; _requestBodyLength: number | undefined; _req...'. | ||
node_modules/follow-redirects/index.js(214,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. | ||
node_modules/follow-redirects/index.js(243,26): error TS2339: Property 'assign' does not exist on type 'ObjectConstructor'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like another instance of the library not being right.
node_modules/webpack/lib/Compiler.js(365,7): error TS2339: Property 'includes' does not exist on type 'string[]'. | ||
node_modules/webpack/lib/Compiler.js(433,32): error TS2554: Expected 0-1 arguments, but got 2. | ||
node_modules/webpack/lib/Compiler.js(445,33): error TS2304: Cannot find name 'Set'. | ||
node_modules/webpack/lib/Compilation.js(240,26): error TS2304: Cannot find name 'Map'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib issue too
node_modules/webpack/lib/Module.js(143,6): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. | ||
node_modules/webpack/lib/Module.js(151,16): error TS2339: Property 'from' does not exist on type 'ArrayConstructor'. | ||
node_modules/webpack/lib/Module.js(155,23): error TS2339: Property 'size' does not exist on type 'SortableSet'. | ||
node_modules/webpack/lib/Module.js(158,6): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not use --target es3
really..
@@ -0,0 +1,7 @@ | |||
Exit Code: 1 | |||
Standard output: | |||
node_modules/@types/passport-facebook/index.d.ts(50,31): error TS2689: Cannot extend an interface 'passport.Strategy'. Did you mean 'implements'? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like a DefinitllyTyped issue.. can we track the source down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed 3 days ago: DefinitelyTyped/DefinitelyTyped#24682
Sounds like my npm installs are stale, or I need to re-run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, it went away after re-running.
@@ -0,0 +1,20 @@ | |||
Exit Code: 1 | |||
Standard output: | |||
node_modules/antd/lib/badge/ScrollNumber.d.ts(28,81): error TS2344: Type '{ className: string; style: { transition: string | boolean; msTransform: string; WebkitTransform:...' does not satisfy the constraint 'HTMLAttributes<HTMLElement>'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that caused by a change in the source, or a change on our side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guessing without investigating: added constraint in react.d.ts. I'll check it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, here it is, from 3 days ago: DefinitelyTyped/DefinitelyTyped#24688
I'll fix the lib problems in a separate PR since it will make it easier to figure out whether my changes are removing errors. |
There are a ton of changes in here. By far the biggest by count of lines is improved names for anonymous classes and functions.