hipthrusts - v1.2.0
    Preparing search index...

    Function roleCheckersOnRoleKey

    • Type Parameters

      • TRoleKey extends string

      Parameters

      Returns {
          oneOfRolesIsOneOf(
              roles: string[],
          ): (principal: Record<TRoleKey, string[]>) => boolean;
          roleIsOneOf(
              roles: string[],
          ): (principal: Record<TRoleKey, string>) => boolean | 0;
      }