Complete the code to use the satisfies operator to check the type of the object.
const user = { name: "Alice", age: 30 } [1] { name: string; age: number };Complete the code to ensure the object matches the interface using the satisfies operator.
interface Product { id: number; name: string; }
const item = { id: 1, name: "Book" } [1] Product;Fix the error in the code by using the correct operator to check the type compatibility.
const config = { debug: true, version: "1.0" } [1] { debug: boolean; version: string };Fill both blanks to create a typed object that satisfies the interface without changing its type.
interface User { id: number; username: string; }
const newUser = [1] [2] User;Fill all three blanks to create a constant object that satisfies the type and access its property safely.
type Settings = { theme: string; notifications: boolean };
const settings = [1] [2] Settings;
const theme = settings.[3];