Skip to content
On this page

Scale JS / @scale-codec/definition-compiler / RenderNamespaceDefinitionParams

Interface: RenderNamespaceDefinitionParams

@scale-codec/definition-compiler.RenderNamespaceDefinitionParams

Table of contents

Properties

Properties

optimizeDyns

Optional optimizeDyns: boolean

Enable sorting of types to minimize amount of allocated dynamic references between them

Default

false

Defined in

packages/definition-compiler/src/types.ts:31


rollupSingleTuplesIntoAliases

Optional rollupSingleTuplesIntoAliases: boolean

Single tuples are always an arrays with a single element. It is possible to make final code cleaner (and a bit performant) if render such tuples just as aliases for the inner element. It is optional feature.

Defined in

packages/definition-compiler/src/types.ts:18


runtimeLib

Optional runtimeLib: string

Runtime library with STD codecs + reexports from the core library.

Defaults to @scale-codec/definition-runtime

Defined in

packages/definition-compiler/src/types.ts:7


runtimeTypes

Optional runtimeTypes: Set<string>

Types available in the runtime library.

Defined in

packages/definition-compiler/src/types.ts:12


typeForUnitAliasing

Optional typeForUnitAliasing: string

Default

'Unit'

Defined in

packages/definition-compiler/src/types.ts:23