-
It would be deisrable to handle union types, at least in some simple scenarios, like sealed class hierarchies are supported.
Some examples:
```Scala
Seq[Int|String|Date]
```
```Scala
Option[In…
-
# Bug report
**Description**:
I'm encountering an issue with the generated TypeScript types when using Supabase. For the past 4 days, the types generated by the command `supabase gen types typ…
0xtz updated
10 hours ago
-
Mypy generates no error, even though the code is unsafe:
```py
class C[T]:
a: T
def f(x: C[int] | C[str]) -> None:
x.a = 1 # No error
c = C[str]()
f(c)
print(c.a, type(c.a)) # 1,…
-
### Reproducible in vscode.dev or in VS Code Desktop?
- [x] Not reproducible in [vscode.dev](https://vscode.dev) or VS Code Desktop
### Reproducible in the monaco editor playground?
- [ ] Not repro…
-
## 🐛 Bug report
No way of selecting a subtype from a union type.
When adding an argument which is a union of two types there seems to be no direct way of specifying the desired type to be p…
-
**TypeScript**
```ts
type X1 = (input: string) => Promise;
type X2 = (input: string) => void | Promise;
```
**FSharp**
```fs
module rec Glutinum
open Fable.Core
open Fable.Core.JsIn…
-
It would be very helpful to use Union type for the module-self.
In my project, I have a `Commentable` concern module used across multiple ActiveRecord models. This Commentable module uses methods c…
-
### Describe the bug
In JS, we need to generate union as type alias, however, tcgc doesn't provide union types as the references types, therefore, we need to extract the union types from the sdkPacka…
-
Removing a `pub` field from a `union` type is clearly a major breaking change. But how about _adding_ a new field? I chatted with @joshlf about this, and the current plan is like this:
Any public A…
-
### Bug Report
MyPy incorrectly asses the type of list comprehensions built from union types. I can't see a way to make this pass typing checks. This and it even affects `TypeVar`. My only option i…