UNPKG

@empathyco/x-components

Version:
57 lines (27 loc) 868 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-types](./x-types.md) &gt; [isSimpleFacet](./x-types.issimplefacet.md) ## isSimpleFacet() function Type guard to check if a facet is an [SimpleFacet](./x-types.simplefacet.md)<!-- -->. **Signature:** ```typescript export declare function isSimpleFacet(facet: Facet): facet is SimpleFacet; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> facet </td><td> [Facet](./x-types.facet.md) </td><td> The facet to check. </td></tr> </tbody></table> **Returns:** facet is [SimpleFacet](./x-types.simplefacet.md) True if the facet is a [SimpleFacet](./x-types.simplefacet.md)<!-- -->, false otherwise.