sindresorhus / type-fest

A collection of essential TypeScript types
Creative Commons Zero v1.0 Universal
14.41k stars 547 forks source link

JsonifiableObject & JsonifiableArray #972

Open mfulton26 opened 1 month ago

mfulton26 commented 1 month ago

Type description + examples

I find Jsonifiable very handy but I often want to specify that the value shouldn't be a primitive. Can JsonifiableObject and JsonifiableArray be exported too?

Type source

The types are already defined but not currently exported:

https://github.com/sindresorhus/type-fest/blob/3d473d1f8b0ec5820e1f3aaf7965b68784423778/source/jsonifiable.d.ts#L3-L4

Search existing types and issues first

Upvote & Fund

Fund with Polar