@@ -45,13 +45,13 @@ interface IExtractorConfigTokenContext {
4545}
4646
4747/**
48- * Options for {@link ExtractorConfig.parseConfigObject }.
48+ * Options for {@link ExtractorConfig.prepare }.
4949 *
5050 * @public
5151 */
52- export interface IExtractorConfigParseConfigObjectOptions {
52+ export interface IExtractorConfigPrepareOptions {
5353 /**
54- * An already prepared configuration object as returned by {@link ExtractorConfig.loadJsonFileWithInheritance }.
54+ * An already prepared configuration object as returned by {@link ExtractorConfig.loadFile }.
5555 */
5656 configObject : IConfigFile ;
5757
@@ -230,15 +230,15 @@ export class ExtractorConfig {
230230 * along with the API Extractor defaults.
231231 * The result is parsed and returned.
232232 */
233- public static loadAndParseConfig ( configJsonFilePath : string ) : ExtractorConfig {
233+ public static loadFileAndPrepare ( configJsonFilePath : string ) : ExtractorConfig {
234234 const configObjectFullPath : string = path . resolve ( configJsonFilePath ) ;
235- const configObject : IConfigFile = ExtractorConfig . loadJsonFileWithInheritance ( configObjectFullPath ) ;
235+ const configObject : IConfigFile = ExtractorConfig . loadFile ( configObjectFullPath ) ;
236236
237237 const packageJsonLookup : PackageJsonLookup = new PackageJsonLookup ( ) ;
238238 const packageJsonFullPath : string | undefined = packageJsonLookup . tryGetPackageJsonFilePathFor (
239239 configObjectFullPath ) ;
240240
241- const extractorConfig : ExtractorConfig = ExtractorConfig . parseConfigObject ( {
241+ const extractorConfig : ExtractorConfig = ExtractorConfig . prepare ( {
242242 configObject,
243243 configObjectFullPath,
244244 packageJsonFullPath
@@ -248,16 +248,16 @@ export class ExtractorConfig {
248248 }
249249
250250 /**
251- * Performs only the first half of {@link ExtractorConfig.loadAndParseConfig }, providing an opportunity to
252- * modify the object before it is pssed to {@link ExtractorConfig.parseConfigObject }.
251+ * Performs only the first half of {@link ExtractorConfig.loadFileAndPrepare }, providing an opportunity to
252+ * modify the object before it is pssed to {@link ExtractorConfig.prepare }.
253253 *
254254 * @remarks
255255 *
256256 * Loads the api-extractor.json config file from the specified file path.
257257 * If the "extends" field is present, the referenced file(s) will be merged,
258258 * along with the API Extractor defaults.
259259 */
260- public static loadJsonFileWithInheritance ( jsonFilePath : string ) : IConfigFile {
260+ public static loadFile ( jsonFilePath : string ) : IConfigFile {
261261 // Set to keep track of config files which have been processed.
262262 const visitedPaths : Set < string > = new Set < string > ( ) ;
263263
@@ -320,7 +320,7 @@ export class ExtractorConfig {
320320 * Parses the api-extractor.json configuration provided as a runtime object, rather than reading it from disk.
321321 * This allows configurations to be customized or constructed programmatically.
322322 */
323- public static parseConfigObject ( options : IExtractorConfigParseConfigObjectOptions ) : ExtractorConfig {
323+ public static prepare ( options : IExtractorConfigPrepareOptions ) : ExtractorConfig {
324324 const filenameForErrors : string = options . configObjectFullPath || 'the configuration object' ;
325325 const configObject : Partial < IConfigFile > = options . configObject ;
326326
0 commit comments