From ccea3e251effba6510171cafeae0f627eac34979 Mon Sep 17 00:00:00 2001 From: Nikita Beloglazov Date: Thu, 14 Feb 2019 11:12:16 -0800 Subject: [PATCH] Export few data types from content-recommendation.js (#20854) It allows users of that file to use the types. Given that we return objects of these types from exported functions - exporting types themselves makes sense. Tested: presubmit --- ads/google/a4a/shared/content-recommendation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ads/google/a4a/shared/content-recommendation.js b/ads/google/a4a/shared/content-recommendation.js index 64a5f6ca498a..d6f23e60a1c4 100644 --- a/ads/google/a4a/shared/content-recommendation.js +++ b/ads/google/a4a/shared/content-recommendation.js @@ -141,7 +141,7 @@ const PUB_CONTROL_EXAMPLE = '\n ' + * will be used in ad request. * @record */ -class CoReConfig { // eslint-disable-line no-unused-vars +export class CoReConfig { // eslint-disable-line no-unused-vars /** see comment on class */ constructor() { /** @const {number} */ @@ -236,13 +236,13 @@ export function getAutoConfig(availableWidth, isMobile) { * layoutType: (string|undefined), * }} */ -let RawPublisherControlParams; // eslint-disable-line no-unused-vars +export let RawPublisherControlParams; // eslint-disable-line no-unused-vars /** * Get CoRe Pub Control UI Sizes. * @param {number} availableWidth * @param {!RawPublisherControlParams} rawPubControlParams - * @return {?CoReConfig} + * @return {!CoReConfig} */ export function getPubControlConfig(availableWidth, rawPubControlParams) { const pubParams = validateAndParsePubControlParams(rawPubControlParams);