ulthar-framework/packages/fabric/domain/src/security/policy.ts

8 lines
202 B
TypeScript

/**
* A Policy maps permissions to which user types are allowed to perform them.
*/
export type Policy<
TUserType extends string,
TPolicyType extends string,
> = Record<TPolicyType, TUserType[]>;