When I create a new app as a product trigger, then I get a index.jsx that looks like:
export async function run(event, context) {
console.log('Hello World!');
}
I can rename the index.jsx to tsx that the file is treated as Typescript file, but where do I find the definitions for èvent
and context
?
From the Atlassian staff I got following answer:
You find it here: https://community.developer.atlassian.com/t/where-do-i-find-type-definitions-for-a-forge-trigger-function/51199/2