Hello, not sure what an elegant solution would be, but I'm finding that I cannot do mapValues(group(...)) because mapValues demands a Record<Key, Value> whereas group() returns a Partial<Record<Key, Value>>. maybe the mapValues() function type signature can be broadened a bit to allow for partial records?
Hi @osdiab, this issue has a fix available in radashi@beta today (see #24). An official release is pending. We'd love to have you participate in the discussion and/or development of the radashi-org/radashi fork. 😄
Hello, not sure what an elegant solution would be, but I'm finding that I cannot do
mapValues(group(...))
becausemapValues
demands aRecord<Key, Value>
whereasgroup()
returns aPartial<Record<Key, Value>>
. maybe themapValues()
function type signature can be broadened a bit to allow for partial records?https://www.typescriptlang.org/play?noUncheckedIndexedAccess=true&allowUnreachableCode=true&allowUnusedLabels=true&noUnusedLocals=true&noUnusedParameters=true&exactOptionalPropertyTypes=true&noFallthroughCasesInSwitch=true&noImplicitOverride=true&noPropertyAccessFromIndexSignature=true&useUnknownInCatchVariables=true&suppressImplicitAnyIndexErrors=true&allowSyntheticDefaultImports=true#code/JYWwDg9gTgLgBAbzgcyhArmANHEBDMANTwBt0BTAZzgF84AzNEOAIijwBM9KALFgbgBQgmAE8w5OMTKSAvKzws4AH1YAjJapYBjFoO0QAdpXgA3UhUoAuKRfIBtALpx5T-UZNwwabVUrkOaUsXXAIgqgAKVAwwCPMZShxTFwA+OFMASiS7VLgAAwAJYDgAEgR4iho8jP4gA