UNPKG

tupleson

Version:

A hackable JSON serializer/deserializer

14 lines (11 loc) 530 B
import { TsonAsyncType } from '../asyncTypes.js'; import '../../internals/esque.js'; import '../../sync/syncTypes.js'; import '../asyncErrors.js'; import '../../errors.js'; 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 };