6af764c560
* Add compiler option to enable declaration sourcemaps * Transparent goto definition for sourcemapped declaration files * Post-rebase touchups * Rename API methods * Fix lints * Fix typo in name XD * Log sourcemap decode errors * Share the cache more, but also invalidate it more * Remove todo * Enable mapping on go to implementation as well * Allow fourslash to test declaration maps mroe easily * more test * Handle sourceRoot * Add tests documenting current behavior with other sourcemapping flags * Ignore inline options for declaration file maps, simplify dispatch in emitter * Change program diagnostic * Fix nit * Use charCodeAt * Rename internal methods + veriables * Avoid filter * span -> position * Use character codes * Dont parse our sourcemap names until we need to start using them * zero-index parsed positions * Handle sourceMappingURL comments, including base64 encoded ones * Unittest b64 decoder, make mroe robust to handle unicode properly * Fix lint * declarationMaps -> declarationMap * Even more feedback * USE Mroe lenient combined regexp * only match base64 characters * Fix nit
20 lines
No EOL
404 B
TypeScript
20 lines
No EOL
404 B
TypeScript
// @declaration: true
|
|
// @declarationMap: true
|
|
module m2 {
|
|
export interface connectModule {
|
|
(res, req, next): void;
|
|
}
|
|
export interface connectExport {
|
|
use: (mod: connectModule) => connectExport;
|
|
listen: (port: number) => void;
|
|
}
|
|
|
|
}
|
|
|
|
var m2: {
|
|
(): m2.connectExport;
|
|
test1: m2.connectModule;
|
|
test2(): m2.connectModule;
|
|
};
|
|
|
|
export = m2; |