Skip to content

Commit 79e1fb0

Browse files
committed
Removed unused imports and unused comments
1 parent ef0ca60 commit 79e1fb0

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

packages/batch/src/BatchProcessor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { StandardSchemaV1 } from '@standard-schema/spec';
22
import type {
3-
AttributeValue,
43
DynamoDBRecord,
54
KinesisStreamRecord,
65
SQSRecord,

packages/batch/tests/unit/BatchProcessor.test.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import {
2-
DynamoDBStreamChangeRecordBase,
3-
DynamoDBStreamRecord,
4-
} from '@aws-lambda-powertools/parser/schemas/dynamodb';
51
import context from '@aws-lambda-powertools/testing-utils/context';
6-
import type { Context, DynamoDBRecord, SQSRecord } from 'aws-lambda';
2+
import type { Context, SQSRecord } from 'aws-lambda';
73
import * as v from 'valibot';
84
import { afterAll, beforeEach, describe, expect, it, vi } from 'vitest';
95
import { z } from 'zod';
@@ -508,8 +504,7 @@ describe('Class: AsyncBatchProcessor', () => {
508504
'@aws-lambda-powertools/parser/schemas/sqs'
509505
);
510506
const extendedSchema = SqsRecordSchema.extend({
511-
// biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema
512-
body: JSONStringified(customSchema as any),
507+
body: JSONStringified(customSchema),
513508
});
514509
const customObject1 = {
515510
name: 'test-1',
@@ -563,8 +558,7 @@ describe('Class: AsyncBatchProcessor', () => {
563558
'@aws-lambda-powertools/parser/schemas/sqs'
564559
);
565560
const extendedSchema = SqsRecordSchema.extend({
566-
// biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema
567-
body: JSONStringified(customSchema as any),
561+
body: JSONStringified(customSchema),
568562
});
569563
const customObject1 = {
570564
name: 'test-1',
@@ -613,8 +607,7 @@ describe('Class: AsyncBatchProcessor', () => {
613607
'@aws-lambda-powertools/parser/schemas/sqs'
614608
);
615609
const extendedSchema = SqsRecordSchema.extend({
616-
// biome-ignore lint/suspicious/noExplicitAny: at least for now, we need to broaden the type because the JSONstringified helper method is not typed with StandardSchemaV1 but with ZodSchema
617-
body: JSONStringified(customSchema as any),
610+
body: JSONStringified(customSchema),
618611
});
619612
const customObject1 = {
620613
name: 'test-1',

0 commit comments

Comments
 (0)