Installation
npm install --save @types/leo-profanity
Summary
This package contains type definitions for leo-profanity (https://github.com/jojoee/leo-profanity).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/leo-profanity.
index.d.ts
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;
Additional Details
- Last updated: Fri, 21 Nov 2025 2007 GMT
- Dependencies: none
Credits
These definitions were written by .