Comparing version 0.0.4 to 0.0.5
@@ -76,3 +76,3 @@ /// <reference types="node" /> | ||
on(type: "detach", callback: (terminal: TaskTerminal) => void): void; | ||
abstract render(): string; | ||
abstract render(status: "pending" | "done"): string; | ||
} | ||
@@ -79,0 +79,0 @@ export declare class TaskTerminal { |
@@ -208,3 +208,3 @@ "use strict"; | ||
requestLayout() { | ||
const string = this.view.render(); | ||
const string = this.view.render("pending"); | ||
const clearPrefix = this.text ? (0, utils_1.clear)(this.text, this.stdout.columns) : ""; | ||
@@ -215,5 +215,6 @@ this.text = string; | ||
clear() { | ||
const string = this.view.render("done"); | ||
this.view.detach(this); | ||
const clearPrefix = this.text ? (0, utils_1.clear)(this.text, this.stdout.columns) : ""; | ||
this.stdout.write(`${clearPrefix}`); | ||
this.stdout.write(`${clearPrefix}${string}`); | ||
} | ||
@@ -220,0 +221,0 @@ } |
{ | ||
"name": "hanji", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Designless command line user interface builder", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15265
388