Is it possible to get name of the interface as a string? December 12, 2023 by Tarik This is not possible. TypeScript doesn’t generate any code for interfaces and there’s nothing like the nameof operator.