Skip to content

Commit

Permalink
Add code property to RichTextStyleable (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Dec 20, 2023
1 parent 4f39371 commit 0a44268
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions packages/types/src/block-kit/extensions.ts
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 0a44268

Please sign in to comment.