Home > @cerbos/files > readPolicy
Read a policy from a YAML or JSON file.
Signature:
export declare function readPolicy(path: string): Promise<Policy>;
Parameter |
Type |
Description |
---|---|---|
path |
string |
the path to the policy file. |
Returns:
Promise<Policy>