chore: use CatalogBuilder as return type

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-08-25 11:38:25 +02:00
parent f9ad79cedc
commit 7b718aae29
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ export class CatalogBuilder {
getDefaultProcessors(): CatalogProcessor[];
replaceEntityPolicies(policies: EntityPolicy[]): CatalogBuilder;
replaceProcessors(processors: CatalogProcessor[]): CatalogBuilder;
setAllowedLocationTypes(allowedLocationTypes: string[]): this;
setAllowedLocationTypes(allowedLocationTypes: string[]): CatalogBuilder;
setEntityDataParser(parser: CatalogProcessorParser): CatalogBuilder;
setFieldFormatValidators(validators: Partial<Validators>): CatalogBuilder;
setLocationAnalyzer(locationAnalyzer: LocationAnalyzer): CatalogBuilder;
@@ -370,7 +370,7 @@ export class CatalogBuilder {
*
* @param allowedLocationTypes - the allowed location types
*/
setAllowedLocationTypes(allowedLocationTypes: string[]) {
setAllowedLocationTypes(allowedLocationTypes: string[]): CatalogBuilder {
this.allowedLocationType = allowedLocationTypes;
return this;
}