function
NewTypedGlobal
Create a generated-model handle for one global slug.
Arguments
| Argument | Type | Description |
|---|---|---|
slug | string | The slug value. |
Returns
The declared result.
TypedGlobal[Document, Update, Draft]Full signature
func NewTypedGlobal[Document, Update, Draft any](
slug string,
) TypedGlobal[Document, Update, Draft]Related types
TypedGlobalGenerated typed definition for one global.