In TypeScript, the error this implicitly has type 'any' because it does not have a type annotation typically arises when:
A. Declaring a function that uses 'this' within a class without specifying its type.
B. Using arrow functions to define methods inside an ES6 class.
C. Declaring a static method that references 'this' keyword in a class.
D. Defining a global variable without explicitly assigning a type.