(value: unknown)
| 468 | } |
| 469 | |
| 470 | function readPluginEnabledMap(value: unknown) { |
| 471 | if (!isRecord(value)) return {} |
| 472 | return Object.fromEntries( |
| 473 | Object.entries(value).filter((item): item is [string, boolean] => typeof item[1] === "boolean"), |
| 474 | ) |
| 475 | } |
| 476 | |
| 477 | function pluginEnabledState(state: RuntimeState, config: TuiConfig.Resolved) { |
| 478 | return { |
no test coverage detected