File

src/app/shared/interfaces/interfaces.ts

Description

A function type interface just for documentation purpose

Example :
let mySearch: SearchFunc;
mySearch = function(source: string, subString: string) {
    let result = source.search(subString);
    if (result == -1) {
        return false;
    }
    else {
        return true;
    }
}

Index

Properties

Properties

Signature : [source: string, subString: string]
Returns : boolean
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;
}

results matching ""

    No results matching ""