angular.d.ts: add isObject<T> (#11144)

This allows user-defined type guards for specific objects.
This commit is contained in:
Juras Norkus
2016-09-09 16:38:06 +03:00
committed by Masahiro Wakame
parent 15d88ee057
commit 17f7f965f5

View File

@@ -125,6 +125,7 @@ declare namespace angular {
isFunction(value: any): value is Function;
isNumber(value: any): value is number;
isObject(value: any): value is Object;
isObject<T>(value: any): value is T;
isString(value: any): value is string;
isUndefined(value: any): boolean;
lowercase(str: string): string;