[Typescript]False Positive for typescript:S3699 when using declare function

Hello @fpascutti,

Thank you for your valuable feedback, and a warm welcome to the Sonar community!

You’re absolutely correct in highlighting that the rule is triggering false positives on TypeScript ambient functions. I’ve created this ticket to address this issue promptly.

Additionally, I really appreciate your effort in reviewing the rule implementation and suggesting a fix accordingly. We will take your fix proposal into account.

Cheers,
Yassin