mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
12 lines
371 B
JavaScript
12 lines
371 B
JavaScript
// Test implicit declare function (function without 'declare' keyword in ambient context)
|
|
declare namespace ImplicitFunctions {
|
|
// Simple implicit declare functions
|
|
function greet(name: string): string;
|
|
function add(a: number, b: number): number;
|
|
|
|
// Explicit declare function still works
|
|
declare function explicitHelper(): void;
|
|
}
|
|
|
|
export {ImplicitFunctions};
|