Installation
npm install --save @types/winston-dynamodb
Summary
This package contains type definitions for winston-dynamodb (https://github.com/inspiredjw/winston-dynamodb).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/winston-dynamodb.
index.d.ts
import * as winston from "winston";
import { TransportInstance } from "winston";
export interface DynamoDBTransportOptions {
useEnvironment?: boolean | undefined;
accessKeyId?: string | undefined;
secretAccessKey?: string | undefined;
region?: string | undefined;
tableName: string;
level: string;
dynamoDoc?: boolean | undefined;
}
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;
}
}
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/winston
Credits
These definitions were written by nickiannone.