isAttachable() function
Type guard for AttachableInterface.
Signature:
declare function isAttachable<T extends ResourceInterface>(resource: T): resource is T & AttachableInterface;
Parameters
Parameter |
Type |
Description |
---|---|---|
resource |
T |
resource is T & AttachableInterface