type
TypedGlobal
Generated typed definition for one global.
Properties
| Property | Type | Description |
|---|---|---|
Slug | func() string | Returns the global’s public API address. |
With | func(*LocalAPI) BoundTypedGlobal[Document, | Binds the definition to a running LocalAPI. |
Full signature
type TypedGlobal[Document, Update, Draft any] struct {
// contains filtered or unexported fields
}Methods
TypedGlobal.Slug()Slug returns the global's public API address.
TypedGlobal.With()With binds a generated global definition to a running application.