add ILogDestination

This commit is contained in:
Philipp Kunz 2018-03-01 00:32:21 +01:00
parent 3fa605e5bf
commit 0f521becfb
2 changed files with 14 additions and 0 deletions

6
dist/index.d.ts vendored
View File

@ -9,3 +9,9 @@ export interface ILogContext {
} }
export declare type TEnvironment = "local" | "test" | "staging" | "production"; export declare type TEnvironment = "local" | "test" | "staging" | "production";
export declare type TRuntime = "node" | "browser"; export declare type TRuntime = "node" | "browser";
export interface IHandleLogFunc {
(logObject: any): void;
}
export interface ILogDestination {
handleLog: IHandleLogFunc;
}

View File

@ -17,3 +17,11 @@ export interface ILogContext {
export type TEnvironment = "local" | "test" | "staging" | "production"; export type TEnvironment = "local" | "test" | "staging" | "production";
export type TRuntime = "node" | "browser"; export type TRuntime = "node" | "browser";
export interface IHandleLogFunc {
(logObject): void
}
export interface ILogDestination {
handleLog: IHandleLogFunc
}