typescript sample