Thanks for hooks,Is very nice ! But when I try to introduce this TS file into the project, TS throws the following exception 