Daniel Wilson-Thomas

Results 9 comments of Daniel Wilson-Thomas

This would be really helpful in normal usage as well. I see added https://github.com/ds300/patch-package/issues/37 to fix a bug with cached node_modules and partially applied patches. A sequence of multiple patches...

:+1:

I might be able to take on implementing this. Given the last comment about implementation was years ago, should I assume it's no longer relevant?

The Dockerfile's both run `yarn`, but they should probably run `yarn install` to install rimraf and such which are listed as dev dependencies.

AB1, AB2, CD2, CD3, E1, E2. I'm aiming for a decoder that outputs values that are more specific or equal to the types defined. So, AB1 matches the type exactly....

Right, they aren't really distinct in Javascript, but they are distinct in subtle ways within Typescript.

I didn't know about the `in` operator. I don't think I've ever used it. That's consistent with Typescript's semantics as well. My point is that you notice things like that...

@mulias This says that "enums are real objects at runtime" https://www.typescriptlang.org/docs/handbook/enums.html, so I would expect `enumDecoder(Directions)` to work. Is that a recent change?

Ah, I thought it might have been an issue with const enums. You could have two decoders. One that takes an enum object and one that takes enum members. I...