File

src/app/shared/interfaces/interfaces.ts

Deprecated

This interface is deprecated

Description

An interface just for documentation purpose

Index

Properties

Properties

completed
completed: boolean
Type : boolean
editing
editing: boolean
Type : boolean
Optional
title
title: string
Type : string
x
x: number
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;
}

results matching ""

    No results matching ""