Files
DefinitelyTyped/types/winston-dynamodb/index.d.ts
2017-03-24 14:27:52 -07:00

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;
}
}