NonArrayType:Aextendsunknown[] ?[never,"Cannot encode a tree of arrays as an array tree"] :Aextendsreadonlyunknown[] ?[never,"Cannot encode a tree of readonly arrays as an array tree"] :A
You cannot encode a tree of arrays as nested arrays because we use
Array.isArray to discriminate between leaves and branches.
You cannot encode a tree of arrays as nested arrays because we use
Array.isArrayto discriminate between leaves and branches.