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.

13 lines (12 loc) 404 B
/** * The `ISerializer` contract defines a standard way to serialize plain data, excluding support for custom classes. * * IMPORT_PATH: `"@daiso-tech/core/serde/contracts"` * @group Contracts */ export type ISerializer<TSerializedValue = unknown> = { /** * @throws {SerializationSerdeError} {@link SerializationSerdeError} */ serialize<TValue>(value: TValue): TSerializedValue; };