Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tagged

Tagged value.

Predefined tags are listed in Tags enum.

Some tagged values are handled automatically by default (Tags.DateString and Tags.DateNumber correspond to Date object, Tags.RegExp to RegExp). Others are returned as an instance of Tagged, unless encoder/decoder is provided with customer converters. If Tagged is passed to encoder, it will properly encode it.

IANA keeps "CBOR Tags" registry (see RFC 7049, Section 7.2).

Hierarchy

  • Tagged

Index

Constructors

Properties

Constructors

constructor

  • new Tagged(tag: number, value: any | null | undefined): Tagged

Properties

tag

tag: number

value

value: any | null | undefined

Generated using TypeDoc