UNPKG

@meshwatch/backend-core

Version:

Meshwatch backend core services.

12 lines (11 loc) 323 B
interface HasUser { userId: string; } declare class Authorization { private userId; constructor(userId: string); canAccessEntity: (entity: HasUser) => boolean; cannotAccessEntity: (entity: HasUser) => boolean; static of: (userId: string) => Authorization; } export default Authorization;