Skip to content

Commit 9311dc4

Browse files
Merge pull request DefinitelyTyped#19173 from itiut/gas-get-property
google-apps-script: `getProperty(key)` may return null
2 parents c38c987 + ab0913c commit 9311dc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

types/google-apps-script/google-apps-script.properties.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare namespace GoogleAppsScript {
2222
deleteProperty(key: string): Properties;
2323
getKeys(): String[];
2424
getProperties(): Object;
25-
getProperty(key: string): string;
25+
getProperty(key: string): string | null;
2626
setProperties(properties: Object): Properties;
2727
setProperties(properties: Object, deleteAllOthers: boolean): Properties;
2828
setProperty(key: string, value: string): Properties;
@@ -60,7 +60,7 @@ declare namespace GoogleAppsScript {
6060
deleteProperty(key: string): ScriptProperties;
6161
getKeys(): String[];
6262
getProperties(): Object;
63-
getProperty(key: string): string;
63+
getProperty(key: string): string | null;
6464
setProperties(properties: Object): ScriptProperties;
6565
setProperties(properties: Object, deleteAllOthers: boolean): ScriptProperties;
6666
setProperty(key: string, value: string): ScriptProperties;
@@ -77,7 +77,7 @@ declare namespace GoogleAppsScript {
7777
deleteProperty(key: string): UserProperties;
7878
getKeys(): String[];
7979
getProperties(): Object;
80-
getProperty(key: string): string;
80+
getProperty(key: string): string | null;
8181
setProperties(properties: Object): UserProperties;
8282
setProperties(properties: Object, deleteAllOthers: boolean): UserProperties;
8383
setProperty(key: string, value: string): UserProperties;

0 commit comments

Comments
 (0)