-
It's actually hard to describe the problem in the title in couple of words. You can find [the playground here](https://hegel.js.org/try#C4TwDgpgBAkgdmArsKBeKBvAUFKAzASwgBsATALigH4AjAezuIgEM4BuHKVu4ACw…
-
Hi!
Currently I'm using TypeScript as a primary language but it lacks a predictable, complete and sound type system so this project looks very promising and I'm looking forward to the first releas…
-
```ts
const tuple: [string, number] = ["", 0];
const another = [...tuple, true] // another is unknown
```
[Playground](https://jsmonk.github.io/hegel/try#MYewdgzgLgBFCuAHANgUwFwwNrQE4EswBzAGhj…
-
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') }
}
cl…
-
Would it possible (and would it make sense) to add inference for pattern matching?
For example:
```js
function update(state, action) {
switch (action.type) {
case "INCREMENT":
re…
-
```ts
function makeTuple(x,y) { return [x,y] }
const makeTuple(1,2); // currently `Array`. Hoping for `[1, 2]`
```
I wish this was automatically inferred instead of defaulting to `Array`. Is there…
-
Typescript has a construct called `declare global { ... }` which allows you to augment globally defined interfaces.
here are two examples
```ts
declare global {
interface HTMLElementTagName…
-
```ts
class Foo {
a = 2.0
static readonly PI = 3.14
constructor(public b = 1, public c = 1.0) {}
}
```
-
The type inference doesn't seem to work when a method returns an instance of the class whose type parameter depends on the method's type parameters. E.g:
```typescript
class Functor {
map(f : T…
-
### Overview
There have been various requests to auto enroll devices with some sort of MAC filtering. Auto enrollment could mean bringing a device online ready to process workflows, or it could mea…