[typescript] Typescript: TS7006: Parameter 'xxx' implicitly has an 'any' type