@nhtio/encoder/types
Types used by the encoder/decoder
Interfaces
| Interface | Description |
|---|---|
| DateTime | A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them. |
| Duration | A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it is just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use DateTime.plus to add a Duration object to a DateTime, producing another DateTime. |
| Interval | An Interval object represents a half-open interval of time, where each endpoint is a DateTime. Conceptually, it is a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them. |
| Phone | The Phone class represents a phone number and provides methods to retrieve information about it. It implements the PhoneModel interface. |
References
BaseException
Re-exports BaseException
DehydratedFunctionValue
Re-exports DehydratedFunctionValue
E_CIRCULAR_REFERENCE
Re-exports E_CIRCULAR_REFERENCE
E_ENCODING_FAILED
Re-exports E_ENCODING_FAILED
E_INCOMPATIBLE_VERSION
Re-exports E_INCOMPATIBLE_VERSION
E_INVALID_VERSION
Re-exports E_INVALID_VERSION
E_NOT_AN_ENCODED_VALUE
Re-exports E_NOT_AN_ENCODED_VALUE
E_UNDECODABLE_VALUE
Re-exports E_UNDECODABLE_VALUE
E_UNENCODABLE_VALUE
Re-exports E_UNENCODABLE_VALUE
Encodable
Re-exports Encodable
EncodablePrimitive
Re-exports EncodablePrimitive
EncodableTypedArray
Re-exports EncodableTypedArray