method

TypedGlobal.With

With binds a generated global definition to a running application.

Arguments

ArgumentTypeDescription
local*LocalAPIThe local value.

Returns

The declared result.

BoundTypedGlobal[Document, Update, Draft]

Full signature

func (global TypedGlobal[Document, Update, Draft]) With( local *LocalAPI, ) BoundTypedGlobal[Document, Update, Draft]

Source core/typed_global.go:22

Related types

  • TypedGlobal

    Generated typed definition for one global.

  • LocalAPI

    In-process content operations that share the REST authorization and lifecycle pipeline.

  • BoundTypedGlobal

    Typed singleton methods for reads, working drafts, publication, restoration, and discard.