From 0a4426842337fbbc62a3a280c2f258da0e2dc209 Mon Sep 17 00:00:00 2001 From: Fil Maj Date: Wed, 20 Dec 2023 13:06:53 -0500 Subject: [PATCH] Add `code` property to `RichTextStyleable` (#1707) --- packages/types/src/block-kit/extensions.ts | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/types/src/block-kit/extensions.ts b/packages/types/src/block-kit/extensions.ts index d1d993b1f..d5b86b4ab 100644 --- a/packages/types/src/block-kit/extensions.ts +++ b/packages/types/src/block-kit/extensions.ts @@ -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; - */ }; }