I'm trying to create a tooltip in IDE with all keys of a provided type. In a simplified version the implementation looks like this:
type A = {
foo: string
bar: string
baz: string
}
type KeysA = `Keys are ${keyof A}`
But KeysA
in the tooltip looks like "Keys are foo" | "Keys are bar" | "Keys are baz"
. Is this possible to create a tooltip looking like Keys are "foo" | "bar" | "baz"
using keyof A
?