lint: lib/string.ts

add typing annotate

Signed-off-by: Raccoon <raccoon@hackmd.io>
This commit is contained in:
Raccoon 2021-06-13 15:11:28 +08:00
parent a965ba8336
commit dded39c2d4
No known key found for this signature in database
GPG Key ID: 06770355DC9ECD38

View File

@ -1,3 +1,3 @@
export function stripTags(s) {
export function stripTags(s: string): string {
return s.replace(RegExp('</?[^<>]*>', 'gi'), '')
}