Skip to content

Commit

Permalink
chore: Change to old typings for prefixes/suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
angelnext committed Mar 7, 2024
1 parent a92f1e4 commit 2007878
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rubiks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type G = {
Deno?: { noColor: boolean };
};

type Fixes = Record<string, string> | { all: string };

/**
* Class that represents a rubiks logger, each instance has it's own settings and data.
* @class
Expand All @@ -28,10 +26,10 @@ export class Rubiks {
level: string = "";

/** The prefixes map to use. */
prefixes: Fixes = { all: "" };
prefixes: Record<string, string> | { all: string } = { all: "" };

/** The suffixes map to use. */
suffixes: Fixes = { all: "" };
suffixes: Record<string, string> | { all: string } = { all: "" };

/** Is NO_COLOR enabled? */
noColor: boolean = false;
Expand Down

0 comments on commit 2007878

Please sign in to comment.