Skip to content

Commit

Permalink
lots of these arguments aren't required
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Sep 9, 2022
1 parent 9a08be9 commit fe647c9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions types/omnifocus.d.ts
Expand Up @@ -188,10 +188,10 @@ declare class ColorSpace {
// Console

declare class Console {
log(message: Object, additional: Array<Object | null>);
error(message: Object, additional: Array<Object | null>);
info(message: Object, additional: Array<Object | null>);
warn(message: Object, additional: Array<Object | null>);
log(message: any, additional?: Array<any>);
error(message: any, additional?: Array<any>);
info(message: any, additional?: Array<any>);
warn(message: any, additional?: Array<any>);
clear();
}

Expand Down Expand Up @@ -743,7 +743,7 @@ declare namespace ForecastDay {

declare class Form {
constructor ();
addField(field: Form.Field, index: number | null);
addField(field: Form.Field, index?: number | null);
removeField(field: Form.Field);
show(title: string, confirmTitle: string): Promise<Form>;
readonly fields: Array<Form.Field>;
Expand Down Expand Up @@ -788,7 +788,7 @@ declare namespace Form.Field {

declare namespace Form.Field {
class Option extends Form.Field {
constructor (key: string, displayName: string | null, options: Array<Object>, names: Array<string> | null, selected: Object | null, nullOptionTitle: string | null);
constructor (key: string, displayName?: string | null, options?: Array<Object>, names?: Array<string> | null, selected?: Object | null, nullOptionTitle?: string | null);
allowsNull: boolean;
nullOptionTitle: string | null;
}
Expand All @@ -806,7 +806,7 @@ declare namespace Form.Field {

declare namespace Form.Field {
class String extends Form.Field {
constructor (key: string, displayName: string | null, value: Object | null, formatter: Formatter | null);
constructor (key: string, displayName?: string | null, value?: Object | null, formatter?: Formatter | null);
}
}

Expand Down

0 comments on commit fe647c9

Please sign in to comment.