Skip to content

Commit e973c82

Browse files
fix(forms-api): resolve type errors
Adds JSDoc annotations and corrects type casting to resolve TypeScript errors in the forms-api directory. - Adds @param and @return annotations to functions. - Casts the `method` property in `UrlFetchApp.fetch` options to the correct type. - Removes unhelpful try/catch blocks. - Fixes syntax errors in `retrieve_all_responses.gs`. - Uses `response.getContentText()` instead of string coercion.
1 parent 275a497 commit e973c82

File tree

3 files changed

+165
-144
lines changed

3 files changed

+165
-144
lines changed

forms-api/demos/AppsScriptFormsAPIWebApp/Code.gs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
5+
// You may not use this file except in compliance with the License.
56
// You may obtain a copy of the License at
67
//
78
// https://www.apache.org/licenses/LICENSE-2.0
@@ -12,6 +13,9 @@
1213
// See the License for the specific language governing permissions and
1314
// limitations under the License.
1415

16+
/**
17+
* @return {GoogleAppsScript.HTML.HtmlOutput}
18+
*/
1519
function doGet() {
1620
return HtmlService.createTemplateFromFile('Main').evaluate();
17-
}
21+
}

0 commit comments

Comments
 (0)