Skip to content

Commit 04b1031

Browse files
🤖 Merge PR DefinitelyTyped#74801 Sync latest changes to @types/google-publisher-tag by @google-publisher-tag
Co-authored-by: jimper <jimper@users.noreply.github.com>
1 parent d803a76 commit 04b1031

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

‎types/google-publisher-tag/google-publisher-tag-tests.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Tests for Google Publisher Tag 1.20260309
2-
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/b016c4944f367bc81fd32a072d0648154987849d
1+
// Tests for Google Publisher Tag 1.20260330
2+
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/9d3feab6f1efe54ba0195337deb1ec9e3557a5ca
33

44
// Test for googletag.cmd
55
function test_googletag_cmd() {

‎types/google-publisher-tag/index.d.ts‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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]. */

‎types/google-publisher-tag/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@types/google-publisher-tag",
4-
"version": "1.20260309.9999",
4+
"version": "1.20260330.9999",
55
"nonNpm": "conflict",
66
"nonNpmDescription": "Google Publisher Tag",
77
"projects": [

0 commit comments

Comments
 (0)