TypeScript
TypeScript language is supported. When creating a strategy, still set it as a JavaScript strategy, then write // @ts-check at the beginning of the strategy code or click the "TypeScript" button in the upper right corner of the strategy editing area to switch to TypeScript. The platform will automatically recognize the code as TypeScript and provide corresponding compilation and type checking support:
-
Type Safety: TypeScript's static type checking helps you discover potential errors while writing code, improving code quality.
-
Code Auto-completion: TypeScript's type system enables you to find required properties and methods faster when writing code, improving development efficiency.
-
Clearer Code Structure: Using TypeScript, you can better organize and maintain code, making it easy to read and understand.
-
Powerful Object-Oriented Programming Features: TypeScript provides powerful object-oriented programming features such as interfaces, classes, and generics, helping you write more robust and reusable strategy code.