UNPKG
@2toad/profanity
Version:
latest (3.2.0)
3.2.0
3.1.1
3.0.1
3.0.0
2.5.0
2.4.2
2.4.1
2.4.0
2.3.1
2.3.0
2.2.0
2.1.0
2.0.2
2.0.1
2.0.0
1.4.1
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
A JavaScript profanity filter
github.com/2Toad/Profanity
2Toad/Profanity
@2toad/profanity
/
dist
/
list.d.ts
10 lines
(9 loc)
•
272 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
declare
class
List
{
words
:
string
[];
onListChanged
:
Function
;
get
empty
():
boolean
;
constructor
(
onListChanged
:
Function
);
loadFile
(
filename
:
string
):
void
;
removeWords
(
words
:
string
[]):
void
;
addWords
(
words
:
string
[]):
void
; }