Repository navigation
2.6.27
set operation throw false type error when working with mapped type where the key type is string
example meta type
type A = MetatypeCreator<{
a: Record<string, number>
},'id'>this will throw type error even though it should be correct
const b:string = "zzz"
setDoc(ref, { a: { [b]: "yyy" } })this is because keyof type { [x: string]: unknown } is string | number while keyof Record<string, number> is string
2.6.27 fixed this issue