Skip to content

Commit 0dc068d

Browse files
🤖 dprint fmt
1 parent d3c022e commit 0dc068d

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

types/google-apps-script/google-apps-script.card-service.d.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ declare namespace GoogleAppsScript {
661661
* .addItem('radio button one title', 'radio_one_value', true)
662662
* .addItem('radio button two title', 'radio_two_value', false)
663663
* .addItem('radio button three title', 'radio_three_value', false);
664-
*
664+
*
665665
* const multiSelect =
666666
* CardService.newSelectionInput()
667667
* .setType(CardService.SelectionInputType.MULTI_SELECT)
@@ -707,11 +707,17 @@ declare namespace GoogleAppsScript {
707707
*/
708708
interface SelectionInput {
709709
addItem(text: any, value: any, selected: boolean): SelectionInput;
710-
addMultiSelectItem(text: string, value: string, selected: boolean, startIconUri: string, bottomText: string): SelectionInput;
710+
addMultiSelectItem(
711+
text: string,
712+
value: string,
713+
selected: boolean,
714+
startIconUri: string,
715+
bottomText: string,
716+
): SelectionInput;
711717
setExternalDataSource(action: Action): SelectionInput;
712718
setFieldName(fieldName: string): SelectionInput;
713719
setMultiSelectMaxSelectedItems(maxSelectedItems: Integer): SelectionInput;
714-
setMultiSelectMinQueryLength(queryLength: Integer): SelectionInput
720+
setMultiSelectMinQueryLength(queryLength: Integer): SelectionInput;
715721
setOnChangeAction(action: Action): SelectionInput;
716722
setTitle(title: string): SelectionInput;
717723
setType(type: SelectionInputType): SelectionInput;

types/google-apps-script/test/google-apps-script-tests.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,12 @@ CardService.newOpenLink().setOnClose(CardService.OnClose.RELOAD_ADD_ON); // $Exp
643643
// Class CardService.SelectionInput
644644
// https://developers.google.com/apps-script/reference/card-service/selection-input
645645
CardService.newSelectionInput(); // $ExpectType SelectionInput
646-
CardService.newSelectionInput().addItem('', '', true); // $ExpectType SelectionInput
647-
CardService.newSelectionInput().addMultiSelectItem('', '', false, '', ''); // $ExpectType SelectionInput
648-
CardService.newSelectionInput().setFieldName(''); // $ExpectType SelectionInput
646+
CardService.newSelectionInput().addItem("", "", true); // $ExpectType SelectionInput
647+
CardService.newSelectionInput().addMultiSelectItem("", "", false, "", ""); // $ExpectType SelectionInput
648+
CardService.newSelectionInput().setFieldName(""); // $ExpectType SelectionInput
649649
CardService.newSelectionInput().setMultiSelectMaxSelectedItems(5); // $ExpectType SelectionInput
650650
CardService.newSelectionInput().setMultiSelectMinQueryLength(1); // $ExpectType SelectionInput
651-
CardService.newSelectionInput().setTitle(''); // $ExpectType SelectionInput
651+
CardService.newSelectionInput().setTitle(""); // $ExpectType SelectionInput
652652
CardService.newSelectionInput().setType(CardService.SelectionInputType.CHECK_BOX); // $ExpectType SelectionInput
653653

654654
// Enum SelectionInputType

0 commit comments

Comments
 (0)