type script in action