Kind: Class
Source: atloria-monorepo/apps/cli/src/generators/api-explorer-page.generator.ts
API Explorer Page Generator
Methods
| Method | Signature | Returns |
|---|---|---|
generate | generate(entities: Entity[], _relationships: Relationship[]) | Promise<void> |
Where it refuses work
APIExplorerPageGeneratorstops the work with an early return whenapiEndpoints.length === 0.APIExplorerPageGeneratorstops the work with an early return when!decorators || !Array.isArray(decorators).
When something fails
APIExplorerPageGeneratorhandles failure in 2 places: it turns it into a return value in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
Was this page helpful?