Kind: Class
Source: atloria-monorepo/packages/ui-core/src/components/api-explorer/CodeSample.ts
Extends: ExplorerElement
Methods
| Method | Signature | Returns |
|---|---|---|
render | render() | void |
Properties
| Property | Type |
|---|---|
styles | any |
samples | CodeSampleData[] |
endpoint | any |
method | any |
baseUrl | any |
apiKeyValue | any |
multipartParts | BodyPart[] |
Where it refuses work
AtloriaCodeSamplestops the work with an early return whenmatch >= 0.AtloriaCodeSamplestops the work with an early return whenthis.isMultipart.
When something fails
AtloriaCodeSamplehandles 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?