Type '|1' cannot be used in this context because both the context and the definition of '|1' are nested within interface ...