CLI

generate interface

Command
ng generate interface
ng generate i

Creates a new, generic interface definition in the given project.

Arguments

name

The name of the interface.

Value Typestring
type

Adds a developer-defined type to the filename, in the format "name.type.ts".

Value Typestring

Options

prefix

A prefix to apply to generated selectors.

Value Typestring
project

The name of the project.

Value Typestring
Jump to details