diff --git a/lib/index.ts b/lib/index.ts index c1b4b45..f9dbf63 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -48,7 +48,7 @@ export const dictionary = { export default function createEvent( eventType: T, - body: typeof dictionary[T], + body: Partial, ): typeof dictionary[T] { const event = dictionary[eventType]; let generatedEvent = {}; diff --git a/package.json b/package.json index b98ba20..09a4364 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metronome-industries/event-mocks", - "version": "1.1.1", + "version": "1.2.0", "description": "Event Mocks is a simple library designed to generate simple AWS events for testing and automation purposes.", "main": "dist/index.js", "scripts": {