mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
407 B
TypeScript
20 lines
407 B
TypeScript
//// [tests/cases/compiler/globalFunctionAugmentationOverload.ts] ////
|
|
|
|
//// [mod.d.ts]
|
|
declare function expect(spy: Function): void;
|
|
declare module "mod" {
|
|
class mod {}
|
|
export = mod;
|
|
}
|
|
//// [mine.ts]
|
|
import "mod";
|
|
|
|
declare global {
|
|
function expect(element: string): void;
|
|
}
|
|
|
|
//// [mine.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
require("mod");
|