How to create a circularly referenced type in TypeScript?
I have the following code: type Document = number | string | Array<Document>; TypeScript complains with the following error: test.ts(7,6): error TS2456: Type alias 'Document' circularly