Helios API/ API Reference/ Classes/

Source

A Source instance wraps a string so we can use it cheaply as a reference inside a Site. Also used by VSCode plugin

Index

Constructors

constructor

new Source(raw, name)

Parameters

NameType
rawstring
namestring

Accessors

errors

get errors(): Error[]

Returns

Error[]

Methods

throwErrors

throwErrors(): void

Returns

void

transfer

transfer(other): any

Parameters

NameType
otherTransferUplcAst

Returns

any