#Is there a way to define a Record that accepts a any string key, BUT something passed from a generic

5 messages · Page 1 of 1 (latest)

wanton scarab
#

I tried doing something like type A<TStr extends string> = Exclude<string, TStr> but here i just have still a very wide definition. is there a way to do this?

weary folio
#

no

#

!:gh-negated-types

surreal scarabBOT
wanton scarab
#

Oh what a pitty. Maybe I can try to look for mapped types and, somehow get the new key and if it’s in the intersection not allow it?