Skip to content

2.6.27

Compare
Choose a tag to compare
@tylim88 tylim88 released this 13 Oct 18:35
· 50 commits to main since this release

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