FE: Find a way to use types of classes without circulair dependencies

The eslint rule import/no-cycle is giving some problems when using classes as a type. We need a away to include it without triggering this error. For example check this ignore here !622 (diffs)

Edited by Sander de Snaijer