@@ -280,7 +280,8 @@ declare namespace googletag {
280280 function setConfig ( config : config . PageSettingsConfig ) : void ;
281281
282282 /**
283- * Gets general configuration options for the page set by {@link setConfig}.
283+ * Gets a frozen copy of the general configuration options for the page set by
284+ * {@link setConfig}.
284285 *
285286 * Not all `setConfig()` properties are supported by this method. Supported
286287 * properties are:
@@ -296,11 +297,11 @@ declare namespace googletag {
296297 * const config = googletag.getConfig(['adsenseAttributes', 'disableInitialLoad']);
297298 *
298299 * @param keys The keys of the configuration options to get.
299- * @return The configuration options for the slot .
300+ * @return A frozen copy of the configuration options for the page .
300301 */
301302 function getConfig (
302303 keys : string | string [ ] ,
303- ) : Pick < config . PageSettingsConfig , "adsenseAttributes" | "disableInitialLoad" | "targeting" > ;
304+ ) : Readonly < Pick < config . PageSettingsConfig , "adsenseAttributes" | "disableInitialLoad" | "targeting" > > ;
304305
305306 /**
306307 * The command array accepts a sequence of functions and invokes them in
@@ -1685,11 +1686,13 @@ declare namespace googletag {
16851686 * Sets general configuration options for this slot.
16861687 *
16871688 * @param slotConfig The configuration object.
1689+ * @return The slot object on which the method was called.
16881690 */
1689- setConfig ( slotConfig : config . SlotSettingsConfig ) : void ;
1691+ setConfig ( slotConfig : config . SlotSettingsConfig ) : Slot ;
16901692
16911693 /**
1692- * Gets general configuration options for the slot set by {@link setConfig}.
1694+ * Gets a frozen copy of the general configuration options for the slot set by
1695+ * {@link setConfig}.
16931696 *
16941697 * Not all `setConfig()` properties are supported by this method. Supported
16951698 * properties are:
@@ -1707,11 +1710,11 @@ declare namespace googletag {
17071710 * const config = slot.getConfig(['adsenseAttributes', 'categoryExclusion']);
17081711 *
17091712 * @param keys The keys of the configuration options to get.
1710- * @return The configuration options for the slot.
1713+ * @return A frozen copy of the configuration options for the slot.
17111714 */
17121715 getConfig (
17131716 keys : string | string [ ] ,
1714- ) : Pick < config . SlotSettingsConfig , "categoryExclusion" | "targeting" | "adsenseAttributes" > ;
1717+ ) : Readonly < Pick < config . SlotSettingsConfig , "categoryExclusion" | "targeting" | "adsenseAttributes" > > ;
17151718 }
17161719
17171720 /** Array of two numbers representing [width, height]. */
0 commit comments