Minor Changes
-
4a18a70Thanks @gajus! - feat: widenSerializableValuetoobjectand dropundefinedSerializableValueis nowboolean | null | number | object | string.- The previous
{ [key: string]: unknown }andunknown[]branches required
TypeScript to see an explicit string index signature, so values typed as
objector as interfaces with named properties (e.g.
{ name: string; payload: Record<string, unknown> }) still failed to
type-check. Usingobjectaccepts both. undefinedis removed from the union. It was always rejected at runtime
withJSON payload must not be undefined.; the type now matches.
- The previous