Skip to content

Commit

Permalink
Make property values nullable (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicial authored Aug 20, 2021
1 parent 4180c31 commit 3dfa495
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/api-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,12 @@ export interface RichTextInputPropertyValue extends PropertyValueBase {

export interface NumberPropertyValue extends PropertyValueBase {
type: "number"
number: number
number: number | null
}

export interface SelectPropertyValue extends PropertyValueBase {
type: "select"
select: SelectOption
select: SelectOption | null
}

export interface MultiSelectPropertyValue extends PropertyValueBase {
Expand All @@ -741,7 +741,7 @@ export interface DatePropertyValue extends PropertyValueBase {
date: {
start: string
end?: string
}
} | null
}

export interface FormulaPropertyValue extends PropertyValueBase {
Expand Down Expand Up @@ -777,11 +777,11 @@ export interface RollupPropertyValue extends PropertyValueBase {

export interface NumberRollupValue {
type: "number"
number: number
number: number | null
}
export interface DateRollupValue {
type: "date"
date: DatePropertyValue
date: DatePropertyValue | null
}
export interface ArrayRollupValue {
type: "array"
Expand All @@ -805,17 +805,17 @@ export interface CheckboxPropertyValue extends PropertyValueBase {

export interface URLPropertyValue extends PropertyValueBase {
type: "url"
url: string
url: string | null
}

export interface EmailPropertyValue extends PropertyValueBase {
type: "email"
email: string
email: string | null
}

export interface PhoneNumberPropertyValue extends PropertyValueBase {
type: "phone_number"
phone_number: string
phone_number: string | null
}

export interface CreatedTimePropertyValue extends PropertyValueBase {
Expand Down

0 comments on commit 3dfa495

Please sign in to comment.