From 761fc462c9ee2412985239d138db875368d66f6c Mon Sep 17 00:00:00 2001 From: Jack Stevens Date: Fri, 10 May 2024 13:00:43 +0100 Subject: [PATCH] fix: specify return type for removep --- packages/autop/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/autop/src/index.ts b/packages/autop/src/index.ts index 970d5b1341814..9c42b80e63854 100644 --- a/packages/autop/src/index.ts +++ b/packages/autop/src/index.ts @@ -343,7 +343,7 @@ export function autop( text: string, br: boolean = true ): string { * * @return {string} The content with stripped paragraph tags. */ -export function removep( html: string ) { +export function removep( html: string ): string { const blocklist = 'blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure'; const blocklist1 = blocklist + '|div|p';