UNPKG

@2toad/profanity

Version:

A multi-language profanity filter with full TypeScript support

9 lines (8 loc) 252 B
export declare class List { words: Set<string>; onListChanged: () => void; get empty(): boolean; constructor(onListChanged: () => void); removeWords(words: string[]): void; addWords(words: readonly string[] | string[]): void; }