UNPKG

tupleson

Version:

A hackable JSON serializer/deserializer

14 lines (11 loc) 535 B
import { TsonAsyncType } from '../asyncTypes.mjs'; import '../../internals/esque.mjs'; import '../../sync/syncTypes.mjs'; import '../asyncErrors.mjs'; import '../../errors.mjs'; declare const ITERATOR_VALUE = 0; declare const ITERATOR_ERROR = 1; declare const ITERATOR_DONE = 2; type SerializedIterableResult = [typeof ITERATOR_DONE] | [typeof ITERATOR_ERROR, unknown] | [typeof ITERATOR_VALUE, unknown]; declare const tsonAsyncIterable: TsonAsyncType<AsyncIterable<unknown>, SerializedIterableResult>; export { tsonAsyncIterable };