question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug after update 0.31.1 -> 0.32.0

See original GitHub issue

Describe the bug types seems to be broken

Screen Shot 2020-12-04 at 9 28 14 AM

To Reproduce

import * as Yup from "yup";

export const validationSchema = Yup.object().shape({
  email: Yup.string(),
});

Expected behavior No types error

Additional context i was using 0.31.1 with @types/yup but 0.32.0 does not need them

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:23 (6 by maintainers)

github_iconTop GitHub Comments

17reactions
TrejGuncommented, Dec 4, 2020

@types/yup is removed but why should I set strictFunctionTypes:false for the rest of my app because of one lib

for now it seems like a breaking change which should come in major update

5reactions
jquensecommented, Dec 4, 2020

As an addendum, 0.32.1 fixes (inadvertently) the most limiting case that needed strictFunctionTypes, object shapes:

object({
  name: string()
})

should now work fine with strict on, there are a few other cases that still don’t, namely some concat() usages, but I suspect those are easier to work around with casts in the meantime.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release notes - Tribby3d
This document contains release notes and change log for Tribby3d. Every release includes bug fixes and/or new features, which is listed here.
Read more >
Falco 0.31.1
Today we announce the release of Falco 0.31.1 ! Novelties. Let's review some of the highlights of the new release. New features.
Read more >
News and release notes for MICOM — version 0.32.2
Fixed a bug where minimal_medium would maximize with OSQP instead of minimize. 0.31.6#. More adjustments to OSQP. 0.31.5#. Fix a ...
Read more >
Release Notes | Mimestream
Have a bug report, feature request, or comment? ... Future updates to Mimestream will only be available on macOS 11 or newer. ......
Read more >
Eventlet 0.33.0 documentation
0.32.0 ¶. greendns: compatibility with dnspython v2 ... 0.31.1¶. ssl: py3.6 using client certificates raised ValueError: check_hostname needs server_hostname ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found