toip.tools

function · Browser and Node

narrows

Whether child narrows parent, with the bundled policy. Empty means it does.

@toip-tools/mandatesView source
TypeScriptImport
import { narrows } from "@toip-tools/mandates";

Declaration

TypeScriptSignature
narrows(parent: Mandate, child: Mandate): Promise<Reason[]>;

Parameters

parentrequired
Mandate
childrequired
Mandate

Returns

Promise<Reason[]>