added typescript example