UNPKG

@4players/odin-common

Version:

Commonly used type definitions and utility functions across ODIN web projects

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