0.3.13
Serializable type definitions for TypeScript
Attributes
Includes Deno configuration
Repository
Current version released
2 weeks ago
Dependencies
serializable
Serializable type definitions for TypeScript and a helper function to convert anything into a safely serializable value.
Usage
import { toSerializable } from "jsr:@justinmchase/serializable";
export function send(message: unknown) {
const serializable = toSerializable(message);
return JSON.stringify(message); // will now throw
}