You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above conversation, there was a suggestion to modify the signature of the ReadonlyArray.groupBy function in the Effect-TS ecosystem. The initial suggestion was to change the type parameter from string to a more generic K extends string. This would allow for more flexibility in the keys used for grouping.
Later, there was a suggestion to further refine the type parameter to K extends string | symbol, which would also allow for grouping by symbols.
Additionally, it was mentioned that there is an upcoming release of Effect-TS that includes a new utility type called ReadonlyRecord.NonLiteralKey<K>, which can be used to ensure that the keys used for grouping are not literal types.
The key takeaways from this conversation are:
There is a suggestion to modify the signature of ReadonlyArray.groupBy to allow for more flexible key types.
The suggestion includes using a generic type parameter K extends string | symbol to allow for grouping by both string and symbol keys.
There is an upcoming release of Effect-TS that includes a new utility type ReadonlyRecord.NonLiteralKey<K>, which can be used to ensure non-literal key types are used for grouping.
Summary
In the above conversation, there was a suggestion to modify the signature of the
ReadonlyArray.groupBy
function in the Effect-TS ecosystem. The initial suggestion was to change the type parameter fromstring
to a more genericK extends string
. This would allow for more flexibility in the keys used for grouping.Later, there was a suggestion to further refine the type parameter to
K extends string | symbol
, which would also allow for grouping by symbols.Additionally, it was mentioned that there is an upcoming release of Effect-TS that includes a new utility type called
ReadonlyRecord.NonLiteralKey<K>
, which can be used to ensure that the keys used for grouping are not literal types.The key takeaways from this conversation are:
ReadonlyArray.groupBy
to allow for more flexible key types.K extends string | symbol
to allow for grouping by both string and symbol keys.ReadonlyRecord.NonLiteralKey<K>
, which can be used to ensure non-literal key types are used for grouping.Discord thread
https://discord.com/channels/795981131316985866/1209088003226599434
The text was updated successfully, but these errors were encountered: