typescript class inherit interface