Is there a method to generate specific string types from existing string types with a designated prefix? It's better to acknowledge that it doesn't exist than to dwell on this concept.
type UserField = "id" | "name";
type PostField = "id" | "message" | ("author." + UserField); // Is there a way to do this?
let somePostFields: PostField[] = ["id", "message", "author.name"];