diff --git a/.eslintignore b/.eslintignore index 1083980c..f6fbb297 100644 --- a/.eslintignore +++ b/.eslintignore @@ -4,3 +4,4 @@ coverage/ dist.js scratch/ src/http/get-index +types/ diff --git a/types/events.d.ts b/types/events.d.ts index 62a0f1ba..c900699f 100644 --- a/types/events.d.ts +++ b/types/events.d.ts @@ -1,8 +1,22 @@ -import { SNS, SQS } from "aws-sdk"; import { Callback } from "./util"; // Turn off automatic exporting -export { }; +export {}; + +// import { PublishResponse } from "@aws-sdk/client-sns"; // @3.503.1 +interface PublishResponse { + MessageId?: string; + SequenceNumber?: string; +} + +// import { SendMessageResult } from "@aws-sdk/client-sqs"; // @3.503.1 +interface SendMessageResult { + MD5OfMessageBody?: string; + MD5OfMessageAttributes?: string; + MD5OfMessageSystemAttributes?: string; + MessageId?: string; + SequenceNumber?: string; +} interface Params { name: string; @@ -26,5 +40,5 @@ interface EventsOrQueues { ): LambdaFunction; } -export type ArcEvents = EventsOrQueues; -export type ArcQueues = EventsOrQueues; +export type ArcEvents = EventsOrQueues; +export type ArcQueues = EventsOrQueues; diff --git a/types/http.d.ts b/types/http.d.ts index f3f2f3a2..473f085d 100644 --- a/types/http.d.ts +++ b/types/http.d.ts @@ -2,7 +2,7 @@ import { APIGatewayProxyEvent, Context, APIGatewayProxyResult, -} from "aws-lambda"; +} from "aws-lambda"; // from @types/aws-lambda import { Callback } from "./util"; // Turn off automatic exporting diff --git a/types/index.d.ts b/types/index.d.ts index 88ddfe6b..21131dca 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,18 +1,18 @@ /// +import { ArcEvents, ArcQueues } from "./events"; import { ArcHTTP, HttpHandler, HttpAsyncHandler } from "./http"; import { ArcStatic } from "./static"; -import { ArcWebSocket } from "./ws"; -import { ArcEvents, ArcQueues } from "./events"; import { ArcTables } from "./tables"; +import { ArcWebSocket } from "./ws"; export type { HttpHandler, HttpAsyncHandler }; export type ArcServices = () => Promise>; -export const http: ArcHTTP; -export const static: ArcStatic; -export const ws: ArcWebSocket; -export const services: ArcServices; export const events: ArcEvents; +export const http: ArcHTTP; export const queues: ArcQueues; +export const services: ArcServices; +export const static: ArcStatic; export const tables: ArcTables; +export const ws: ArcWebSocket;