Cloud API Overview > @adpt/cloud > k8s > isK8sContainerElement
k8s.isK8sContainerElement() function
Tests whether an element is a k8s.K8sContainer element
Signature:
export declare function isK8sContainerElement(x: AdaptElement): x is AdaptElement<K8sContainerProps>;
Parameters
Parameter | Type | Description |
---|---|---|
x | AdaptElement | element to test |
Returns:
x is AdaptElement<K8sContainerProps>
true
if element is a k8s.K8sContainer, false
otherwise
Remarks
Acts as a TypeScript type assertion that will assert that x
is AdaptElement<K8sContainerProps>