UNPKG

ack-angular

Version:

Extra special directives, components, providers and pipes to aide in tackling everyday interface development needs in Angular2

48 lines (47 loc) 2.26 kB
export declare function between(input: number, a: number, b: number): boolean; export declare function replaceMaxLength(input: string, max: number, replacement?: string): string; export declare function numberToPhone(val: number | string): string | unknown; export declare function toNumber(val: string | number): number; export declare function numberSuffix(val: number | string, rtnVal?: boolean): string; /** if input is array returned otherwise array created with */ export declare function array(input: string | any[], repeat?: number, repeatValue?: unknown | number | string): any[]; export declare function arrayOfObjects(input: string | any[], repeat?: number, repeatValue?: unknown | string | number): any[]; export declare function markdownAnchor(input: string): string; export declare function textDownload(input: any): any; export declare function yesno(input: any): any; export declare function yesNo(input: any): any; export declare function boolean(input: any): boolean; export declare function bit(input: any): 1 | 0; export declare function numbers(input: any, safeChars?: string): any; export declare function capitalizeWords(input: any): any; /** each sentence word is capitalized */ export declare function capitalize(input: any): any; export declare function capitalizeAfterSentence(input: any): any; export declare function capitalizeOne(input: any): any; export declare const aDate: Function; export declare const aTime: Function; export declare const aMath: Function; export declare const aString: Function; export declare const ack: Function; export declare const pipes: { ack: Function; aDate: Function; aMath: Function; array: typeof array; aString: Function; aTime: Function; between: typeof between; capitalize: typeof capitalize; capitalizeAfterSentence: typeof capitalizeAfterSentence; capitalizeOne: typeof capitalizeOne; capitalizeWords: typeof capitalizeWords; numbers: typeof numbers; numberSuffix: typeof numberSuffix; numberToPhone: typeof numberToPhone; markdownAnchor: typeof markdownAnchor; replaceMaxLength: typeof replaceMaxLength; textDownload: typeof textDownload; toNumber: typeof toNumber; yesno: typeof yesno; yesNo: typeof yesNo; };