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

Function printUseDirective

  • printUseDirective(
        n: UseDirective,
        opts?: Partial<PrintOptions>,
    ): Result<UseDirective>
  • Parameters

    • n: UseDirective
    • Optionalopts: Partial<PrintOptions> = {}

    Returns Result<UseDirective>

    @NO_SIDE_EFFECTS

    Example: with expression

    use:name={expression}
    

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

    use:name
    

    See

    https://svelte.dev/docs/svelte/use

    • Defined in pkgs/svelte-ast-print/src/template/mod.js:482

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc