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.

17 lines (16 loc) 769 B
/** * @module Serde */ import { type IFlexibleSerdeAdapter, type ISerdeTransformerAdapter } from "../../../../serde/contracts/_module.js"; /** * The `RequiredSerdeAdapter` will always throw errors is used for forcing the user to pass in a valid adapter. * * IMPORT_PATH: `"@daiso-tech/core/serde/no-op-serde-adapter"` * @group Adapters */ export declare class RequiredSerdeAdapter<TSerializedValue> implements IFlexibleSerdeAdapter<TSerializedValue> { private static getErrorMessage; serialize<TValue>(_value: TValue): TSerializedValue; deserialize<TValue>(_serializedValue: TSerializedValue): TValue; registerCustom<TCustomSerialized, TCustomDeserialized>(_transformer: ISerdeTransformerAdapter<TCustomSerialized, TCustomDeserialized>): void; }