42 lines
1.0 KiB
TypeScript
42 lines
1.0 KiB
TypeScript
declare class BloomFilter {
|
|
constructor(data: Uint32Array, k: number);
|
|
test(key: string): boolean;
|
|
name: LabelKind;
|
|
}
|
|
interface HTMLElement {
|
|
assignedCssLabel?: string
|
|
}
|
|
interface LabelToSolve {
|
|
element: HTMLAnchorElement
|
|
identifier: string
|
|
}
|
|
type LabelKind = 't-friendly' | 'transphobic' | 'none' | '';
|
|
interface ShinigamiEyesSubmission {
|
|
mark?: LabelKind
|
|
url?: string
|
|
tabId?: number
|
|
frameId?: number
|
|
debug?: number
|
|
identifier?: string
|
|
secondaryIdentifier?: string
|
|
version?: number
|
|
submissionId?: string
|
|
contextPage?: string
|
|
linkId?: number
|
|
snippet?: string
|
|
}
|
|
interface ShinigamiEyesCommand {
|
|
acceptClicked?: boolean
|
|
myself?: string
|
|
ids?: string[]
|
|
updateAllLabels?: boolean
|
|
closeCallingTab?: boolean
|
|
setTheme?: string
|
|
}
|
|
type LabelMap = { [identifier: string]: LabelKind };
|
|
|
|
interface ShinigamiEyesMessage extends ShinigamiEyesSubmission, ShinigamiEyesCommand {
|
|
}
|
|
|
|
type ContextMenuCommand = 'mark-t-friendly' | 'mark-transphobic' | 'mark-none' | 'help' | 'options';
|