teal-src/util/serialization.d.tl
changeset 12983 fbbf4f0db8f0
parent 12982 088d278c75b5
child 12984 6ebad8e16b3b
equal deleted inserted replaced
12982:088d278c75b5 12983:fbbf4f0db8f0
     1 local record _M
       
     2 	enum preset
       
     3 		"debug"
       
     4 		"oneline"
       
     5 		"compact"
       
     6 	end
       
     7 	type fallback = function (any, string) : string
       
     8 	record config
       
     9 		preset : preset
       
    10 		fallback :  fallback
       
    11 		fatal : boolean
       
    12 		keywords : { string : boolean }
       
    13 		indentwith : string
       
    14 		itemstart : string
       
    15 		itemsep : string
       
    16 		itemlast : string
       
    17 		tstart : string
       
    18 		tend : string
       
    19 		kstart : string
       
    20 		kend : string
       
    21 		equals : string
       
    22 		unquoted : boolean | string
       
    23 		hex : string
       
    24 		freeze : boolean
       
    25 		maxdepth : integer
       
    26 		multirefs : boolean
       
    27 		table_pairs : function
       
    28 	end
       
    29 	type serializer = function (any) : string
       
    30 	new : function (config|preset) : serializer
       
    31 	serialize : function (any, config|preset) : string
       
    32 end
       
    33 return _M