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

Function isTemplateNode

  • isTemplateNode(input: unknown): input is TemplateNode

    Type check guard to see if provided AST node is part of node used for templating AST.TemplateNode.

    Those are:

    • root - what you obtain from the results of from using parse() from "svelte/compiler",
    • text that is included between HTML tags - AST.Text,
    • HTML comment - AST.Comment.

    Parameters

    • input: unknown

      AST node @NO_SIDE_EFFECTS

    Returns input is TemplateNode

    • Defined in pkgs/svelte-ast-analyze/src/template/mod.ts:51

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc