SpiceQA
Questions
Tags
Users
Badges
discriminated-union
84 Questions
Newest
Active
Unanswered
Frequent
More
Score
View
Card
Compact
Typescript - narrowing a type union from function return types
user_13171255
0
•
asked Feb 22, 2022
3
1
682
type-narrowing
typescript
discriminated-union
type-inference
Better egonomics for TypeScript union-narrowing typeguard function
user_3124288
0
•
asked Feb 9, 2022
5
1
182
typescript-generics
typescript
discriminated-union
types
Json, Jackson: polymorphism of one field, based on the value of other field
user_2142728
0
•
asked Feb 4, 2022
1
1
25
discriminated-union
jackson
polymorphism
json
generics
Canonical way to represent idea of sum type of records that all extend a "base" record
user_1713450
0
•
asked Jan 31, 2022
2
1
53
sealed-class
purescript
discriminated-union
functional-programming
Using discriminating unions in react props with a default
user_4311572
0
•
asked Dec 18, 2021
2
2
188
typescript-types
react-typescript
typescript
reactjs
discriminated-union
"Switch" function over discriminated union members in Typescript
user_1067587
0
•
asked Dec 2, 2021
2
1
464
typescript
discriminated-union
F# - Cleanest way to Extract/Unwrap an Expected Case's Typed Value from Discriminated Union?
user_6334439
0
•
asked Dec 1, 2021
2
2
84
discriminated-union
f#
F# FS0001: This Expression was expected to have type figure, but her has type int*int
user_6852499
0
•
asked Nov 27, 2021
4
1
122
discriminated-union
pattern-matching
f#
How can I enforce different typescript interface classes based on a type condition in React?
user_13096448
0
•
asked Oct 22, 2021
2
1
170
union-types
typescript
reactjs
discriminated-union
Does TypeScript support a true XOR union between object types?
user_275792
0
•
asked Oct 12, 2021
2
1
374
typescript
discriminated-union
Prev
Prev
1
2
3
(current)
4
5
Next
Next
Hot Questions