mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
20 lines
448 B
TypeScript
20 lines
448 B
TypeScript
// @checkJs: true
|
|
// @allowJS: true
|
|
// @noEmit: true
|
|
// @Filename: node.d.ts
|
|
declare function require(name: string): any;
|
|
declare var exports: any;
|
|
declare var module: { exports: any };
|
|
// @Filename: semver.js
|
|
/// <reference path='node.d.ts' />
|
|
exports = module.exports = C
|
|
exports.f = n => n + 1
|
|
function C() {
|
|
this.p = 1
|
|
}
|
|
// @filename: index.js
|
|
/// <reference path='node.d.ts' />
|
|
const C = require("./semver")
|
|
var two = C.f(1)
|
|
var c = new C
|