add interfaces
This commit is contained in:
parent
0c27f73361
commit
f3abade76f
12
dist/index.d.ts
vendored
12
dist/index.d.ts
vendored
@ -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";
|
||||
|
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -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=
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
@ -7,7 +7,7 @@
|
||||
"author": "Lossless GmbH",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "(npmts)",
|
||||
"test": "(npmts --notest)",
|
||||
"format": "(gitzone format)"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -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()
|
||||
|
20
ts/index.ts
20
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";
|
||||
|
Loading…
Reference in New Issue
Block a user