UNPKG

graplix

Version:

Authorization framework for implementing Relation-based Access Control (ReBAC) with the Resolver (Inspired by [GraphQL](https://graphql.org))

10 lines (8 loc) 282 B
import type { BaseEntityTypeMap } from "./BaseEntityTypeMap"; import type { ValueOf } from "./utils"; export type GraplixIdentifier<EntityTypeMap extends BaseEntityTypeMap> = ( entity: ValueOf<EntityTypeMap>, ) => { type: Extract<keyof EntityTypeMap, string>; id: string; };