tupleson
Version:
A hackable JSON serializer/deserializer
14 lines (11 loc) • 491 B
text/typescript
import { TsonAsyncType } from '../asyncTypes.mjs';
import '../../internals/esque.mjs';
import '../../sync/syncTypes.mjs';
import '../asyncErrors.mjs';
import '../../errors.mjs';
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 };