Skip to main content

blueprint.generator_2

Home > @blaze-cardano/blueprint > Generator_2

Generator_2 class

Signature:

export declare class Generator 

Properties

Property

Modifiers

Type

Description

buffer

string[]

indentLevel

number

indentSize

number

line

string

Methods

Method

Modifiers

Description

buildLine(segment)

definitionName(declaration)

finishLine(segment)

indent()

isBoolean(shape)

static

isNullable(shape)

static

isStandardType(name)

isUnit(shape)

static

isVoid(shape)

static

normalizeTypeName(fullDefinitionName, schema)

Normalizes a full definition name into a valid TypeScript identifier. Handles generic types by extracting type parameters from the schema when available, falling back to parsing the definition name string.

outdent()

snakeToCamel(s)

static

typeName(declaration, definitions)

upperFirst(s)

static

writeImports(useSdk)

writeLine(line)

writeModule(definitions)

writeTypeboxType(schema, definitions, stack, options)

writeValidators(blueprint, blueprintWithTrace)