Skip to content

Commit

Permalink
Add missing propsRequired flags to several newer display methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmischka committed Oct 27, 2022
1 parent c9e99e5 commit 368b3ed
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/classes/IOClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -475,23 +475,32 @@ export class IOClient {
}),
},
display: {
code: this.createIOMethod('DISPLAY_CODE'),
code: this.createIOMethod('DISPLAY_CODE', {
propsRequired: true,
}),
heading: this.createIOMethod('DISPLAY_HEADING'),
markdown: this.createIOMethod('DISPLAY_MARKDOWN'),
image: this.createIOMethod('DISPLAY_IMAGE', {
componentDef: displayImage,
propsRequired: true,
}),
metadata: this.createIOMethod('DISPLAY_METADATA', {
propsRequired: true,
}),
metadata: this.createIOMethod('DISPLAY_METADATA'),
link: this.createIOMethod('DISPLAY_LINK', {
componentDef: displayLink,
propsRequired: true,
}),
object: this.createIOMethod('DISPLAY_OBJECT', {
propsRequired: true,
}),
object: this.createIOMethod('DISPLAY_OBJECT'),
table: this.createIOMethod('DISPLAY_TABLE', {
propsRequired: true,
componentDef: displayTable(this.logger),
}),
video: this.createIOMethod('DISPLAY_VIDEO', {
componentDef: displayVideo,
propsRequired: true,
}),
},
experimental: {
Expand Down

0 comments on commit 368b3ed

Please sign in to comment.