When using the framework using typescript and each lambda is in it own folders like stack/user/src/createUser/index.ts
and stack/user/src/createUser/handler.ts
, Is there a way to type the index.ts
file?
export default {
handler: 'src/createCampaignWithAds/handler.main',
events: [
{
http: {
method: 'post',
path: '/campaign/ads',
private: true,
cors: true,
}
}
]
}
How do I ad types to