google-apps-script: getProperty(key) may return null

`getProperty(key)` returns null if no such key exists, according to the
reference (https://developers.google.com/apps-script/reference/properties/properties#getProperty(String)).
This commit is contained in:
Yuichi Tanikawa
2017-08-21 12:43:23 +09:00
parent 924fafffc0
commit ab0913cf2d
@@ -22,7 +22,7 @@ declare namespace GoogleAppsScript {
deleteProperty(key: string): Properties;
getKeys(): String[];
getProperties(): Object;
getProperty(key: string): string;
getProperty(key: string): string | null;
setProperties(properties: Object): Properties;
setProperties(properties: Object, deleteAllOthers: boolean): Properties;
setProperty(key: string, value: string): Properties;
@@ -60,7 +60,7 @@ declare namespace GoogleAppsScript {
deleteProperty(key: string): ScriptProperties;
getKeys(): String[];
getProperties(): Object;
getProperty(key: string): string;
getProperty(key: string): string | null;
setProperties(properties: Object): ScriptProperties;
setProperties(properties: Object, deleteAllOthers: boolean): ScriptProperties;
setProperty(key: string, value: string): ScriptProperties;
@@ -77,7 +77,7 @@ declare namespace GoogleAppsScript {
deleteProperty(key: string): UserProperties;
getKeys(): String[];
getProperties(): Object;
getProperty(key: string): string;
getProperty(key: string): string | null;
setProperties(properties: Object): UserProperties;
setProperties(properties: Object, deleteAllOthers: boolean): UserProperties;
setProperty(key: string, value: string): UserProperties;