Home > @microsoft/rush-lib > ApprovedPackagesConfiguration > tryLoadFromFile
ApprovedPackagesConfiguration.tryLoadFromFile() method
If the file exists, calls loadFromFile().
Signature:
tryLoadFromFile(approvedPackagesPolicyEnabled: boolean): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
approvedPackagesPolicyEnabled | boolean |
Returns:
boolean