Skip to content

Latest commit

 

History

History
54 lines (26 loc) · 638 Bytes

files.readpolicy.md

File metadata and controls

54 lines (26 loc) · 638 Bytes

Home > @cerbos/files > readPolicy

readPolicy() function

Read a policy from a YAML or JSON file.

Signature:

export declare function readPolicy(path: string): Promise<Policy>;

Parameters

Parameter

Type

Description

path

string

the path to the policy file.

Returns:

Promise<Policy>