Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private computeProperties(data: IChercheReverseData): { [key: string]: any } {
const properties = ObjectUtils.removeKeys(
data.properties,
IChercheReverseSearchSource.propertiesBlacklist
);
return properties;
}
private computeProperties(data: StoredQueriesData): { [key: string]: any } {
const properties = ObjectUtils.removeKeys(
data.properties,
StoredQueriesSearchSource.propertiesBlacklist
);
return properties;
}
}
private computeProperties(data: IChercheData): { [key: string]: any } {
const properties = ObjectUtils.removeKeys(
data.properties,
IChercheSearchSource.propertiesBlacklist
);
return Object.assign(properties, { type: data.doc_type });
}
}
private computeProperties(
data: StoredQueriesReverseData
): { [key: string]: any } {
const properties = ObjectUtils.removeKeys(
data.properties,
StoredQueriesReverseSearchSource.propertiesBlacklist
);
return Object.assign(properties, { type: data.properties.doc_type });
}
}
private computeProperties(data: IChercheData): { [key: string]: any } {
const properties = ObjectUtils.removeKeys(
data.properties,
IChercheSearchSource.propertiesBlacklist
);
if (data.geometry === undefined) {
return Object.assign({ type: data.index }, properties);
}
const googleLinksProperties: {
GoogleMaps: string;
GoogleStreetView?: string;
} = {
GoogleMaps: GoogleLinks.getGoogleMapsLink(
data.geometry.coordinates[0],
data.geometry.coordinates[1]
)