Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
solaris007 committed Nov 29, 2023
1 parent 5a25585 commit ff120b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 7 additions & 3 deletions packages/spacecat-shared-dynamo/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { DynamoDB } from '@aws-sdk/client-dynamodb';
import { DynamoDBDocumentClient, QueryCommandInput } from '@aws-sdk/lib-dynamodb';

export declare interface Logger {
error(message: string, ...args: any[]): void;
info(message: string, ...args: any[]): void;
error(message: string, ...args: unknown[]): void;
info(message: string, ...args: unknown[]): void;
}

export declare interface DynamoDbKey {
Expand All @@ -30,4 +30,8 @@ export declare interface DynamoDbClient {
removeItem(tableName: string, key: DynamoDbKey): Promise<{ message: string }>;
}

export function createClient(logger: Logger, dbClient?: DynamoDB, docClient?: DynamoDBDocumentClient): DynamoDbClient;
export function createClient(
logger: Logger,
dbClient?: DynamoDB,
docClient?: DynamoDBDocumentClient
): DynamoDbClient;
4 changes: 1 addition & 3 deletions packages/spacecat-shared-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
"dependencies": {
"@adobe/fetch": "4.1.1",
"@adobe/helix-shared-wrap": "2.0.0",
"@adobe/helix-universal": "4.4.1",
"aws4": "1.12.0"
},
"optionalDependencies": {
"@adobe/helix-universal": "4.4.1"
},
"devDependencies": {}
}

0 comments on commit ff120b4

Please sign in to comment.