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

Function isAttributeLike

  • isAttributeLike(input: unknown): input 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

    • input: unknown

      AST node to narrow down its inferred type @NO_SIDE_EFFECTS

    Returns input is AttributeLike

    • Defined in pkgs/svelte-ast-analyze/src/template/attribute.ts:255

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc