Home > @rushstack/heft > HeftConfiguration > tryLoadProjectConfigurationFileAsync
HeftConfiguration.tryLoadProjectConfigurationFileAsync() method
Attempts to load a riggable project configuration file using asynchronous I/O.
Signature:
tryLoadProjectConfigurationFileAsync<TConfigFile>(options: IProjectConfigurationFileSpecification<TConfigFile>, terminal: ITerminal): Promise<TConfigFile | undefined>;
Parameters
Parameter | Type | Description |
|---|---|---|
options | IProjectConfigurationFileSpecification<TConfigFile> | The options for the configuration file loader from |
terminal | The terminal to log messages during configuration file loading. |
Returns:
Promise<TConfigFile | undefined>
A promise that resolves to the configuration file, or undefined if it could not be loaded.