2016-08-25 18:21:31 +02:00
|
|
|
// @module: commonjs
|
|
|
|
// @moduleResolution: node
|
|
|
|
// @allowJs: true
|
|
|
|
// @traceResolution: true
|
|
|
|
// @noEmit: true
|
|
|
|
|
2016-08-25 20:02:26 +02:00
|
|
|
// @filename: /tsconfig.json
|
2016-08-25 18:21:31 +02:00
|
|
|
{
|
|
|
|
"compileOnSave": true,
|
|
|
|
"compilerOptions": {
|
|
|
|
"module": "commonjs",
|
|
|
|
"moduleResolution": "node",
|
|
|
|
"outDir": "bin"
|
2019-06-25 00:29:02 +02:00
|
|
|
}
|
2016-08-25 18:21:31 +02:00
|
|
|
}
|
2016-08-25 20:02:26 +02:00
|
|
|
// @filename: /node_modules/shortid/node_modules/z/index.js
|
2016-08-25 18:21:31 +02:00
|
|
|
// z will not be found because maxNodeModulesJsDepth: 0
|
|
|
|
module.exports = { z: 'no' };
|
|
|
|
|
2016-08-25 20:02:26 +02:00
|
|
|
// @filename: /node_modules/shortid/index.js
|
2016-08-25 18:21:31 +02:00
|
|
|
var z = require('z');
|
|
|
|
var y = { y: 'foo' };
|
|
|
|
module.exports = y;
|
|
|
|
|
2016-08-25 20:02:26 +02:00
|
|
|
// @filename: /typings/index.d.ts
|
2016-08-25 18:21:31 +02:00
|
|
|
declare module "shortid" {
|
|
|
|
export var x: number;
|
|
|
|
}
|
|
|
|
|
2016-08-25 20:02:26 +02:00
|
|
|
// @filename: /index.ts
|
|
|
|
/// <reference path="/typings/index.d.ts" />
|
2016-08-25 18:21:31 +02:00
|
|
|
import * as foo from "shortid";
|
|
|
|
foo.x // found in index.d.ts
|
2016-08-25 19:25:17 +02:00
|
|
|
foo.y // ignored from shortid/index.js
|
2016-08-25 18:21:31 +02:00
|
|
|
|