1interface PageInfo {
2 title: string;
3}
4
5type Page = "home" | "about" | "contact";
6
7const nav: Record<Page, PageInfo> = {
8 about: { title: "about" },
9 contact: { title: "contact" },
10 home: { title: "home" },
11};
12
13nav.about;
14// ^ = Could not get LSP result: v.a>bTry
1interface A {
2 x: string
3}
4
5interface B extends Omit<A, 'x'> {
6 x: number
7}