diff --git a/dist/index.d.ts b/dist/index.d.ts index 4bb0f09..630b34e 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -1 +1,11 @@ -export declare let standardExport: string; +export declare type TLogLevel = "error" | "warn" | "info" | "verbose" | "debug" | "silly"; +export interface ILogContext { + zone?: string; + company?: string; + companyunit?: string; + containerName?: string; + environment: TEnvironment; + runtime: TRuntime; +} +export declare type TEnvironment = "local" | "test" | "staging" | "production"; +export declare type TRuntime = "node" | "browser"; diff --git a/dist/index.js b/dist/index.js index 2318aff..6c208dc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,3 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.standardExport = 'Hi there! :) This is an exported string'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFXLFFBQUEsY0FBYyxHQUFHLHlDQUF5QyxDQUFDIn0= \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file diff --git a/package.json b/package.json index bdbb03c..cad7810 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "author": "Lossless GmbH", "license": "MIT", "scripts": { - "test": "(npmts)", + "test": "(npmts --notest)", "format": "(gitzone format)" }, "devDependencies": { diff --git a/test/test.ts b/test/test.ts index 608ddbd..71e19a5 100644 --- a/test/test.ts +++ b/test/test.ts @@ -2,7 +2,7 @@ import { expect, tap } from 'tapbundle' import * as commonlog from '../ts/index' tap.test('first test', async () => { - console.log(commonlog.standardExport) + console.log('Since this is an interface package, there is nothing to test dynamically :)') }) tap.start() diff --git a/ts/index.ts b/ts/index.ts index 3cd848e..49b3437 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1 +1,19 @@ -export let standardExport = 'Hi there! :) This is an exported string'; +export type TLogLevel = + | "error" + | "warn" + | "info" + | "verbose" + | "debug" + | "silly"; + +export interface ILogContext { + zone?: string; + company?: string; + companyunit?: string; + containerName?: string; + environment: TEnvironment; + runtime: TRuntime; +} + +export type TEnvironment = "local" | "test" | "staging" | "production"; +export type TRuntime = "node" | "browser";