method ISerializer.deserialize
Since 0.1.0
ISerializer.deserialize<T = unknown>(payload: string): T

Deserializes a string payload to a value.

Type Parameters

T = unknown

The expected payload type

Parameters

payload: string

The string payload to deserialize

Return Type

The deserialized value

Usage

import { type ISerializer } from "messaging-plugin/src/index.ts";