Explore Library
Code QuizIntermediate

Ambient Class Shape

Recognizing that declare class describes a shape without implementations.

Codetypescript
declare class HttpClient {
  baseUrl: string = "";
  get(url: string): Promise<Response> {
    return fetch(this.baseUrl + url);
  }
}

What is the bug in this ambient class?