Files
Stirling-PDF/frontend/editor
James BruntonandGitHub 41181c9da1 Redesign tool config types to avoid any typing (#6582)
# Description of Changes
Fixes one of the main causes of `any` typing left in tools, the way that
we register tool parameters in the registry. Currently, it just accepts
tool params via `any`, but instead we can explicitly change them to
`Record<string, unknown)`, so on the way back out they can more safely
be cast back to their correct type when known.

One consequence of this is that I had to redesign the way we
special-case the Convert tool, which previously was a different shape
than all the other param types. Now it's just got optional parameters on
it, which isn't quite as type-safe as before, but it does mean all tools
are a consistent shape now, which I think is worth the tradeoff.
2026-06-23 15:44:52 +00:00
..
2026-06-23 13:57:17 +00:00
2026-06-23 08:52:32 +00:00
2026-05-22 13:40:34 +01:00
2026-06-16 16:48:30 +01:00
2026-06-23 08:52:32 +00:00
2026-06-16 16:48:30 +01:00
2026-06-16 16:48:30 +01:00