Skip to content

APIExplorerPageGenerator

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/cli/src/generators/api-explorer-page.generator.ts

API Explorer Page Generator

Methods

MethodSignatureReturns
generategenerate(entities: Entity[], _relationships: Relationship[])Promise<void>

Where it refuses work

  • APIExplorerPageGenerator stops the work with an early return when apiEndpoints.length === 0.
  • APIExplorerPageGenerator stops the work with an early return when !decorators || !Array.isArray(decorators).

When something fails

  • APIExplorerPageGenerator handles 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?

Download as PDF