Skip to content

Remove duplicate RequestOptions imports in access service #83

Description

@Lakes41

Difficulty: Hard

Type: Bug

Summary

Fix duplicate RequestOptions imports in the access service and add a lint rule or typecheck guard to prevent similar import conflicts.

Current Behaviour

src/access/access.service.ts imports RequestOptions from both ../http/http.types and ../types/common. This can produce TypeScript duplicate identifier errors or hide which request option contract the service should use.

Expected Behaviour

The access service should import one canonical request options type, and the project should catch duplicate imports during CI.

Suggested Implementation

Decide which module owns the public request options type, update the access service import, and add an ESLint or TypeScript check that prevents duplicate imports and unused imports.

Files or Areas Likely Affected

  • src/access/access.service.ts
  • src/http/http.types.ts
  • src/types/common.ts
  • eslint.config.*
  • package.json

Acceptance Criteria

  • AccessService imports RequestOptions from one canonical module
  • Typecheck passes without duplicate identifier errors
  • Linting catches duplicate imports where possible
  • Other services use the same request options type
  • Tests or CI commands verify the corrected import structure
  • No public method behaviour changes are introduced

Additional Notes

This is intentionally scoped to type hygiene and build stability.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial CampaignCampaign: Official Campaign

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions