galactic-bot/@types/Utils.d.ts
2023-12-05 17:47:54 +02:00

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
}