{
  "version": 3,
  "sources": ["../../src/aws-lambda/event-source.ts"],
  "sourcesContent": ["import { IFunction } from \"./function-base.js\";\n\nconst tag = Symbol(\"cloudy-cdk-lib.aws_lambda.IEventSource\");\n\nexport interface IEventSource<InputType, OutputType = unknown> {\n  /**\n   * This property is necessary because otherwise, TypeScript will allow\n   * interchanging between event sources of different InputType's.\n   *\n   * Adding a property with the type InputType, will forbid interchanges\n   * unless the InputType's are of the same shape.\n   */\n  readonly [tag]: InputType;\n\n  /**\n   * Called by `lambda.addEventSource` to allow the event source to bind to this\n   * function.\n   *\n   * @param target That lambda function to bind to.\n   */\n  bind(target: IFunction<InputType, OutputType>): void;\n}\n\nexport abstract class BaseEventSource<InputType, OutputType = unknown>\n  implements IEventSource<InputType>\n{\n  declare readonly [tag]: InputType;\n\n  abstract bind(target: IFunction<InputType, OutputType>): void;\n}\n"],
  "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qBAAAE,IAAA,eAAAC,EAAAH,GAEA,MAAMI,EAAM,OAAO,wCAAwC,EAqBpD,MAAeF,CAEtB,CAIA",
  "names": ["event_source_exports", "__export", "BaseEventSource", "__toCommonJS", "tag"]
}
