src/sample/sample.interface.ts
Interface to demonstate how new types should be specified
Properties |
| optional |
optional:
|
Type : boolean
|
|
Defined in src/sample/sample.interface.ts:8
|
|
this field isnt |
| required |
required:
|
Type : string
|
|
Defined in src/sample/sample.interface.ts:6
|
|
this field is required |
export interface SampleInterface {
/** this field is required */
required: string;
/** this field isnt */
optional?: boolean;
}