TypeScript/tests/cases/compiler/jsdocReferenceGlobalTypeInCommonJs.ts
2018-04-03 16:10:09 -07:00

19 lines
384 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: a.js
const other = require('./other');
/** @type {Puppeteer.Keyboard} */
var ppk;
Puppeteer.connect;
// @Filename: puppet.d.ts
export as namespace Puppeteer;
export interface Keyboard {
key: string
}
export function connect(name: string): void;
// @Filename: other.d.ts
declare function f(): string;
export = f;