isResource() function
Type guard for ResourceInterface.
Signature:
declare function isResource<T>(obj: T): obj is T & ResourceInterface;
Parameters
Parameter |
Type |
Description |
---|---|---|
obj |
T |
obj is T & ResourceInterface
Type guard for ResourceInterface.
Signature:
declare function isResource<T>(obj: T): obj is T & ResourceInterface;
Parameter |
Type |
Description |
---|---|---|
obj |
T |
obj is T & ResourceInterface