Skip to content

fix(docs): organize exports into namespaces for better typedocs #1269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: SDK-5700-platform-agnostic-error
Choose a base branch
from

Conversation

subhankarmaiti
Copy link
Contributor

This PR restructures the library's exports to significantly improve the generated TypeDoc documentation.

Currently, the documentation presents a flat list of all exports, making it difficult for developers to navigate. To address this, we've organized all public types, classes, and functions into distinct namespaces:

  • Classes: Contains all exported classes like Auth0, AuthError, etc.
  • Interface: Contains all TypeScript interfaces and type aliases.
  • Hooks: Contains the React hooks, useAuth0 and Auth0Provider.
  • Enums: Contains all enums like LocalAuthenticationStrategy.

This creates a clear, hierarchical structure in the generated documentation, enhancing readability and ease of use. The typedoc.json configuration has been updated to reflect these new entry points.

Fixes #1267

…cture

chore(docs): update typedoc entry points and configuration for better documentation
refactor(types): remove unused Auth0Error class
- Updated the Auth0 export to include TimeoutError from the index.
- Introduced a new enums.ts file to export SafariViewControllerPresentationStyle and local authentication types.
- Modified index.ts to include the new Enums export.
@subhankarmaiti subhankarmaiti changed the title (docs)fix: organize exports into namespaces for better typedocs fix(docs): organize exports into namespaces for better typedocs Aug 11, 2025
@subhankarmaiti subhankarmaiti marked this pull request as ready for review August 21, 2025 08:34
@subhankarmaiti subhankarmaiti requested a review from a team as a code owner August 21, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants