Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MandarineSecurity.Auth.PermissionValidator

import type { MandarineSecurity } from "https://raw.githubusercontent.com/mandarineorg/mandarinets/master/mod.ts"; 

const { PermissionValidator } = MandarineSecurity.Auth;

Permission validators are functions executed during the evaluation of a security expression. PermissionValidator is how Mandarine interprets a security expression

type PermissionValidator = (request: any, authentication: any) => (...parameters: Array<any>) => boolean;

§Type

§
(request: any, authentication: any) => (...parameters: Array<any>) => boolean
[src]