3. Interfaces & Test Data Contracts

Defining Data Contracts with Interfaces

interface TestEnvironment {
  baseUrl: string;
  port: number;
  ssl: boolean;
}

Task

  • Complete the `TestEnvironment` interface by declaring types for `baseUrl`, `port`, and `ssl`.
💡Common doubts
Did you like the problem?
Lesson 3 of 12
TypeScript
Loading code editor…
Next