mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
angular.d.ts: add isObject<T> (#11144)
This allows user-defined type guards for specific objects.
This commit is contained in:
committed by
Masahiro Wakame
parent
15d88ee057
commit
17f7f965f5
1
angularjs/angular.d.ts
vendored
1
angularjs/angular.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user