@daml/types TypeDoc snapshots.
Table of Contents
Version Change Summary
Reference
Interfaces
Choice
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:113
Members
ChoiceFrom
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:140
Members
ContractTypeCompanion
- Kind:
Interface - Introduced:
3.4.8 - Changed in:
3.4.9 - Source:
index.d.ts:25
Signature
Members
FromTemplate
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:101
Members
Map
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:340
DA.Map.Map K V type.
This is an immutable map which compares keys via deep equality. The order of
iteration is unspecified; the only guarantee is that the order in keys and
values match, i.e. m.get(k) is (deep-, value-based) equal to
[...m.values()][[...m.keys()].findIndex((l) => _.isEqual(k, l))]
Type Parameters
Members
Serializable
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:8
Template
- Kind:
Interface - Introduced:
3.4.8 - Changed in:
3.4.9 - Source:
index.d.ts:50
Signature
Template type class in Daml.
Type Parameters
Members
ToInterface
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:69
toInterface and
unsafeFromInterface contract ID conversion functions.
Even templates that directly implement no interfaces implement this, because
this also permits conversion with interfaces that supply retroactive
implementations to this template.
Type Parameters
Members
Unit
- Kind:
Interface - Introduced:
3.4.8 - Source:
index.d.ts:181
() type.
Type Aliases
Bool
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:190
Bool type.
ContractId
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:294
ContractId T type.
We represent ContractIds as strings. Their exact format of these strings depends on the ledger
the Daml application is running on.
The purpose of the intersection with { [ContractIdBrand]: T } is to
prevent accidental use of a ContractId<T> when a ContractId<U> is
needed (unless T is a subtype of U). This technique is known as
“branding” in the TypeScript community.
Type Parameters
Date
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:272
Date type.
We represent Dates as strings with format YYYY-MM-DD.
Decimal
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:218
Decimal type.
In Daml, Decimal’s are the same as Numeric with precision 10.
DisclosedContract
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:362
Int
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:200
Int type.
We represent Ints as string in order to avoid a loss of precision.
Interface
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:81
InterfaceCompanion
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:87
List
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:262
[T] list type.
We represent lists using arrays.
Type Parameters
Numeric
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:211
Numeric type.
We represent Numerics as string in order to avoid a loss of precision. The string must match
the regular expression -?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?.
Optional
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:306
Optional T type.
Type Parameters
Party
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:250
Party type.
We represent Partys as strings matching the regular expression [A-Za-z0-9:_\- ]+.
TemplateOrInterface
- Kind:
Type Alias - Introduced:
3.4.8 - Changed in:
3.4.9 - Source:
index.d.ts:88
Signature
Text
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:230
Text type.
TextMap
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:322
TextMap T type.
We represent TextMaps as dictionaries.
Type Parameters
Time
- Kind:
Type Alias - Introduced:
3.4.8 - Source:
index.d.ts:240
Time type.
We represent Timess as strings with format YYYY-MM-DDThh:mm:ss[.ssssss]Z.
Variables
Bool
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:190
Date
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:272
Decimal
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:218
Int
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:200
Party
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:250
Text
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:230
Time
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:240
Unit
- Kind:
Variable - Introduced:
3.4.8 - Source:
index.d.ts:181
Functions
ContractId
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:294
Returns:
Serializable<ContractId<T>>
emptyMap
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:351
Returns:
Map<K, V>
List
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:262
Returns:
Serializable<T[]>
Map
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:340
Returns:
Serializable<Map<K, V>>
Numeric
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:211
Returns:
Serializable<string>
Optional
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:306
Returns:
Serializable<Optional<T>>
TextMap
- Kind:
Function - Introduced:
3.4.8 - Source:
index.d.ts:322
Returns:
Serializable<TextMap<T>>