-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
[NewErrors] 5.5.0-dev.20240414 vs 5.4.5 #58189
Comments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bitwarden/clients has this setup // Base class
protected filterProvider(type: TwoFactorProviderType) {
return type !== TwoFactorProviderType.OrganizationDuo;
}
// Derived class
protected filterProvider(type: TwoFactorProviderType) {
return type === TwoFactorProviderType.OrganizationDuo;
} So type predicate inference broke the class subtyping. They just need to add |
sucrase got broken by #57847, it looks like this state.tokens[initialTokenIndex].jsxRole = JSXRole.NoChildren;
// this initialization gets CFA'd now
let numExplicitChildren = 0;
const isSelfClosing = jsxParseOpeningElement(initialTokenIndex);
if (!isSelfClosing) {
nextJSXExprToken();
while (true) {
switch (state.type) {
case tt.jsxTagStart:
nextJSXTagToken();
if (match(tt.slash)) {
nextJSXTagToken();
jsxParseClosingElement();
// Key after prop spread takes precedence over number of children,
// since it means we switch to createElement, which doesn't care
// about number of children.
if (state.tokens[initialTokenIndex].jsxRole !== JSXRole.KeyAfterPropSpread) {
// ^^^
// apppears impossible now |
Chocobozzz/Peertube has a similar thing: for (const name of objectKeysTyped(formToBuild)) {
formErrors[name] = ''
const field = formToBuild[name]
if (this.isRecursiveField(field)) {
this.updateFormGroup(
// FIXME: typings
(form as any)[name],
formErrors[name] as FormReactiveErrors, Though it looks like a legit error in this case unless |
framer/motion does a compound coercion which we now detect: target[borderLabel] = Math.max(
mixNumber(
asNumber(followRadius),
asNumber(leadRadius),
progress
),
0
)
if (percent.test(leadRadius) || percent.test(followRadius)) {
target[borderLabel] += "%"
} |
The following errors were reported by 5.5.0-dev.20240414, but not by 5.4.5
Pipeline that generated this bug
Logs for the pipeline run
File that generated the pipeline
This run considered 800 popular TS repos from GH (after skipping the top 0).
Successfully analyzed 499 of 800 visited repos
Investigation Status
suppressImplicitAnyIndexErrors
removedts-expect-error
on a bug 😎any
to now be narrowed toFunction
keyofStringsOnly
removedsuppressImplicitAnyIndexErrors
removedsuppressImplicitAnyIndexErrors
removedts-expect-error
, seems goodimportsNotUsedAsValues
removedimportsNotUsedAsValues
removedThe text was updated successfully, but these errors were encountered: