Click in order · JavaScript and React course · Module 12: React and TypeScript

TypeScript Interface Definition

Arrange the syntax of an interface definition in TypeScript:

Items to click

  • {
  • Planet
  • interface
  • name: string;
  • }

You can check the correct answer by solving this task in the CodeWorlds game.