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

Function printClassDirective

  • printClassDirective(
        n: ClassDirective,
        opts?: Partial<PrintOptions>,
    ): Result<ClassDirective>
  • Parameters

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

    Returns Result<ClassDirective>

    @NO_SIDE_EFFECTS

    See

    https://svelte.dev/docs/svelte/class

    Example: with expression

    class:name={expression}
    

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

    class:name
    
    • Defined in pkgs/svelte-ast-print/src/template/mod.js:320

Settings

Member Visibility
Documentation
  • Loading...

Generated using TypeDoc