Change type hint to interface