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) 736 B
/** * @module Serde */ import type { IFlexibleSerdeAdapter, ISerdeTransformerAdapter } from "../../../../serde/contracts/_module-exports.js"; /** * This `NoOpSerdeAdapter` will do nothing and is used for easily mocking {@link IFlexibleSerde | `IFlexibleSerde`} for testing. * * IMPORT_PATH: `"@daiso-tech/core/serde/adapters"` * @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; }