forked from Galactic/galactic-bot
19 lines
385 B
TypeScript
19 lines
385 B
TypeScript
|
export type FilterType = 'explicit' | 'regex' | 'fuzzy'
|
||
|
|
||
|
export type FilterResult = {
|
||
|
filter?: string,
|
||
|
match?: string,
|
||
|
matcher?: string,
|
||
|
matched?: boolean,
|
||
|
_matcher?: string,
|
||
|
type?: FilterType
|
||
|
word?: string,
|
||
|
raw?: string,
|
||
|
sim?: number,
|
||
|
threshold?: number,
|
||
|
sanctioned?: boolean
|
||
|
}
|
||
|
|
||
|
export type Nullable<T> = {
|
||
|
[K in keyof T]: T[K] | null
|
||
|
}
|