src/app/shared/interfaces/interfaces.ts
Properties |
Methods |
Inputs |
Outputs |
HostBindings |
HostListeners |
Accessors |
constructor(h: number, m: number)
|
|
Defined in src/app/shared/interfaces/interfaces.ts:74
|
| Private _emptyAccessor |
Type : string
|
Default value : ''
|
|
Defined in src/app/shared/interfaces/interfaces.ts:74
|
| currentTime |
Type : Date
|
|
Defined in src/app/shared/interfaces/interfaces.ts:62
|
|
class property |
| emptyHostBinding |
Type : string
|
Decorators :
@HostBinding('')
|
|
Defined in src/app/shared/interfaces/interfaces.ts:82
|
|
class hostBinding |
| emptyHostListener |
emptyHostListener()
|
Decorators :
@HostListener('')
|
|
Defined in src/app/shared/interfaces/interfaces.ts:89
|
|
class hostListener
Example :
Returns :
void
|
| emptyMethod | ||||||||
emptyMethod(emptyParam: string)
|
||||||||
|
Defined in src/app/shared/interfaces/interfaces.ts:107
|
||||||||
|
Parameters :
Returns :
string
class method return |
| emptyInput | |
Type : string
|
|
|
Defined in src/app/shared/interfaces/interfaces.ts:95
|
|
| emptyOutput | |
Type : string
|
|
|
Defined in src/app/shared/interfaces/interfaces.ts:101
|
|
|
class output |
|
Type : string
|
|
Defined in src/app/shared/interfaces/interfaces.ts:82
|
()
|
|
Defined in src/app/shared/interfaces/interfaces.ts:89
|
|
class hostListener
Example :
|
| emptyAccessor | ||||
getemptyAccessor()
|
||||
|
Defined in src/app/shared/interfaces/interfaces.ts:68
|
||||
|
class accessor
Example :
|
||||
setemptyAccessor(val)
|
||||
|
Defined in src/app/shared/interfaces/interfaces.ts:71
|
||||
|
Parameters :
Returns :
void
|
import { HostBinding, HostListener, Input, Output } from '@angular/core';
import { ClockInterface } from './clock.interface';
/**
* An interface just for documentation purpose
* @deprecated This interface is deprecated
*/
interface LabelledTodo {
title: string;
completed: Boolean;
editing?: Boolean;
readonly x: number;
}
export interface ValueInRes {
['__allAnd']: boolean;
['__allOr']: boolean;
[property: string]: any;
}
/**
* A function type interface just for documentation purpose
* ```typescript
* let mySearch: SearchFunc;
* mySearch = function(source: string, subString: string) {
* let result = source.search(subString);
* if (result == -1) {
* return false;
* }
* else {
* return true;
* }
* }
* ```
*/
interface SearchFunc {
/**
* A function
* @param {string} source A string
* @param {string} subString A substring
*/
(source: string, subString: string): boolean;
}
/**
* A indexable interface just for documentation purpose
* ```typescript
* let myArray: StringArray;
* myArray = ["Bob", "Fred"];
* ```
*/
interface StringArray {
[index: number]: string;
}
class Clock implements ClockInterface {
/**
* @example
* class property
*/
currentTime: Date;
/**
* @example
* class accessor
*/
get emptyAccessor() {
return this._emptyAccessor;
}
set emptyAccessor(val) {
this._emptyAccessor = val;
}
private _emptyAccessor = '';
constructor(h: number, m: number) {}
/**
* @example
* class hostBinding
*/
@HostBinding('')
emptyHostBinding: string;
/**
* @example
* class hostListener
*/
@HostListener('')
emptyHostListener() {}
/**
* @example
* class input
*/
@Input() public emptyInput: string;
/**
* @example
* class output
*/
@Output() public emptyOutput: string;
/**
* @param emptyParam class method param
* @returns class method return
*/
emptyMethod(emptyParam: string) {
return emptyParam;
}
}
interface IDATA {
value: [number, string, number[]];
value2: [string, string, ...boolean[]];
}