@yamlresume/core
    Preparing search index...

    Interface CodeGenerator<T>

    Interface to generate code from an AST.

    This interface defines the contract for code generation of abstract syntax tree (AST) nodes. Implementations of this interface are responsible for converting AST nodes into their corresponding code representations.

    HTMLCodeGenerator and LatexCodeGenerator will generate strings while DocxCodeGenerator will generate docx Paragraph objects, hence the generic type parameter T.

    Node

    interface CodeGenerator<T = string> {
        generate(node: Node, context?: CodeGenerationContext): T;
    }

    Type Parameters

    • T = string

    Implemented by

    Index