I didn’t exactly understand what you’d want to have, but I feel like you’re interested in subtyping. Could you have a look at this and this and tell me if this is useful?
Vivienne
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Sub-type as Class Type parameter | 3 | 70 | February 3, 2025 | |
| List/dictionary of a type within a type? Or alternative? | 13 | 2882 | June 1, 2020 | |
| Type Record is not strict - allows subtype to be passed in | 6 | 545 | July 25, 2022 | |
| Question about accessing types which are like #(something): {value1: Nat; value2: Nat} | 3 | 542 | March 12, 2021 | |
| Reassigning object properties | 2 | 895 | January 8, 2021 |