TypeScript Version: Version 2.9.0-dev.20180426
overload, global:
Code
// foo.ts
import 'jasmine';
declare global {
function expect(element: HTMLElement): void;
}
// index.d.ts
declare function expect(spy: Function): void;
// tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"baseUrl": ".",
"paths": {
"jasmine": [
"./index"
]
},
"strict": true
}
}
Expected behavior:
No errors.
Actual behavior:
"Overload signatures must all be exported or non-exported."
Playground Link:
N/A
Related Issues:
https://github.com/Microsoft/TypeScript/issues/16430
Add @rkirov
Thanks for the quick fix!
Most helpful comment
Thanks for the quick fix!