UNPKG

tupleson

Version:

A hackable JSON serializer/deserializer

14 lines (11 loc) 486 B
import { TsonAsyncType } from '../asyncTypes.js'; import '../../internals/esque.js'; import '../../sync/syncTypes.js'; import '../asyncErrors.js'; import '../../errors.js'; declare const PROMISE_RESOLVED = 0; declare const PROMISE_REJECTED = 1; type SerializedPromiseValue = [typeof PROMISE_REJECTED, unknown] | [typeof PROMISE_RESOLVED, unknown]; type MyPromise = Promise<unknown>; declare const tsonPromise: TsonAsyncType<MyPromise, SerializedPromiseValue>; export { tsonPromise };