Cloud API Overview > @adpt/cloud > k8s > isResourceFinalElement
k8s.isResourceFinalElement() function
Type assertion to see if an element is both a Resource and a @adpt/core#FinalElement
Signature:
export declare function isResourceFinalElement(e: AdaptElement): e is FinalDomElement<ResourceProps & Adapt.BuiltinProps>;
Parameters
Parameter | Type | Description |
---|---|---|
e | AdaptElement | element to test |
Returns:
e is FinalDomElement<ResourceProps & Adapt.BuiltinProps>
true
if e is both a FinalElement and a Resource, false
otherwise