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

Function printAwaitBlock

  • printAwaitBlock(n: AwaitBlock, opts?: Partial<PrintOptions>): Result<AwaitBlock>

    Parameters

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

    Returns Result<AwaitBlock>

    See

    https://svelte.dev/docs/svelte/await

    Example: standard

    {#await expression}...{:then name}...{:catch name}...{/await}
    

    Example: without catch

    {#if expression}...{:else if expression}...{/if}
    

    Example: without pending body

    {#await expression then name}...{/await}
    

    Example: with catch body only

    {#await expression catch name}...{/await}
    

    Since

    1.0.0 @NO_SIDE_EFFECTS

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

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc