Skip to content

AtloriaCodeSample

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/CodeSample.ts

Extends: ExplorerElement

Methods

MethodSignatureReturns
renderrender()void

Properties

PropertyType
stylesany
samplesCodeSampleData[]
endpointany
methodany
baseUrlany
apiKeyValueany
multipartPartsBodyPart[]

Where it refuses work

  • AtloriaCodeSample stops the work with an early return when match >= 0.
  • AtloriaCodeSample stops the work with an early return when this.isMultipart.

When something fails

  • AtloriaCodeSample 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