[auto-generated] google-apps-script: widen Console method parameter from `object | string` to `any` by niallmcdonough · Pull Request #74814 · DefinitelyTyped/DefinitelyTyped

@niallmcdonough

The Console interface methods (error, info, log, warn) previously typed
their first argument as `object | string`, which incorrectly rejects
primitive values like numbers and booleans. The Google Apps Script
documentation specifies the parameter as Object, which in JS/GAS
accepts any value. This aligns with standard TS console typings in
lib.dom.d.ts and @types/node which use `any`.

@typescript-bot added the Popular package

This PR affects a popular package (as counted by NPM download counts).

label

Mar 30, 2026