Skip to main content

Initializers

import { LazyBase } from 'cdktn'

new LazyBase()
NameTypeDescription

Methods

NameDescription
addPostProcessorNo description.
resolveProduce the Token’s value at resolution time.
toJSONTurn this Token into JSON.
toStringReturn a string representation of this resolvable object.

addPostProcessor

public addPostProcessor(postProcessor: IPostProcessor): void

postProcessorRequired


resolve

public resolve(context: IResolveContext): any
Produce the Token’s value at resolution time.

contextRequired


toJSON

public toJSON(): any
Turn this Token into JSON. Called automatically when JSON.stringify() is called on a Token.

toString

public toString(): string
Return a string representation of this resolvable object. Returns a reversible string representation.

Properties

NameTypeDescription
creationStackstring[]The creation stack of this resolvable which will be appended to errors thrown during resolution.

creationStackRequired

public readonly creationStack: string[];
  • Type: string[]
The creation stack of this resolvable which will be appended to errors thrown during resolution. If this returns an empty array the stack will not be attached.