• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-analyze
  • template/element
  • isElementLike

Function isElementLike

  • isElementLike(input: unknown): input is ElementLike

    Type check guard to see if provided AST node is "element-like" AST.ElementLike.

    Those are:

    • standard Svelte-based component - AST.Component
    • regular element (HTML based) - https://developer.mozilla.org/en-US/docs/Web/HTML/Element
    • special Svelte elements - https://svelte.dev/docs/special-elements

    Parameters

    • input: unknown

      AST node @NO_SIDE_EFFECTS

    Returns input is ElementLike

    • Defined in pkgs/svelte-ast-analyze/src/template/element.ts:325

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc