npm install --save @types/leo-profanity
This package contains type definitions for leo-profanity (https://github.com/jojoee/leo-profanity).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leo-profanity.
export function loadDictionary(lang: "en" | "fr" | "ru"): void;
export function list(): string[];
export function check(text: string): boolean;
export function clean(text: string, replaceKey?: string): string;
export function add(word: string | string[]): void;
export function remove(word: string | string[]): void;
export function reset(): void;
export function clearList(): void;
- Last updated: Tue, 18 Jun 2024 14:36:02 GMT
- Dependencies: none
These definitions were written by Jack Humphries.