Joe Pea

Results 958 issues of Joe Pea

Is this a bug, or did I miss a feature of the type safety? https://hegel.js.org/try#DYUwLgBAdgXBCCAnRBDAngHigVwLYCMREA+CAXggG0AGAGgmoF0AoKAOgAdsBnACwAoAjACYAzAEogA

bug

The following plain JS doesn't work: ```js function Foo(Base) { return class Foo extends Base { foo() { console.log('foo') } } } class Bar { bar() { console.log('bar') } }...

enhancement

Hello! At the moment, I am able to use `Proxy` to implement a function called [`multiple()`](https://github.com/trusktr/lowclass/blob/601c8972815db519064075f358a52efe5f3e26ac/src/multiple.ts) (with its [unit tests](https://github.com/trusktr/lowclass/blob/601c8972815db519064075f358a52efe5f3e26ac/src/multiple.test.ts)) that can be used like this: ```js import {multiple} from...

question

Since Hegel doesn't emit its own declaration files, I am curious how to publish packages. Does Hegel just read the types from the source files?

question

Maybe Hegel could check loop headers, and if the iteration variables are written properly, then it can narrow the types of array access to non-`undefined`. For example, in the code...

invalid
question

[This code](https://hegel.js.org/try#MYewdgzgLgBGCuBbCAuGBBATpghgTwB4FEAjAU0wD4YBeGAbQAYAaARmYCZmBmZgFmYBWALoAoUQDMQmGAAoANmVgBLGowDcMZUSQQAdIrABzKAAtNygNSWAlDADeomDFCRYYWnF31lY5x4AyAJh4CDIAOSRZMBtRAF9xCXgwYChlcBCwyMRotGJyTDtHf3igA) has a runtime error. It will not use the `0` value. Should Hegel force us to explicitly check undefined to avoid the runtime error?

enhancement
invalid

To allow for type refinement to be abstracted into functions: ```ts function isNumber(n: unknown): n is number { if (typeof n === 'number' && !isNaN(n)) return true return false }...

enhancement

Hi, it took me more than a couple days to reply, but I replied to issue #5. Thought I'd mention it here because I don't think we get notifications for...

Hi, I did some research, looking for an inline Worker+Blob API library. Basically, the three clear options on npmjs are `operative`, [`threadless`](https://www.npmjs.com/package/threadless), and [`paralleljs`](https://www.npmjs.com/package/paralleljs). `paralleljs` seems like something that would...