Convert the current code to Typescript could help to solve some problems with type definition
Convert the current code to Typescript could help to solve some problems with type definition