From c299984dd4ba58513c151e92e9c6ccbb050e4315 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 7 Nov 2018 18:39:30 +0100 Subject: [PATCH] fix(log types): add finance and compliance as log types --- ts/index.ts | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/ts/index.ts b/ts/index.ts index bb7421a..26c3412 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,7 +1,30 @@ -export type TLogType = 'log' | 'increment' | 'gauge' | 'error' | 'success'; +/** + * the different available log types + */ +export type TLogType = + | 'log' + | 'increment' + | 'gauge' + | 'error' + | 'success' + | 'value' + | 'finance' + | 'compliance'; + +/** + * the available log levels + */ export type TLogLevel = 'silly' | 'info' | 'debug' | 'note' | 'ok' | 'success' | 'warn' | 'error'; + +/** + * the available environments + */ export type TEnvironment = 'local' | 'test' | 'staging' | 'production'; -export type TRuntime = 'node' | 'browser'; + +/** + * the available runtimes + */ +export type TRuntime = 'node' | 'chrome' | 'rust'; export interface ILogContext { company?: string;