Question · Vibe coding with Claude Code course · Module 2: A Next.js project with Claude Code
Quiz: Interface in TypeScript
What is an interface used for in TypeScript?
Answer options
- It starts the Next.js development server
- It defines the shape (structure) of an object, e.g. its fields and their types
- It installs npm packages
- It adds CSS styles to a component
Show the answer
Correct answer:
- It defines the shape (structure) of an object, e.g. its fields and their types