Implement ts resource