@thiagoveras/toolbelt-api-test
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,5 +0,5 @@ | ||
export default abstract class Display { | ||
export declare abstract class Display { | ||
private static dateDAO; | ||
static time(): void; | ||
static date(): void; | ||
static time(): string; | ||
static date(): string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Display = void 0; | ||
class Display { | ||
static time() { | ||
console.log(this.dateDAO.toLocaleTimeString()); | ||
return this.dateDAO.toLocaleTimeString(); | ||
} | ||
static date() { | ||
console.log(this.dateDAO.toLocaleDateString()); | ||
return this.dateDAO.toLocaleDateString(); | ||
} | ||
} | ||
exports.default = Display; | ||
exports.Display = Display; | ||
Display.dateDAO = new Date(); |
{ | ||
"name": "@thiagoveras/toolbelt-api-test", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "build/index.js", | ||
"format-lint": "yarn format && yarn lint", | ||
"watch": "yarn build-clean && yarn nodemon", | ||
"watch": "yarn build-clean && yarn tsc --watch", | ||
"build-clean": "rm -rf build", | ||
@@ -13,0 +13,0 @@ "build-incremental": "tsc --incremental", |
1567
18