Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace IDL

Index

Type Aliases

InterfaceFactory: ((idl: { IDL: { Bool: BoolClass; Empty: EmptyClass; Float32: FloatClass; Float64: FloatClass; Func: typeof Func; Int: IntClass; Int16: FixedIntClass; Int32: FixedIntClass; Int64: FixedIntClass; Int8: FixedIntClass; Nat: NatClass; Nat16: FixedNatClass; Nat32: FixedNatClass; Nat64: FixedNatClass; Nat8: FixedNatClass; Null: NullClass; Opt: typeof Opt; Principal: PrincipalClass; Rec: typeof Rec; Record: typeof Record; Reserved: ReservedClass; Text: TextClass; Tuple: typeof Tuple; Unknown: UnknownClass; Variant: typeof Variant; Vec: typeof Vec; Service: any } }) => ServiceClass)

Type declaration

Variables

Bool: BoolClass = ...
Empty: EmptyClass = ...
Float32: FloatClass = ...
Float64: FloatClass = ...
Int: IntClass = ...
Int16: FixedIntClass = ...
Int32: FixedIntClass = ...
Int64: FixedIntClass = ...
Int8: FixedIntClass = ...
Nat: NatClass = ...
Nat16: FixedNatClass = ...
Nat32: FixedNatClass = ...
Nat64: FixedNatClass = ...
Nat8: FixedNatClass = ...
Null: NullClass = ...
Principal: PrincipalClass = ...
Reserved: ReservedClass = ...
Text: TextClass = ...
Unknown: UnknownClass = ...

Client-only type for deserializing unknown data. Not supported by Candid, and its use is discouraged.

Functions

  • Decode a binary value

    Parameters

    • retTypes: Type<any>[]

      Types expected in the buffer.

    • bytes: ArrayBuffer

      hex-encoded string, or buffer.

    Returns JsonValue[]

    Value deserialised to JS type

  • encode(argTypes: Type<any>[], args: any[]): ArrayBuffer
  • Encode a array of values

    Parameters

    • argTypes: Type<any>[]

      array of Types

    • args: any[]

      array of values

    Returns ArrayBuffer

    serialised value

Generated using TypeDoc