Function
createScopedMode
(mode: TuiPluginApi["mode"], scope: PluginScope)
Source from the content-addressed store, hash-verified
| 191 | } |
| 192 | |
| 193 | function createScopedMode(mode: TuiPluginApi["mode"], scope: PluginScope): TuiPluginApi["mode"] { |
| 194 | return { |
| 195 | current() { |
| 196 | return mode.current() |
| 197 | }, |
| 198 | push(value) { |
| 199 | return scope.track(mode.push(value)) |
| 200 | }, |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | type CleanupResult = { type: "ok" } | { type: "error"; error: unknown } | { type: "timeout" } |
| 205 | |
Tested by
no test coverage detected