UNPKG

tupleson

Version:

A hackable JSON serializer/deserializer

9 lines (7 loc) 205 B
import { TsonType } from "../syncTypes.js"; export const tsonBigint: TsonType<bigint, string> = { deserialize: (v) => BigInt(v), key: "bigint", primitive: "bigint", serialize: (v) => v.toString(), };