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) 743 B
/** * @module Serde */ import { type IFlexibleSerdeAdapter, type ISerdeTransformerAdapter } from "../../../../serde/contracts/_module.js"; /** * The `NoOpSerdeAdapter` will do nothing and is used for easily mocking {@link IFlexibleSerde | `IFlexibleSerde`} for testing. * * IMPORT_PATH: `"@daiso-tech/core/serde/no-op-serde-adapter"` * @group Adapters */ export declare class NoOpSerdeAdapter<TSerializedValue> implements IFlexibleSerdeAdapter<TSerializedValue> { serialize<TValue>(value: TValue): TSerializedValue; deserialize<TValue>(serializedValue: TSerializedValue): TValue; registerCustom<TCustomSerialized, TCustomDeserialized>(_transformer: ISerdeTransformerAdapter<TCustomSerialized, TCustomDeserialized>): void; }