File

test/fixtures/sample-files-extends/src/app/clock.interface.ts

Description

A class interface just for documentation purpose

class Clock implements ClockInterface {
    currentTime: Date;
    constructor(h: number, m: number) { }
}

Extends

TimeInterface BooInterface

Index

Properties
Methods

Methods

reset
reset()

A simple reset method

Returns : void

Properties

currentTime
The current time property is deprecated
currentTime: Date
Type : Date

The current time

import { BooInterface } from './boo.interface';
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, BooInterface {
    /**
     * The current time
     * @type {Date}
     * @deprecated The current time property is deprecated
     */
    currentTime: Date;
    /**
     * A simple reset method
     */
    reset(): void;
}

results matching ""

    No results matching ""