update types for Field and Fields (#41727)

This commit is contained in:
omjadas
2020-01-20 15:36:08 -05:00
committed by Eli Barzilay
parent 0ead4f1326
commit b529159e4f
+11 -11
View File
@@ -151,14 +151,14 @@ declare namespace GoogleAppsScript {
* .setGroup('DATETIME');
*/
interface Field {
getAggregation(): AggregationType;
getDescription(): string;
getFormula(): string;
getGroup(): string;
getId(): string;
getIsReaggregatable(): boolean;
getName(): string;
getType(): FieldType;
getAggregation(): AggregationType | null;
getDescription(): string | null;
getFormula(): string | null;
getGroup(): string | null;
getId(): string | null;
getIsReaggregatable(): boolean | null;
getName(): string | null;
getType(): FieldType | null;
isDefault(): boolean;
isDimension(): boolean;
isHidden(): boolean;
@@ -193,9 +193,9 @@ declare namespace GoogleAppsScript {
asArray(): Field[];
build(): any[];
forIds(ids: string[]): Fields;
getDefaultDimension(): Field;
getDefaultMetric(): Field;
getFieldById(fieldId: string): Field;
getDefaultDimension(): Field | null;
getDefaultMetric(): Field | null;
getFieldById(fieldId: string): Field | null;
newDimension(): Field;
newMetric(): Field;
setDefaultDimension(fieldId: string): void;