Write a Profile type with a read-only id, an optional bio, and any number of named links.
id and name are strings, and id can't be reassigned. bio is a string that can be left out. links maps any link name to a URL string. A misspelled or missing property should be a type error.
type Profile = {}; // const ada: Profile = { id: "u1", name: "Ada", links: { github: "https://github.com/ada" } };// ada.id = "u2"; // should be a type errorThe answer
Write it yourself first. Then compare it with a reference solution and the checks it passes.
Checking your sign-in…