Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • new Tagged(tag: number, value: any): Tagged

Properties

tag: number
value: any

Generated using TypeDoc