Pedro Augusto de Paula Barbosa

Results 264 comments of Pedro Augusto de Paula Barbosa

By the way, I think #3345 should be reopened as well.

> programmatically generating tests would solve the same problems Hmm, this looks interesting, can you give me a link where I can learn more? Or show an example?

Hello, just wanted to point out that @glebec's workaround works for me in mocha v8.2.1: ```js afterEach(function(){ try { yourAssertion(); } catch (err) { this.test.error(err); } }) ``` However, mocha's...

I prefer `Passthrough`, it's easier to search for than `Same` or `Identity`, and this particular utility isn't exactly intuitive, so I think it should be easily searchable (because the truly...

By the way, recently I needed a different version of `Required` that turned `{ foo?: string }` into `{ foo: string | undefined }` instead of `{ foo: string }`...

If I understand the proposal correctly, it seems you want to have a utility type that can take your `Email` and `Phone` types as input and produce the `ContactInfoToSave` as...

> [...] but the server need something like [...] Why does the server need that? Why can't the server use `Email | Phone`?

@xenoterracide Hello! Please make an effort to create a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) in the future. I did it for you: [TS Playground](https://www.typescriptlang.org/play?ts=4.0.5#code/C4TwDgpgBAogHgYwmYAeA8gIwFYQcAFXAgBooBpCEAZyMigjmAgDsATaqAayoHsAzKFlz46EAHxQAvFAAKASwRcMOPIWJl4CADYBXNhFQ8QAoatEaKVWsXHiA3AChHoegGUIwAEoQAjrvkAJwg2VAAhAENqCDEyShoGJlYObj5BSOixaVSTdKiY22lHAEgAelK5RS4obF1qYChgAAtoY05miIaI4KgWXgbg-yCQqH5A3gBbRpaoTHzG4gA6Eq1kNAyCyDjrSQAyEvLKpWnW62nOqGom3l1tNlnoQYDg+7HJk9n512gI9igJiI8E5TJ7DNjLYo+IYvVAKJThfKxKw0OyJZjsagHCoASUEAANsSx+BBAi8xHi0cl2jMwMEAG7yG7UMjNVijXiBBgRBBNHJkOrQVlQeREkkvBb0YwQkXEzmE2Vk4glYoAfigAG8ANrxLIinKmeVikJiAC6AC4oIbScbiNqqKaAL7Ki0sCB0klORyHAC0vr9-oDgaDgec3ygADFeLxsurHFBPoEVRaAIxOeNzABeSagACYnA7PWGwroAOaoAiUjERqOSGQebx+Z4hVCrFDlsgAcjmgQ74k7md7TiAA)

By the way, interestingly, the compiler error message changes (for worse, IMO) from TS 3.9 to TS 4.0. You can quickly see this by changing the version in the playground.