UNPKG

@4players/odin-common

Version:

A collection of commonly used type definitions and utility functions across ODIN web projects

5 lines (4 loc) 257 B
import type { ByteArray, JsonValue } from '../schema/serialization.ts'; import { type Result } from './result.ts'; export declare function toBytes(value: JsonValue): Result<ByteArray>; export declare function fromBytes(bytes: ByteArray): Result<JsonValue>;