You should use the new corner console, which for some reason requires a “type”, although this is only a developer option. I would just use "data", or "method", or "multi" if it contains both a data structure and methods. I do not think this refers to a property of a data type (number, boolean, etc.). IMO this should not be required in the corner console. In your case, I would probably use "data" by assigning it an uppercase letter "I", and if you later need an interface for the method, create a separate interface. Also see which directory it is in when using the Angular Console. For example. I need an interface for car data - in the Angular Console it will be the name "Icars", the data type is "data", and thus icars.data.ts is created and with this export interface Icars {} contents of the export interface Icars {} .
From the Angular documentation at: https://angular.io/cli/generate
ng generate interface [options] ng g interface [options] Creates a new definition of the common interface in a given project or project by default.
Arguments ARGUMENT DESCRIPTION Interface name.
Adds a type defined by the developer to the file name in the format "name.type.ts".
Rezenalize
source share