| | |
| | | /** @typedef {Record<string, EXPECTED_ANY>} LazyOptions */ |
| | | |
| | | /** |
| | | * Defines the lazy function type used by this module. |
| | | * @template InputValue |
| | | * @template OutputValue |
| | | * @template {LazyTarget} InternalLazyTarget |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Represents SerializerMiddleware. |
| | | * @template DeserializedType |
| | | * @template SerializedType |
| | | * @template Context |
| | |
| | | class SerializerMiddleware { |
| | | /* istanbul ignore next */ |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @abstract |
| | | * @param {DeserializedType} data data |
| | | * @param {Context} context context object |
| | |
| | | |
| | | /* istanbul ignore next */ |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @abstract |
| | | * @param {SerializedType} data data |
| | | * @param {Context} context context object |
| | |
| | | } |
| | | |
| | | /** |
| | | * Creates a lazy from the provided value. |
| | | * @template TLazyInputValue |
| | | * @template TLazyOutputValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Checks whether this serializer middleware is lazy. |
| | | * @template {LazyTarget} TLazyTarget |
| | | * @param {EXPECTED_ANY} fn lazy function |
| | | * @param {TLazyTarget=} target target middleware |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns options. |
| | | * @template TLazyInputValue |
| | | * @template TLazyOutputValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Gets lazy serialized value. |
| | | * @template TLazyInputValue |
| | | * @template TLazyOutputValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Sets lazy serialized value. |
| | | * @template TLazyInputValue |
| | | * @template TLazyOutputValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns new lazy. |
| | | * @template TLazyInputValue DeserializedValue |
| | | * @template TLazyOutputValue SerializedValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns new lazy. |
| | | * @template TLazyInputValue SerializedValue |
| | | * @template TLazyOutputValue DeserializedValue |
| | | * @template {LazyTarget} TLazyTarget |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns new lazy. |
| | | * @template TLazyInputValue |
| | | * @template TLazyOutputValue |
| | | * @template {LazyTarget} TLazyTarget |