From 756d5062d471a0b3cbce0679dd7a2a91a73f75a6 Mon Sep 17 00:00:00 2001 From: Hexagon Date: Mon, 18 Mar 2024 01:25:53 +0100 Subject: [PATCH] Export types --- deno.json | 2 +- mod.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deno.json b/deno.json index 8c10f86..5f1010c 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,6 @@ { "name": "@cross/log", - "version": "0.9.0", + "version": "0.9.1", "exports": { ".": "./mod.ts" }, diff --git a/mod.ts b/mod.ts index 28edc59..6369705 100644 --- a/mod.ts +++ b/mod.ts @@ -2,9 +2,9 @@ import { appendFile } from "node:fs/promises"; import { Colors } from "@cross/utils"; import { deepMerge } from "@cross/deepmerge"; -type LoggerFileFormat = "txt" | "json"; +export type LoggerFileFormat = "txt" | "json"; -interface LoggerOptions { +export interface LoggerOptions { file?: { enabled: boolean; stdoutPath?: string; @@ -17,7 +17,7 @@ interface LoggerOptions { logLevel?: LogLevel; } -enum LogLevel { +export enum LogLevel { Debug = "DEBUG", Info = "INFO", Log = "LOG",