Hi! I am working on an application for Jira, using forge with costume-ui, ReactJs. How can I use typescript in my application? Can’t find documentation or information about this issue
We recently open sourced an Atlassian Labs app that uses Typescript and Custom UI. It might be helpful: GitHub - atlassian-labs/issue-status-helper: An example Forge application for automatically managing Jira issue status
6 Likes
From what I see, to use TypeScript you change the file extension to .ts
and it just works, right?
@YvesIvadHABIMANA Either .ts
or .tsx
(depending on if you’re using JSX) … you might also want to include other files like:
- A config file, see issue-status-helper/static/admin-page/tsconfig.json at main · atlassian-labs/issue-status-helper · GitHub
- Type declarations if you’re importing images, see issue-status-helper/static/admin-page/index.d.ts at main · atlassian-labs/issue-status-helper · GitHub
1 Like