ajuste de tipagem
This commit is contained in:
parent
1ac82cb863
commit
58bbbec925
4 changed files with 16 additions and 12 deletions
6
dist/logger.d.ts
vendored
6
dist/logger.d.ts
vendored
|
|
@ -27,12 +27,14 @@ type tipoLog = {
|
|||
[k: string]: string;
|
||||
};
|
||||
};
|
||||
type tipoLogger = (amb: {
|
||||
export type tipoLoggerLog = (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||
export type TipoLoggerSessao = (sess: tipoOpSessao) => tipoLoggerLog;
|
||||
export type tipoLogger = (amb: {
|
||||
app: string;
|
||||
eProducao: boolean;
|
||||
parametros?: {
|
||||
[k: string]: string;
|
||||
};
|
||||
}) => (sess: tipoOpSessao) => (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||
}) => TipoLoggerSessao;
|
||||
export declare const logger: tipoLogger;
|
||||
export {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue