19 lines
417 B
TypeScript
19 lines
417 B
TypeScript
|
// @allowJs: true
|
||
|
// @checkJs: true
|
||
|
// @target: es5
|
||
|
// @outDir: tests/cases/conformance/jsdoc/declarations/out
|
||
|
// @declaration: true
|
||
|
// @filename: node_modules/@types/node/index.d.ts
|
||
|
declare module "fs" {
|
||
|
export class Something {}
|
||
|
}
|
||
|
// @filename: index.js
|
||
|
/// <reference types="node" />
|
||
|
|
||
|
const Something = require("fs").Something;
|
||
|
|
||
|
const thing = new Something();
|
||
|
|
||
|
module.exports = {
|
||
|
thing
|
||
|
};
|