-
**TypeScript Version:** 2.2.2 and the one used here https://www.typescriptlang.org/play/ (latest i suppose)
**Code**
```ts
function FieldToName(name: keyof TData | { name: keyof TData }): …
-
## Search Terms
+ non-union
+ generic
+ type param
+ one of
## Suggestion
A way to annotate that a generic type param **will not** accept union types.
I don't have the syntax or keywo…
-
**TypeScript Version:** 3.3.0-dev.20190117
**Search Terms:** generic type inference, union types
**Code**
```ts
function f1(cb: (a: A1, b: B1) => void) {
f2(cb); // I expect no …
-
// TODO - substitute faux enums for union type
I don't quite know what this means, but it seems like something to work on...
Elucidation?
-
# Problem description
Rune has rudimentary support for extending enums, e.g.,
```
enum ISOCurrencyCodeEnum:
AFN
EUR
GBP
USD
...
enum CurrencyCodeEnum extends ISOC…
-
**Describe what's wrong**
> When running a sql with join, the colunms from two steams may be different in type, one may be nullable while the other not. When aggregating the two stream, it will m…
-
# Description
Currently, I am trying to define a GraphQL schema that includes a field capable of representing different types of objects. Here's an example schema:
```graphql
type One {
id: …
-
# Bug Report
### 🔎 Search Terms
narrowing union type
### 🕗 Version & Regression Information
- This changed between versions 4.1.5 and 4.2.3
### ⏯ Playground Link
[Playgroun…
-
### 🔎 Search Terms
generic type variable intersection union order
### 🕗 Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries ab…
rotu updated
9 months ago
-
consider this type signature:
```rbs
class Test
type union_of_records = { a: Integer } | { b: String }
def f2: (union_of_records x) -> (Integer | String)
end
```
if we would like to d…
tlubz updated
9 months ago