Skip to content

IResolvable

Interface for values that can be resolvable later.

Tokens are special objects that participate in synthesis.

Methods

Name Description
resolve Produce the Token's value at resolution time.
toString Return a string representation of this resolvable object.

resolve

public resolve(context: IResolveContext): any

Produce the Token's value at resolution time.

contextRequired


toString

public toString(): string

Return a string representation of this resolvable object.

Returns a reversible string representation.

Properties

Name Type Description
creationStack string[] 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.