Skip to main content
Version: Next (2.x)

GrantConfig<Grant, Result>

GrantConfig<Grant, Result> = object

Attaches a grant to a specific object derived from the resolver result, instead of the result itself. For array results, target is invoked per entry. target must return a non-primitive value.

Type Parameters

Type Parameter

Grant extends string

Result

Properties

PropertyType

grant

Grant | Grant[]

target

(result) => unknown