Skip to content

Commit

Permalink
chore(typings): Remove rubiks implements in class
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnext committed Mar 5, 2024
1 parent 11f3afa commit 5812dd6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions rubiks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
import { type Modifier } from "./modifiers.ts";

interface Global {
process?: { env: Record<string, string | undefined> }
Deno?: { noColor: boolean }
process?: { env: Record<string, string | undefined> };
Deno?: { noColor: boolean };
}

/**
* Class that represents a rubiks logger, each instance has it's own settings and data.
* @class
*/
export class Rubiks implements Rubiks {
export class Rubiks {
/** The format string that will end up being used for logging. */
format: string = "%s";

Expand Down Expand Up @@ -48,7 +48,9 @@ export class Rubiks implements Rubiks {

constructor() {
const nc = (globalThis as Global).process?.env?.NO_COLOR;
if ((nc === undefined || nc === "") && !(globalThis as Global).Deno?.noColor) return;
if (
(nc === undefined || nc === "") && !(globalThis as Global).Deno?.noColor
) return;
this.noColor = true;
}

Expand Down

0 comments on commit 5812dd6

Please sign in to comment.