mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-30 10:35:22 +08:00
37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
// Type definitions for winston-dynamodb
|
|
// Project: https://github.com/inspiredjw/winston-dynamodb
|
|
// Definitions by: nickiannone <http://github.com/nickiannone>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as winston from 'winston';
|
|
import { TransportInstance } from 'winston';
|
|
export interface DynamoDBTransportOptions {
|
|
useEnvironment?: boolean;
|
|
accessKeyId?: string;
|
|
secretAccessKey?: string;
|
|
region?: string;
|
|
tableName: string;
|
|
level: string;
|
|
dynamoDoc?: boolean;
|
|
}
|
|
export interface DynamoDBTransportInstance extends TransportInstance {
|
|
new (options?: DynamoDBTransportOptions): DynamoDBTransportInstance;
|
|
}
|
|
export declare class DynamoDB extends winston.Transport implements DynamoDBTransportInstance {
|
|
regions: string[];
|
|
name: string;
|
|
level: string;
|
|
db: any;
|
|
AWS: any;
|
|
region: string;
|
|
tableName: string;
|
|
dynamoDoc: boolean;
|
|
constructor(options?: DynamoDBTransportOptions);
|
|
log(level: any, msg: any, meta: any, callback: any): any;
|
|
}
|
|
declare module "winston" {
|
|
interface Transports {
|
|
DynamoDB: DynamoDB;
|
|
}
|
|
}
|