Explore Library
Code QuizIntermediate

UMD Global Declaration Syntax

Spot the mistake in a UMD library's global namespace declaration.

Codetypescript
// types for a UMD library loaded via <script>
declare function greet(name: string): string;

export = greet;
export namespace greet;

What is the bug in this UMD declaration file?