Skip to content

Commit

Permalink
feat: allow presets to define action/feedback headlines
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jul 7, 2024
1 parent c2c9219 commit b717953
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/module-api/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export interface CompanionPresetFeedback {
* If a boolean feedback, invert the value of the feedback
*/
isInverted?: boolean
/**
* User editable description/comment for the feedback.
* Intended to descibe the purpose/intent of the feedback.
*/
headline?: string
}

/**
Expand All @@ -42,6 +47,11 @@ export interface CompanionPresetAction {
delay?: number
/** The option values for the action */
options: CompanionOptionValues
/**
* User editable description/comment for the action.
* Intended to descibe the purpose/intent of the action.
*/
headline?: string
}

export type CompanionPresetDefinition = CompanionButtonPresetDefinition | CompanionTextPresetDefinition
Expand Down

0 comments on commit b717953

Please sign in to comment.