Skip to content

Commit 3970105

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

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
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.20260126
2-
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/73204dbcec799a1e93c07bdce1110a1e7e63b420
1+
// Tests for Google Publisher Tag 1.20260202
2+
// Synced from: https://github.com/googleads/google-publisher-tag-types/commit/4c584da266672a58c8bbed7add283c848a179fcb
33

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

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,19 +1717,27 @@ declare namespace googletag {
17171717
/** Array of two numbers representing [width, height]. */
17181718
type SingleSizeArray = [number, number];
17191719

1720+
/**
1721+
* The size string where the ad container takes 100% width of its parent div and
1722+
* then resizes its height to fit the creative content. Similar to how regular
1723+
* block elements on a page behave. Used for native ads (see
1724+
* [related article](https://support.google.com/admanager/answer/6366845)).
1725+
*/
1726+
type FluidSize = "fluid";
1727+
17201728
/**
17211729
* Named sizes that a slot can have. In most cases size is a fixed-size
17221730
* rectangle but there are some cases when we need other kinds of size
17231731
* specifications. Only the following are valid named sizes:
17241732
*
1725-
* - **fluid**: the ad container takes 100% width of parent div and then
1726-
* resizes its height to fit creative content. Similar to how regular block
1733+
* - **fluid**: the ad container takes 100% width of its parent div and then
1734+
* resizes its height to fit the creative content. Similar to how regular block
17271735
* elements on a page behave. Used for native ads (see
17281736
* [related article](https://support.google.com/admanager/answer/6366845)).
17291737
* Note that both `fluid` and `['fluid']` are acceptable forms to declare a
17301738
* slot size as fluid.
17311739
*/
1732-
type NamedSize = "fluid" | ["fluid"];
1740+
type NamedSize = FluidSize | [FluidSize];
17331741

17341742
/**
17351743
* A single valid size for a slot.

‎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.20260126.9999",
4+
"version": "1.20260202.9999",
55
"nonNpm": "conflict",
66
"nonNpmDescription": "Google Publisher Tag",
77
"projects": [

0 commit comments

Comments
 (0)