UNPKG

@daiso-tech/core

Version:

The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.

16 lines (15 loc) 451 B
/** * @module Serde */ /** * The `IDeserializer` contract defines a standard way to deserialize plain data, excluding support for custom classes. * * IMPORT_PATH: `"@daiso-tech/core/serde/contracts"` * @group Contracts */ export type IDeserializer<TSerializedValue = unknown> = { /** * @throws {DeserializationSerdeError} {@link DeserializationSerdeError} */ deserialize<TValue>(serializedValue: TSerializedValue): TValue; };