Documentation
    Preparing search index...

    Function validate

    • Validates invocation arguments against a UCAN policy.

      Type Parameters

      • Args extends unknown

      Parameters

      • args: Args

        The arguments of the eventual invocation.

      • policy: Policy<Args>

        An array of policy statements.

      Returns boolean

      True if the args are valid according to the policy, false otherwise.