chore: resolve unbound-method warnings in NotionConverter (#12205)

Convert rich_text and rich_text_to_plaintext from static methods to
static arrow-function fields so they can be passed as map callbacks
without tripping the unbound-method lint. Neither method accesses
`this`, so behavior is unchanged.

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Tom Moor
2026-04-28 20:49:58 -04:00
committed by GitHub
parent f9a2cbc1b3
commit e29c9102af
@@ -279,7 +279,7 @@ export class NotionConverter {
};
}
private static rich_text(item: RichTextItemResponse) {
private static rich_text = (item: RichTextItemResponse) => {
const annotationToMark: Record<
keyof RichTextItemResponse["annotations"],
string
@@ -386,11 +386,10 @@ export class NotionConverter {
}
return undefined;
}
};
private static rich_text_to_plaintext(item: RichTextItemResponse) {
return item.plain_text;
}
private static rich_text_to_plaintext = (item: RichTextItemResponse) =>
item.plain_text;
private static divider(_: DividerBlockObjectResponse) {
return {