mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
[google-apps-script] Modify type definitions of functions which can return null (#20517)
* Fix type definition of `SpreadsheetApp.getActive` * Fix type definition of `SpreadsheetApp.getActiveSpreadsheet`
This commit is contained in:
@@ -1085,7 +1085,7 @@ declare namespace GoogleAppsScript {
|
||||
/**
|
||||
* Returns the currently active spreadsheet, or null if there is none.
|
||||
*/
|
||||
getActive(): Spreadsheet;
|
||||
getActive(): Spreadsheet | null;
|
||||
/**
|
||||
* Returns the range of cells that is currently considered active.
|
||||
*/
|
||||
@@ -1097,7 +1097,7 @@ declare namespace GoogleAppsScript {
|
||||
/**
|
||||
* Returns the currently active spreadsheet, or null if there is none.
|
||||
*/
|
||||
getActiveSpreadsheet(): Spreadsheet;
|
||||
getActiveSpreadsheet(): Spreadsheet | null;
|
||||
/**
|
||||
* Returns an instance of the spreadsheet's user-interface environment that allows the script to add features like menus, dialogs, and sidebars.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user