Skip to main content
Module

x/ts_serialize/strategy/compose_strategy.ts>FromJSONStrategy

A zero dependency library for serializing data
Latest
type alias FromJSONStrategy
import { type FromJSONStrategy } from "https://deno.land/x/ts_serialize@v2.0.3/strategy/compose_strategy.ts";

Functions used when hydrating data. While we do know that the incoming param is a JSONValue, this forces authors using the library to recast the known type before using it. By using any they can cast it in the function signature

definition: (value: any) => any