It seems that the return type syntax for toDataNodes in your index.d.ts file has been invalid since v10.4.0. The type void 0[] is most likely meant to be DataNode[]. We experienced this issue during one of our builds.
|
readonly toDataNodes: (data: unknown, pointer?: string) => void 0[]; |
|
readonly toJSON: () => any; |