There is an issue with typescript (https://github.com/microsoft/TypeScript/issues/15300) where interfaces can't be used if the function expects a
Scalar. Define your interface as a type OR use the
utility type ToScalar to provide your interface with an
index signature.
REMOVE SCALAR IN NEXT MAJOR AND RE EXPORT JsonValue
There is an issue with typescript (https://github.com/microsoft/TypeScript/issues/15300) where interfaces can't be used if the function expects a
Scalar
. Define your interface as a type OR use the utility typeToScalar
to provide your interface with an index signature.REMOVE SCALAR IN NEXT MAJOR AND RE EXPORT JsonValue