Setu-TS
    Preparing search index...

    Type Alias AnonymousPolicyCheck<T>

    AnonymousPolicyCheck: (
        principal: IPrincipal | null,
        target: T | undefined,
    ) => boolean | Promise<boolean>

    A check for an ability that opted in to anonymous principals: it is called with null when no principal is signed in.

    Type Parameters

    • T

      The target type the policy is written for

    Type Declaration

      • (
            principal: IPrincipal | null,
            target: T | undefined,
        ): boolean | Promise<boolean>
      • Parameters

        Returns boolean | Promise<boolean>

    0.9.0