• Preparing search index...
  • The search index is not available
Documentation
  • Documentation
  • svelte-ast-print
  • svelte-ast-print/template
  • printLetDirective

Function printLetDirective

  • printLetDirective(
        n: LetDirective,
        opts?: Partial<PrintOptions>,
    ): Result<LetDirective>

    Parameters

    • n: LetDirective
    • opts: Partial<PrintOptions> = {}

    Returns Result<LetDirective>

    Deprecated

    Will be removed from Svelte v6 https://svelte.dev/docs/svelte/legacy-slots#Passing-data-to-slotted-content

    Example: with expression

    let:name={expression}
    

    Example: shorthand - when variable - expression as identifier - name is same

    let:name
    

    Since

    1.0.0 @NO_SIDE_EFFECTS

    • Defined in pkgs/svelte-ast-print/src/template/mod.ts:322

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc