mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user