Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter 'context' implicitly has an 'any' type.ts(7006) In Forge

Rosalin kandapan
February 10, 2026
Hi,
Getting below error.
I created a helper class to reuse code so, in method parameter i added context and request Jira (to fetch details from API).
Parameter 'context' implicitly has an 'any' type's
(7006)
(parameter) context: any
  • The Forge view context object containing extension data and field information

@Param context — The Forge view context object containing extension data and field information

Screenshot 2026-02-11 062334.png

1 answer

1 vote
Peter_DevSamurai
Atlassian Partner
February 10, 2026

Hi @Rosalin kandapan ,

This error happened because Typescript doesnt know the type of context & requestJira-> So it falls back to any. In Forge, you should import and use the proper types instead of leaving them implicit; and TypeScript is running in strict mode (default)

CleanShot 2026-02-11 at 13.49.21@2x.png

Or you can use your own interface

CleanShot 2026-02-11 at 13.48.02@2x.png

You can try the below docs for further information:
- Forge TyepScript types

- ViewContext

- requestJira (Forge bridge)

I hope everything works out well for you!

Best regards,

Peter

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events