forked from sheepzh/time-tracker-4-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
27 lines (22 loc) · 664 Bytes
/
Copy pathtypes.ts
File metadata and controls
27 lines (22 loc) · 664 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export type LimitReason =
& RequiredPick<tt4b.limit.Rule, 'id' | 'cond'>
& PartialPick<tt4b.limit.Item, 'delayCount' | 'allowDelay'>
& {
type: tt4b.limit.ReasonType
getVisitTime?: () => number
}
export interface MaskModal {
readonly reasons: LimitReason[]
addReason(...reasons: LimitReason[]): void
removeReason(...reasons: LimitReason[]): void
removeReasonsByType(...types: tt4b.limit.ReasonType[]): void
addDelayHandler(handler: NoArgCallback): void
}
export type ModalContext = {
url: string
modal: MaskModal
}
export interface Processor {
init(): Awaitable<void>
onLimitChanged(): void
}