summaryrefslogtreecommitdiff
path: root/colors/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'colors/mod.ts')
-rw-r--r--colors/mod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/colors/mod.ts b/colors/mod.ts
index 7a45905ce..d0b4bc320 100644
--- a/colors/mod.ts
+++ b/colors/mod.ts
@@ -9,7 +9,7 @@ interface Code {
let enabled = !noColor;
-export function setEnabled(value: boolean) {
+export function setEnabled(value: boolean): void {
if (noColor) {
return;
}
@@ -29,7 +29,7 @@ function code(open: number, close: number): Code {
};
}
-function run(str: string, code: Code) {
+function run(str: string, code: Code): string {
return enabled
? `${code.open}${str.replace(code.regexp, code.open)}${code.close}`
: str;