资源加载中... loading...

TypeScript

It supports TypeScript language, still set it to JavaScript strategy when we create strategies, then we write // @ts-check at the beginning of the strategy code or click the button TypeScript in the top right corner of the strategy editing area to switch to TypeScript. The platform will recognize the code as TypeScript automatically and provide you with corresponding compilation and type checking support for:

  • Type safety: TypeScript’s static type checking function can help you find potential errors when writing code and improve code quality.
  • Automatic code completion: TypeScript’s type system makes it faster to find the attributes and methods you need when writing code, improving development efficiency.
  • Clearer code structure: With TypeScript, you can better organize and maintain your code, making it easy to read and understand.
  • Powerful object-oriented programming features: TypeScript provides powerful object-oriented programming features, such as interfaces, classes, generics and so on, helping you write more robust and reusable strategy code.
JavaScript Python