Commit b6a4737b authored by wildfirecode's avatar wildfirecode

m

parent 19b150fc
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var Foo_1 = require("./Foo");
var Bar = /** @class */ (function () { var Bar = /** @class */ (function () {
function Bar() { function Bar() {
console.log('im bar');
} }
Bar.prototype.createFoo = function () {
return new Foo_1.default();
};
return Bar; return Bar;
}()); }());
exports.default = Bar; exports.default = Bar;
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var Foo = /** @class */ (function () { var Foo = /** @class */ (function () {
function Foo() { function Foo() {
console.log('im foo');
} }
Foo.prototype.log = function () {
console.log('im foo');
};
return Foo; return Foo;
}()); }());
exports.default = Foo; exports.default = Foo;
"use strict"; "use strict";
// export default function (num:number) {
// return Math.round(num)
// }
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
var Foo_1 = require("./Foo");
exports.Foo = Foo_1.default;
var Bar_1 = require("./Bar"); var Bar_1 = require("./Bar");
exports.Bar = Bar_1.default; exports.Bar = Bar_1.default;
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "myround", "name": "myround",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "index.js", "main": "./bin/index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
......
{ {
"compilerOptions": { "compilerOptions": {
"outDir": "bin",
"target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment