-
**TypeScript Version:** 3.9.2 & 4.0.0-beta
**Code**
```ts
type A = {
foo: number
}
type B = {
[key in T]?: number
}
type C = A & B
const f = (prop: T, value: number): C =>…
-
```ts
interface A {
a: number;
}
interface B {
b: number;
}
export type MyType = A | B;
```
allows
```
const c: MyType = {
a: 12,
b: 13
};
```
but we generate
…
-
**Problem**
The spec, as it is currently, is ambiguous when defining how a union type should be handled when used to fulfill an interface.
> An object field type is a valid sub‐type if it is an O…
-
Testworks has code in do-check-condition like this:
```
let condition-class :: subclass() = f();
```
If f() returns `type-union(c1, c2)` where c1 and c2 are both subclasses of `` Testworks gets a ru…
-
[@gavinking] If I write a tuple type like `[Integer,Integer,Integer]`, then hovering it in the IDE I will see `Integer|Integer|Integer|Nothing[]`. That's because when I'm building these tuple types I'…
-
I thought, that `String|Integer` will fulfill spec condition
> Each initializer parameter of an annotation type must have one of the following types:
> - Integer, Float, Character, or String
but I g…
-
Currently object and array `definitions` are defined using union types, to enable recursive types. For example:
```elm
type Article
= Article ArticleRecord
```
I'm pondering if it would m…
-
1. "Row polymorphism" means that a record type `{ a : Text, b : Bool }` is a subtype of `{ a : Text}`. Any function taking a record of type `{ a : Text }` can be directly applied to an argument of typ…
-
### Describe the bug
When sending a value from the jsii-kernel back to the caller (
-
Originally we were thinking about locations and then the ownership of those locations. My thinking has evolved to "organization" there are many more relationships beyond ownership. How should we show …