Explore Library
Code QuizIntermediate

Ambient Function Signature

Understanding why an ambient function must not have a body.

Codetypescript
declare function formatDate(input: Date): string {
  return input.toISOString();
}

What is the bug in this ambient function declaration?