Skip to content

Commit

Permalink
Add code property to RichTextStyleable, remove unsupported `highl…
Browse files Browse the repository at this point in the history
…ight` property (it did nothing, anyways). Fixes #1706
  • Loading branch information
Filip Maj committed Dec 20, 2023
1 parent 4f39371 commit 7827543
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/types/src/block-kit/extensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,20 @@ export interface Dispatchable {
}

/**
* @description For use styling Rich Text message sub-elements.
* @description For use styling Rich Text sub-elements.
*/
export interface RichTextStyleable {
/**
* @description A limited style object for styling rich text message elements
* (excluding pre-formatted, or code, elements).
* @description A limited style object for styling rich text `text` elements.
*/
style?: {
/** @description When `true`, boldens the text in this element. Defaults to `false`. */
bold?: boolean;
/** @description When `true`, the text is preformatted in an inline code style. Defaults to `false. */
code?: boolean;
/** @description When `true`, italicizes the text in this element. Defaults to `false`. */
italic?: boolean;
/** @description When `true`, strikes through the text in this element. Defaults to `false`. */
strike?: boolean;
highlight?: boolean;
/* TODO: model these?
client_highlight?: boolean;
unlink?: boolean;
*/
};
}

0 comments on commit 7827543

Please sign in to comment.