inspector/lossless#
Type Aliases#
LibraryValue#
LibraryValue =
null|boolean|string|bigint|number|LibraryValue[] | {[key:string]:LibraryValue; }
Defined in: editor/src/inspector/lossless.ts:18
A value as the libraries hold it: integers as bigint, floats as number.
Functions#
fromLibrary()#
fromLibrary(
value,path?):Json
Defined in: editor/src/inspector/lossless.ts:35
The manifest value of a value read by a library: a bigint within the
safe range becomes a plain number, an integral float a JsonFloat; an
object of any plain prototype becomes a plain object.
Parameters#
value#
unknown
path?#
readonly PathSegment[] = []
Returns#
Throws#
for a non-finite float, or a value without a JSON form (a TOML date), at its path.
toLibrary()#
toLibrary(
value):LibraryValue
Defined in: editor/src/inspector/lossless.ts:70
The value for a library: every integer a bigint, every float a number.