Malcolm Handley

Results 10 issues of Malcolm Handley

As https://github.com/emmanueltouzery/prelude-ts/blob/736e40c9dcea6a3179daf1db52152159e0ab7236/src/Comparison.ts#L82, says, areEqual is null-safe. However, the signature accepts undefined, and then it crashes if the undefined is in obj (versus obj2). is there a reason that undefined isn't...

Is it intentional that preludeTsContractViolationCb (https://github.com/emmanueltouzery/prelude-ts/blob/736e40c9dcea6a3179daf1db52152159e0ab7236/src/Contract.ts#L4) throws a string instead of an exception? In my setup (with Mocha), when a test throws a string I don't get a stack trace....

That is, with this we can add the github repo as a dependency without packagining and pushing to npm. The changes are based on https://stackoverflow.com/questions/40528053/npm-install-and-build-of-forked-github-repo/57829251#57829251

When using react directly (say, from Typescript or JS), I can set an event handler that runs during the capture phase of event dispatch like this: `div({onKeyDownCapture: handler})` Slinky seems...

I'd like to set an onBeforeInput handler on a content-editable div that I have. Since slinky.web.html doesn't contain an onBeforeInput subclass of Attr, I figured that I'd just make the...

It took me longer (and more help from chatgpt) than I'd like to figure out a clean way (IMO) of handling unsealed traits and other polymorphic types. I eventually hit...

I'm confused by some results that I get when merging arrays. Here's the code that I'm using: ``` var jsod = require("jsod"); var a = ["0", "1", "2", "3"]; var...

The comment on Escaping.validAttrName says that an attribute can start with an underscore but `startCharValid` doesn't allow an underscore. I think that the fix is as simple as `|| sc...

When I use GenIdea in a mill/scalajs project and then build in intellij, it works fine if build.sc uses scala 2.13.14 but for every version of scala 3 that I...

Using v2.7.6, when I run: ``` import * as chrono from 'chrono-node'; var now = new Date(); console.log("Reference date", now) console.log("2 days ago", chrono.parseDate('2 days ago', now, {})); console.log("2 weeks...