• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-build
  • attribute
  • isAttributeLike

Function isAttributeLike

  • isAttributeLike(node: unknown): node is AttributeLike
  • Type check guard to check if provided AST node is AST.AttributeLike.

    • Standard attribute (AST.Attribute) - https://developer.mozilla.org/en-US/docs/Glossary/Attribute
    • Spread attribute (AST.SpreadAttribute) - https://svelte.dev/docs/basic-markup#attributes-and-props
    • Directive (AST.Directive) - can be for:
      • component - https://svelte.dev/docs/component-directives
      • element - https://svelte.dev/docs/element-directives

    Parameters

    • node: unknown

      Supported AST node to narrow down its inferred type

    Returns node is AttributeLike

    @NO_SIDE_EFFECTS

    • Defined in pkgs/svelte-ast-build/src/attribute.js:43

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc