class
AtlasClient
An asynchronous client for the fictional Atlas document API.
Properties
baseUrlstringThe configured API origin.
Methods
getDocumentasync→ Promise<Document>Fetch a document by its stable identifier.
id: string
PORTABLE METADATA · MANUAL EXAMPLE
An explicitly hand-authored compact-format example for custom converters. Not a native generator fixture and not counted among the 20 native languages.
An asynchronous client for the fictional Atlas document API.
baseUrlstringThe configured API origin.
getDocumentasync→ Promise<Document>Fetch a document by its stable identifier.
id: stringA document returned by the Atlas API.
idstringStable identifier.
titlestringHuman-readable title.
stateDocumentStatePublication state.
A React hook for loading one document.
idstringStable document identifier.
{ document?: Document; loading: boolean }The current document and loading state.
The publication state of a document.
draftpublishedarchived