@safejs/serializer
Version:
Serializer is a superset of JSON that includes recursive objects, dates, regular expressions, functions and others which you also can expand by yourself
22 lines (21 loc) • 376 B
text/typescript
/**
* Built-in serializers
* IMPORTANT!: order cannot be changed
*/
export enum BuiltIn {
undefined = 0,
positiveInfinity = 1,
negativeInfinity = 2,
nan = 3,
date = 4,
regExp = 5,
symbol = 6,
set = 7,
map = 8,
function = 9,
// TODO: implement:
//bigInt,
//typedArray,
//weakSet,
//weakMap,
}