-
```js
// @flow
declare function g1(): 'a' | 'b';
function f1(): number {
const r = g1();
if (r === 'a') return 1;
if (r === 1) return 2; // false negative (maybe)
if (r === 'bla…
-
In the context of Polymorphism there are cases where the discriminator could have multiple values pointing to the same object
```
CommunicationChannel:
type: object
oneOf:
-…
-
Should we translate `typedef`s as `newtype`s or `type`s?
E.g.
```c
typedef struct foo_s { ... } foo_t;
```
as
```haskell
data Foo_s = ...
type Foo_t = Foo_s
```
or
```haskell
d…
-
I had an idea for a new extension method that I started using in my projects
After sign-in task, I create a collection of claims. Usually this collection ends with the list of the roles, the user has…
-
# Bug Report
I am not sure this is intentional or not.
### 🔎 Search Terms
TS2322 generic union
### 🕗 Version & Regression Information
4.5.4
### ⏯ Playground Link
https://www.typ…
-
We have use case using graphql interfaces and union types, please help me with to integrate with ent generate models when union types in graphql schema.
Example:
We have a notification table that c…
-
Consider next example:
```
interface A{
f:string;
set_f(val:string) : void;
get_f() : string;
}
interface B{
f:number;
set_f(val:number) : void;
get_f() : number;
}
let n:nu…
-
``` js
/** @constructor @template T */
function EventType(){}
/**
* @param {string|!EventType} a
* @param {!EventType} b
* @return {boolean}
*/
function compare(a, b) {
return a === b;
}
```
`…
SLaks updated
8 years ago
-
https://github.com/KotlinIsland/basedtyping/blob/997af522c978e0a5254cfcfe0ab3070219f432ab/tests/test_is_subform.py#L21
```python
from typing import Union
from basedtyping import issubform
…
-
### Version
3.8.2
### Summary
I have set the `extend interface Node @typePolicy(keyFields: "id")`.
And when I build, the following error occurs.
`Key Field(s) '[id]' are not queried on X2 at Op…