Skip to content

pickView

pickView(views, roles, resource?): ViewModel | undefined

Defined in: packages/schema/src/access/pick-view.ts:7

Picks the view for a user: the first role-specific view whose roles intersect the user’s, otherwise the default view (one without roles). With resource, only that resource’s views count.

readonly ViewModel[]

readonly string[]

string

ViewModel | undefined