src/app/shared/interfaces/clock.interface.ts
A class interface just for documentation purpose
Example :class Clock implements ClockInterface {
currentTime: Date;
constructor(h: number, m: number) { }
}
Properties |
Methods |
reset |
reset()
|
A simple reset method
Returns :
void
|
currentTime |
The current time property is deprecated |
currentTime:
|
Type : Date
|
The current time |
import { TimeInterface } from './time.interface';
/**
* A class interface just for documentation purpose
*
* ```typescript
* class Clock implements ClockInterface {
* currentTime: Date;
* constructor(h: number, m: number) { }
* }
* ```
*/
interface ClockInterface extends TimeInterface {
/**
* The current time
* @type {Date}
* @deprecated The current time property is deprecated
*/
currentTime: Date;
/**
* A simple reset method
*/
reset(): void;
}