src/app/shared/interfaces/interfaces.ts
This interface is deprecated
An interface just for documentation purpose
Properties |
completed |
completed:
|
Type : boolean
|
editing |
editing:
|
Type : boolean
|
Optional |
title |
title:
|
Type : string
|
x |
x:
|
Type : number
|
export interface superString {
name: string;
}
/**
* An interface just for documentation purpose
* @deprecated This interface is deprecated
*/
export interface LabelledTodo {
title: string;
completed: boolean;
editing?: boolean;
readonly x: number;
}
/**
* 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 {
(source: string, subString: string): boolean;
}
/**
* A indexable interface just for documentation purpose
* ```typescript
* let myArray: StringArray;
* myArray = ["Bob", "Fred"];
* ```
*/
interface StringArray {
[index: number]: string;
}