Bilibili-Evolved/registry/lib/components/utils/comments/content-replace/handlers/node-content-replacer.ts
2024-10-20 10:45:21 +08:00

5 lines
205 B
TypeScript

export abstract class NodeContentReplacer {
abstract isKeywordMatch(node: Node, keyword: string, target: string): boolean
abstract replaceContent(node: Node, keyword: string, target: string): Node[]
}