How to fix Recursive type alias 'X' cannot reference itself without indirection in TypeScript | DevErrors