Function
detectApprove
(
warning: Warning,
opts?: { timeoutMs?: number; timeoutBehavior?: "allow" | "deny" },
)
Source from the content-addressed store, hash-verified
| 16 | } |
| 17 | |
| 18 | export function detectApprove( |
| 19 | warning: Warning, |
| 20 | opts?: { timeoutMs?: number; timeoutBehavior?: "allow" | "deny" }, |
| 21 | ): DetectionResult { |
| 22 | return { |
| 23 | warning, |
| 24 | verdict: "requireApproval", |
| 25 | timeoutMs: opts?.timeoutMs, |
| 26 | timeoutBehavior: opts?.timeoutBehavior, |
| 27 | }; |
| 28 | } |
| 29 | |
| 30 | export class Warning { |
| 31 | type: string; |
Tested by
no test coverage detected