Skip to content
HomePagesHomePages template kit

visibilityForScope

The catalog.template.visibility value this scope publishes as — the scope CLASS only.

The catalog.template.visibility value this scope publishes as — the scope CLASS only. Which orgs hold an org-scoped template lives in its grant set (orgsForScope) and never in this string, which is what keeps the template’s row identity stable while its audience moves.

Import from @homepages/template-kit.

function visibilityForScope(scope: TemplateScope): "global" | "org"
Name Type Required Description
scope TemplateScope required

"global" | "org"