add type hint on repository