Typescript Set Add Function In Event