1.5.4 • Published 1 year ago
@types/leo-profanity v1.5.4
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
// Type definitions for leo-profanity 1.5
// Project: https://github.com/jojoee/leo-profanity
// Definitions by: Jack Humphries <https://github.com/jackhumphries9>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export function loadDictionary(lang: 'en' | 'fr'): 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: Mon, 02 May 2022 19:31:38 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Jack Humphries.