externalSingletonSelector
Index
Methods
externalget
Returns a StarlightItemResponse with a single Singleton. This methods supports typing the returned Singleton by passing its data type as the generic type
<D>
.Type parameters
- D: SerializedData
The type of the returned Singleton’s
data
property.
Parameters
externalslug: string
The singleton slug.
Returns Promise<StarlightItemResponse<Singleton<D>>>
- D: SerializedData
externallist
Returns a StarlightListResponse with a list of Singletons.
Returns Promise<StarlightListResponse<Singleton<Record<string, unknown>>>>
A Selector that provide methods to list and request information on Singletons.
You can use an SingletonSelector by accessing ModelInstance.singletons.