add Typescript snippet