Interface GraphCodeGenerationResult

Contains the result of graph code generation.

interface GraphCodeGenerationResult {
    code: string;
    context: GraphCodeGenerationContext;
    diagnosticMessages: string[];
    hasError: boolean;
    previewData?: IGraphCodeGenerationPreviewData;
}

Hierarchy (view full)

Properties

code: string

The generated code.

The code generation context.

diagnosticMessages: string[]

Diagnostic messages. If not empty, the generated code might be incorrect.

hasError: boolean

Determines if an error occured.

The optional preview data.